Newsleecher V8 Beta Release - Timeline

Forum to report beta release bugs and discuss the latest beta releases with other users.
• If reporting a beta release bug, be sure read the bug reporting guidelines first.

Forum rules
IMPORTANT : Be sure to read the NewsLeecher forums policy before posting.
Posts: 11
Joined: Mon Nov 16, 2015 9:35 am

Re: Newsleecher V8 Beta Release - Timeline

Post by Argonaute » Thu Feb 14, 2019 9:21 am

cheezhed wrote:
Tue Feb 12, 2019 1:33 pm
That's great but for us neophytes how do I use the script?
Argonaute wrote:
Wed Feb 06, 2019 5:40 pm
For those who are using Newsleecher v7 with a product like NZBdrone, you can use the following powershell script to unobfuscate the downloaded files.
You must configure Newsleecher to copy and keep the nzb files to a protected location and the folders variables, and perhaps the files extensions, in the header of the script :



function Get-Filename
[string]$Filespec = ".\*.nzb",

$FileInfo = Get-ChildItem -Recurse $Filespec | Where-Object { Select-String $Pattern $_ -Quiet }
if([string]::IsNullOrEmpty($FileInfo) -eq $false) {
$RetValue = $FileInfo.Name.Remove($FileInfo.Name.LastIndexOf('.'))
} else {
$RetValue = $null

$MkvFilesSpec = $MKV_PATH+$MKV_SPEC
$NzbFilesSpec = $NZB_PATH+$NZB_SPEC

$MkvFiles = Get-ChildItem -Path $MkvFilesSpec

foreach($File in $MkvFiles) {
$FoundFileName = $null
$ParentFilePath = Convert-Path($File.PSParentPath)
$OriginalFileName = $File.Basename
$FoundFileName = Get-Filename -Filespec $NzbFilesSpec -Pattern $OriginalFileName
if([string]::IsNullOrEmpty($FoundFileName) -eq $false) {
[string]$NewFileName = $ParentFilePath+"\"+$FoundFileName+$File.Extension

Copy the text between -BEGIN- and -END- in a new textfile saved as a .ps1 file.
This become a Powershell script. Powershell is the new version of the command prompt since Windows 7.

In the execute part of the Windows menu if you use Windows 7 or in search part of windows 10 enter the following commands :

This command open a Windows which look like a command prompt, enter the following :

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

In notepad open the .ps1 you created ion the first step, change the values after the '=' sign of the folders variables $MKV_PATH and $NZB_PATH where the mkv files are extracted after unrar and where nzb files are saved like this :

$MKV_PATH="C:\NEWSLEECHER\EXTRACTED\" # Put here the folder where newsleecher extract the downloads and don't forgot the '\' at the end of it.
$NZB_PATH="C:\NEWSLEECHER\NZB\" # Put here the folder where newsleecher save the nzb files it found in the automatic download function and don't forgot the '\' at the end of it.

save your changes and run the script using :

cd <The folder where you saved the ps1 script>
.\<The name of the script>.ps1

And it's done, you got the renamed mkv unobfuscated files.


Who is online

Users browsing this forum: No registered users and 12 guests