clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
670 stars 176 forks source link

userscript not running when using [[ALL]] #1643

Closed alon24 closed 4 months ago

alon24 commented 5 years ago

Windows 10, qbittorrent, using nightly Added category pcgames in qbit, added to list of categories in cfg file. My userscript is not run when torrenttomedia is run:


[Torrent]
    ###### clientAgent - Supported clients: utorrent, transmission, deluge, rtorrent, vuze, qbittorrent, other
    clientAgent = qbittorrent
    ###### useLink - Set to hard for physical links, sym for symbolic links, move to move, move-sym to move and link back, and no to not use links (copy)
    useLink = move
    ###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory)
    outputDirectory = G:\torrents\torrentprocess
    ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode. 
    default_downloadDirectory = G:\torrents\torrentcomplete
    ###### Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories.
    categories = movies, audioBooks, manual, wxwx, pcgames, xbox
    ###### A list of categories that you don't want to be flattened (i.e preserve the directory structure when copying/linking.
    noFlatten = pictures, manual

    ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
    deleteOriginal = 1
    chmodDirectory = 0
    resume = 0
    resumeOnFailure = 1
[UserScript]
   #Use "UNCAT" to process non-category downloads, and "ALL" for all defined categories.
    [[UNCAT]]
        #Enable/Disable this subsection category
        enabled = 0
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        #Enable if you are sending commands to a remote server for this category
        remote_path = 0
        #What extension do you want to process? Specify all the extension, or use "ALL" to process all files.
        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg
        #Specify the path to your custom script. Use "None" if you wish to link this category, but NOT run any external script.
        user_script_path = G:\torrents\nzbToMedia\userscripts\script.bat
        #Specify the argument(s) passed to script, comma separated in order.
        #for example FP,FN,DN, TN, TL for file path (absolute file name with path), file name, absolute directory name (with path), Torrent Name, Torrent Label/Category.
        #So the result is /media/test/script/script.sh FP FN DN TN TL. Add other arguments as needed eg -f, -r
        user_script_param = FN
        #Set user_script_runOnce = 0 to run for each file, or 1 to only run once (presumably on the entire directory).
        user_script_runOnce = 0
        #Specify the successcodes returned by the user script as a comma separated list. Linux default is 0
        user_script_successCodes = 0
        #Clean after? Note that delay function is used to prevent possible mistake :) Delay is intended as seconds
        user_script_clean = 1
        delay = 120
        #Unique path (directory) created for every download. set 0 to disable.
        unique_path = 1
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
    [[ALL]]
        enabled = 1
        Torrent_NoLink = 0
        keep_archive = 0
        extract = 1
        remote_path = 0
        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .mp3
        user_script_path = "G:\torrents\nzbToMedia\userscripts\script.bat"
        user_script_param = FN, DN, TN, TL
        user_script_runOnce = 0
        user_script_successCodes = 0
        user_script_clean = 1
        delay = 120
        unique_path = 1
        watch_dir = ""

script.bat

@echo off
set fileName= %1
set directoryName= %2
set TorrentName= %3
set category= %4

set movieDir= G:\movies

echo got %1 %2 %3 %4 >> lastrun.txt
echo %fileName% %directoryName% %TorrentName% %category% %movieDir% >> lastrun.txt

Log:

2019-08-01 23:29:12 INFO    ::MAIN: Loading config from [G:\torrents\nzbToMedia\autoProcessMedia.cfg]
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: TMP: C:\Users\ilan\AppData\Local\Temp
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: ONEDRIVECONSUMER: C:\Users\ilan\OneDrive
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: COMPUTERNAME: SERVER
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: USERDOMAIN: SERVER
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: QT_BEARER_POLL_TIMEOUT: -1
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PSMODULEPATH: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: COMMONPROGRAMFILES: C:\Program Files (x86)\Common Files
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: SMING_HOME: C:\tools\sming\Sming
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROGRAMFILES: C:\Program Files (x86)
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROCESSOR_REVISION: 3c03
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: SYSTEMROOT: C:\WINDOWS
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jre1.8.0_66\bin;C:\Program Files\Eclipse Foundation\4.4.2\eclipse;C:\tools\mingw64\bin;C:\tools\mingw64\msys\1.0\bin;C:\Users\ilan\AppData\Roaming\npm;C:\Users\ilan\AppData\Local\atom\bin;C:\Android_sdk\platform-tools;C:\Users\ilan\adb;C:\adb;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Windows\System32;C:\Program Files\FileBot\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;c:\python27;C:\Program Files\nodejs\;C:\Users\ilan\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\ilan\AppData\Local\Programs\Python\Python37-32\;C:\Users\ilan\AppData\Local\Microsoft\WindowsApps;C:\Users\ilan\Downloads\nexus\platform-tools;C:\Program Files\Microsoft VS Code\bin;C:\Users\ilan\AppData\Local\Programs\Microsoft VS Code\bin
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROGRAMFILES(X86): C:\Program Files (x86)
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: DRIVERDATA: C:\Windows\System32\Drivers\DriverData
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: TEMP: C:\Users\ilan\AppData\Local\Temp
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: COMMONPROGRAMFILES(X86): C:\Program Files (x86)\Common Files
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROCESSOR_ARCHITECTURE: x86
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: CHOCOLATEYINSTALL: C:\ProgramData\chocolatey
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: CHOCOLATEYLASTPATHUPDATE: Wed Oct 31 19:57:05 2018
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: ALLUSERSPROFILE: C:\ProgramData
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: LOCALAPPDATA: C:\Users\ilan\AppData\Local
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: JAVA_HOME: C:\Program Files\Java\jre1.8.0_111
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROGRAMW6432: C:\Program Files
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: USERNAME: ilan
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROMPT: $P$G
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: COMSPEC: C:\WINDOWS\system32\cmd.exe
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: ESP_HOME: c:/Espressif
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROGRAMDATA: C:\ProgramData
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: ONEDRIVE: C:\Users\ilan\OneDrive
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: MTPPKROOT: C:\WMSDK\MTPPK12\Responder
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: WINDIR: C:\WINDOWS
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: APPDATA: C:\Users\ilan\AppData\Roaming
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: SYSTEMDRIVE: C:
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: QBITTORRENT: v4.1.6
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: NUMBER_OF_PROCESSORS: 4
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROCESSOR_LEVEL: 6
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PROCESSOR_ARCHITEW6432: AMD64
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: COMMONPROGRAMW6432: C:\Program Files\Common Files
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: OS: Windows_NT
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: PUBLIC: C:\Users\Public
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: ANDROID_SDK_HOME: C:\Android
2019-08-01 23:29:12 INFO    ::ENVIRONMENT: USERPROFILE: C:\Users\ilan
2019-08-01 23:29:12 INFO    ::MAIN: Python v2.7 will reach end of life in 153 days.
2019-08-01 23:29:12 WARNING ::MAIN: Please upgrade to a more recent Python version.
2019-08-01 23:29:12 INFO    ::MAIN: Checking database structure...
2019-08-01 23:29:12 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2019-08-01 23:29:12 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args (u'db_version',)
2019-08-01 23:29:12 DB      ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version
2019-08-01 23:29:12 DEBUG   ::MAIN: InitialSchema upgrade not required
2019-08-01 23:29:12 DEBUG   ::MAIN: Checking if we can use git commands: git version
2019-08-01 23:29:12 DEBUG   ::MAIN: Executing git version with your shell in G:\torrents\nzbToMedia
2019-08-01 23:29:12 DEBUG   ::MAIN: git version : returned successful
2019-08-01 23:29:12 DEBUG   ::MAIN: Using: git
2019-08-01 23:29:12 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in G:\torrents\nzbToMedia
2019-08-01 23:29:12 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2019-08-01 23:29:12 INFO    ::MAIN: Checking if git needs an update
2019-08-01 23:29:12 DEBUG   ::MAIN: Executing git rev-parse HEAD with your shell in G:\torrents\nzbToMedia
2019-08-01 23:29:12 DEBUG   ::MAIN: git rev-parse HEAD : returned successful
2019-08-01 23:29:12 DEBUG   ::MAIN: Executing git fetch origin with your shell in G:\torrents\nzbToMedia
2019-08-01 23:29:14 DEBUG   ::MAIN: git fetch origin : returned successful
2019-08-01 23:29:14 DEBUG   ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in G:\torrents\nzbToMedia
2019-08-01 23:29:14 DEBUG   ::MAIN: git didn't return newest commit hash
2019-08-01 23:29:14 INFO    ::MAIN: No update needed
2019-08-01 23:29:14 INFO    ::MAIN: nzbToMedia Version:9d05d6c91450f31a8ce18496ad7c8128f8d5de41 Branch:nightly (Windows 10)
2019-08-01 23:29:14 WARNING ::MAIN: Failed to locate ffmpeg.exe. Transcoding disabled!
2019-08-01 23:29:14 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature  ...
2019-08-01 23:29:14 DEBUG   ::MAIN: Connecting to qbittorrent: http://localhost:9095
2019-08-01 23:29:14 INFO    ::MAIN: #########################################################
2019-08-01 23:29:14 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2019-08-01 23:29:14 INFO    ::MAIN: #########################################################
2019-08-01 23:29:14 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', 'G:\\torrents\\torrentcomplete\\pcgames|Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1|']
2019-08-01 23:29:14 DEBUG   ::MAIN: Adding TORRENT download info for directory G:\torrents\torrentcomplete\pcgames to database
2019-08-01 23:29:14 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'qbittorrent', 737272, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX', u'G:\\torrents\\torrentcomplete\\pcgames']
2019-08-01 23:29:14 DB      ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name) VALUES (?, ?, ?, ?, ?, ?) with args [0, u'qbittorrent', 737272, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX']
2019-08-01 23:29:15 DEBUG   ::MAIN: Received Directory: G:\torrents\torrentcomplete\pcgames | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
2019-08-01 23:29:15 DEBUG   ::MAIN: SEARCH: Found the Category: pcgames in directory structure
2019-08-01 23:29:15 INFO    ::MAIN: SEARCH: Found torrent directory Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX in input directory directory G:\torrents\torrentcomplete\pcgames
2019-08-01 23:29:15 INFO    ::MAIN: SEARCH: Setting input_directory to G:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-01 23:29:15 DEBUG   ::MAIN: Determined Directory: G:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
2019-08-01 23:29:15 INFO    ::MAIN: Auto-detected SECTION:UserScript
clinton-hall commented 5 years ago

Can you try again using UserScript-1 branch?

Are you able to manually run this in CMD using C:\Program Files\Python37\python.exe G:\torrents\nzbToMedia\TorrentToMedia.py G:\torrents\torrentcomplete\pcgames|Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1| This should allow you to see any trace-back if there is still something that is breaking this...

alon24 commented 5 years ago

Moved to Usersctipt-1 branch run python G:\torrents\nzbToMedia\TorrentToMedia.py [g:\torrents\torrentcomplete\pcgames Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX pcgames 563c6e4dbdbb4f12450c370786e22d23bccbe2d1] got

2019-08-02 21:23:52 INFO    ::MAIN: Loading config from [G:\torrents\nzbToMedia\autoProcessMedia.cfg]
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: TMP: C:\Users\ilan\AppData\Local\Temp
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: ONEDRIVECONSUMER: C:\Users\ilan\OneDrive
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: COMPUTERNAME: SERVER
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: DIRECTORYNAME:  55
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: USERDOMAIN: SERVER
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PSMODULEPATH: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: COMMONPROGRAMFILES: C:\Program Files (x86)\Common Files
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: SMING_HOME: C:\tools\sming\Sming
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROGRAMFILES: C:\Program Files (x86)
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROCESSOR_REVISION: 3c03
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jre1.8.0_66\bin;C:\Program Files\Eclipse Foundation\4.4.2\eclipse;C:\tools\mingw64\bin;C:\tools\mingw64\msys\1.0\bin;C:\Users\ilan\AppData\Roaming\npm;C:\Users\ilan\AppData\Local\atom\bin;C:\Android_sdk\platform-tools;C:\Users\ilan\adb;C:\adb;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Windows\System32;C:\Program Files\FileBot\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;c:\python27;C:\Program Files\nodejs\;C:\Users\ilan\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\ilan\AppData\Local\Programs\Python\Python37-32\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jre1.8.0_66\bin;C:\Program Files\Eclipse Foundation\4.4.2\eclipse;C:\tools\mingw64\bin;C:\tools\mingw64\msys\1.0\bin;C:\Users\ilan\AppData\Local\atom\bin;C:\Users\ilan\adb;C:\Users\ilan\AppData\Local\Microsoft\WindowsApps;C:\Users\ilan\Downloads\nexus\platform-tools;C:\Program Files\Microsoft VS Code\bin;C:\Users\ilan\AppData\Local\Programs\Microsoft VS Code\bin;c:\python27;C:\Users\ilan\AppData\Roaming\npm
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: SYSTEMROOT: C:\WINDOWS
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROGRAMFILES(X86): C:\Program Files (x86)
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: COMSPEC: C:\WINDOWS\system32\cmd.exe
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: DRIVERDATA: C:\Windows\System32\Drivers\DriverData
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: MOVIEDIR:  G:\movies
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: TORRENTNAME:  dee
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: TEMP: C:\Users\ilan\AppData\Local\Temp
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: COMMONPROGRAMFILES(X86): C:\Program Files (x86)\Common Files
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROCESSOR_ARCHITECTURE: x86
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: CHOCOLATEYINSTALL: C:\ProgramData\chocolatey
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: FILENAME:  44545
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: ALLUSERSPROFILE: C:\ProgramData
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: LOCALAPPDATA: C:\Users\ilan\AppData\Local
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: HOMEPATH: \Users\ilan
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: USERDOMAIN_ROAMINGPROFILE: SERVER
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: JAVA_HOME: C:\Program Files\Java\jre1.8.0_111
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROGRAMW6432: C:\Program Files
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: USERNAME: ilan
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: LOGONSERVER: \\SERVER
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROMPT: $P$G
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: SESSIONNAME: Console
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: ESP_HOME: c:/Espressif
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PROGRAMDATA: C:\ProgramData
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: ONEDRIVE: C:\Users\ilan\OneDrive
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: MTPPKROOT: C:\WMSDK\MTPPK12\Responder
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
2019-08-02 21:23:52 INFO    ::ENVIRONMENT: CATEGORY:  
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: WINDIR: C:\WINDOWS
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: APPDATA: C:\Users\ilan\AppData\Roaming
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: HOMEDRIVE: C:
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: SYSTEMDRIVE: C:
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: NUMBER_OF_PROCESSORS: 4
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: CHOCOLATEYLASTPATHUPDATE: Wed Oct 31 19:57:05 2018
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: PROCESSOR_LEVEL: 6
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: PROCESSOR_ARCHITEW6432: AMD64
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: COMMONPROGRAMW6432: C:\Program Files\Common Files
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: OS: Windows_NT
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: PUBLIC: C:\Users\Public
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: ANDROID_SDK_HOME: C:\Android
2019-08-02 21:23:53 INFO    ::ENVIRONMENT: USERPROFILE: C:\Users\ilan
2019-08-02 21:23:53 INFO    ::MAIN: Python v2.7 will reach end of life in 152 days.
2019-08-02 21:23:53 WARNING ::MAIN: Please upgrade to a more recent Python version.
2019-08-02 21:23:53 INFO    ::MAIN: Checking database structure...
2019-08-02 21:23:53 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2019-08-02 21:23:53 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args (u'db_version',)
2019-08-02 21:23:53 DB      ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version
2019-08-02 21:23:53 DEBUG   ::MAIN: InitialSchema upgrade not required
2019-08-02 21:23:53 DEBUG   ::MAIN: Checking if we can use git commands: git version
2019-08-02 21:23:53 DEBUG   ::MAIN: Executing git version with your shell in G:\torrents\nzbToMedia
2019-08-02 21:23:53 DEBUG   ::MAIN: git version : returned successful
2019-08-02 21:23:53 DEBUG   ::MAIN: Using: git
2019-08-02 21:23:53 DEBUG   ::MAIN: Executing git symbolic-ref -q HEAD with your shell in G:\torrents\nzbToMedia
2019-08-02 21:23:53 DEBUG   ::MAIN: git symbolic-ref -q HEAD : returned successful
2019-08-02 21:23:53 INFO    ::MAIN: Checking if git needs an update
2019-08-02 21:23:53 DEBUG   ::MAIN: Executing git rev-parse HEAD with your shell in G:\torrents\nzbToMedia
2019-08-02 21:23:53 DEBUG   ::MAIN: git rev-parse HEAD : returned successful
2019-08-02 21:23:53 DEBUG   ::MAIN: Executing git fetch origin with your shell in G:\torrents\nzbToMedia
2019-08-02 21:23:55 DEBUG   ::MAIN: git fetch origin : returned successful
2019-08-02 21:23:55 DEBUG   ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in G:\torrents\nzbToMedia
2019-08-02 21:23:55 DEBUG   ::MAIN: git didn't return newest commit hash
2019-08-02 21:23:55 INFO    ::MAIN: No update needed
2019-08-02 21:23:55 INFO    ::MAIN: nzbToMedia Version:b60bf8df2d52b903f161c550b9702d298cab18aa Branch:Userscript-1 (Windows 10)
2019-08-02 21:23:55 WARNING ::MAIN: Failed to locate ffmpeg.exe. Transcoding disabled!
2019-08-02 21:23:55 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature  ...
2019-08-02 21:23:55 DEBUG   ::MAIN: Connecting to qbittorrent: http://localhost:9095
2019-08-02 21:23:55 INFO    ::MAIN: #########################################################
2019-08-02 21:23:55 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2019-08-02 21:23:55 INFO    ::MAIN: #########################################################
2019-08-02 21:23:55 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', '[g:\\torrents\\torrentcomplete\\pcgames', 'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX', 'pcgames', '563c6e4dbdbb4f12450c370786e22d23bccbe2d1]']
2019-08-02 21:23:55 WARNING ::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
2019-08-02 21:23:55 INFO    ::MAIN: Searching  for mediafiles to post-process ...
2019-08-02 21:23:55 ERROR   ::MAIN: Failed to add directories from  for post-processing: [Error 3] The system cannot find the path specified: u''
2019-08-02 21:23:55 INFO    ::MAIN: Searching G:\torrents\torrentprocess\tvmedusa for mediafiles to post-process ...
2019-08-02 21:23:55 DEBUG   ::MAIN: No directories identified in SickBeard:tvmedusa for post-processing
2019-08-02 21:23:55 INFO    ::MAIN: Searching  for mediafiles to post-process ...
2019-08-02 21:23:55 ERROR   ::MAIN: Failed to add directories from  for post-processing: [Error 3] The system cannot find the path specified: u''
2019-08-02 21:23:55 DEBUG   ::MAIN: No directories identified in UserScript:ALL for post-processing
2019-08-02 21:23:55 INFO    ::MAIN: The G:\torrents\nzbToMedia\TorrentToMedia.py script completed successfully.
alon24 commented 5 years ago

I also have to say that is not unzip (unrararing the files in the directory)

clinton-hall commented 5 years ago

ok, you ran python G:\torrents\nzbToMedia\TorrentToMedia.py [g:\torrents\torrentcomplete\pcgames Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX pcgames 563c6e4dbdbb4f12450c370786e22d23bccbe2d1]

you need to run python G:\torrents\nzbToMedia\TorrentToMedia.py 'g:\torrents\torrentcomplete\pcgames| Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1'

otherwise you will get the invalid number of args and this won't work

clinton-hall commented 5 years ago

ok, ran some tests here.... this should now work when called from qbittorrent, or when called with the correct manual syntax

alon24 commented 5 years ago

this is what happens when running:

'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX' is not recognized as an internal or external command,
operable program or batch file. ```

G:\torrents\nzbToMedia>python G:\torrents\nzbToMedia\TorrentToMedia.py 'g:\torrents\torrentcomplete\pcgames| Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1' 'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX' is not recognized as an internal or external command, operable program or batch file.

alon24 commented 5 years ago

so new development (got latest nightly ) I am using python 2.7 should I move? running this: G:\torrents\nzbToMedia\TorrentToMedia.py "g:\torrents\torrentcomplete\pcgames|Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1"

Got:

[22:07:19] [INFO]::MAIN: nzbToMedia Version:5714540949b183372b038d8ebf05911f2db93932 Branch:nightly (Windows 10)
[22:07:20] [WARNING]::MAIN: Failed to locate ffmpeg.exe. Transcoding disabled!
[22:07:20] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[22:07:20] [DEBUG]::MAIN: Connecting to qbittorrent: http://localhost:9095
[22:07:20] [INFO]::MAIN: #########################################################
[22:07:20] [INFO]::MAIN: ## ..::[TorrentToMedia.py]::.. ##
[22:07:20] [INFO]::MAIN: #########################################################
[22:07:20] [DEBUG]::MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', 'g:\\torrents\\torrentcomplete\\pcgames|Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1']
[22:07:20] [DEBUG]::MAIN: Adding TORRENT download info for directory g:\torrents\torrentcomplete\pcgames to database
[22:07:20] [DB]::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'qbittorrent', 737274, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX', u'g:\\torrents\\torrentcomplete\\pcgames']
[22:07:20] [DB]::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name) VALUES (?, ?, ?, ?, ?, ?) with args [0, u'qbittorrent', 737274, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX']
[22:07:20] [DEBUG]::MAIN: Received Directory: g:\torrents\torrentcomplete\pcgames | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
[22:07:20] [DEBUG]::MAIN: SEARCH: Found the Category: pcgames in directory structure
[22:07:20] [INFO]::MAIN: SEARCH: Found torrent directory Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX in input directory directory g:\torrents\torrentcomplete\pcgames
[22:07:20] [INFO]::MAIN: SEARCH: Setting input_directory to g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
[22:07:20] [DEBUG]::MAIN: Determined Directory: g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
[22:07:20] [INFO]::MAIN: Auto-detected SECTION:UserScript
Traceback (most recent call last):
  File "G:\torrents\nzbToMedia\TorrentToMedia.py", line 367, in <module>
    exit(main(sys.argv))
  File "G:\torrents\nzbToMedia\TorrentToMedia.py", line 316, in main
    result = process_torrent(input_directory, input_name, input_category, input_hash, input_id, client_agent)
  File "G:\torrents\nzbToMedia\TorrentToMedia.py", line 111, in process_torrent
    extensions = section.get('user_script_mediaExtensions', '').lower().split(',')
AttributeError: 'list' object has no attribute 'lower'
[UserScript]
    #Use user_script for uncategorized downloads
    #Set the categories to use external script.
    #Use "UNCAT" to process non-category downloads, and "ALL" for all defined categories.
    [[UNCAT]]
        #Enable/Disable this subsection category
        enabled = 0
        Torrent_NoLink = 0
        keep_archive = 1
        extract = 1
        #Enable if you are sending commands to a remote server for this category
        remote_path = 0
        #What extension do you want to process? Specify all the extension, or use "ALL" to process all files.
        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg
        #Specify the path to your custom script. Use "None" if you wish to link this category, but NOT run any external script.
        user_script_path = G:\torrents\nzbToMedia\userscripts\script.bat
        #Specify the argument(s) passed to script, comma separated in order.
        #for example FP,FN,DN, TN, TL for file path (absolute file name with path), file name, absolute directory name (with path), Torrent Name, Torrent Label/Category.
        #So the result is /media/test/script/script.sh FP FN DN TN TL. Add other arguments as needed eg -f, -r
        user_script_param = FN
        #Set user_script_runOnce = 0 to run for each file, or 1 to only run once (presumably on the entire directory).
        user_script_runOnce = 0
        #Specify the successcodes returned by the user script as a comma separated list. Linux default is 0
        user_script_successCodes = 0
        #Clean after? Note that delay function is used to prevent possible mistake :) Delay is intended as seconds
        user_script_clean = 1
        delay = 120
        #Unique path (directory) created for every download. set 0 to disable.
        unique_path = 1
        ##### Set to path where download client places completed downloads locally for this category
        watch_dir = ""
    [[ALL]]
        enabled = 1
        Torrent_NoLink = 0
        keep_archive = 0
        extract = 1
        remote_path = 0
        user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .mp3
        user_script_path = G:\torrents\nzbToMedia\userscripts\script.bat
        user_script_param = FN, DN, TN, TL
        user_script_runOnce = 0
        user_script_successCodes = 0
        user_script_clean = 1
        delay = 120
        unique_path = 1
        watch_dir = ""
clinton-hall commented 5 years ago

ok, that is now running correctly. (FYI the error you had before that was sue to an extra space in the command)

The error you get now is the same error I fixed in latest UserScript-1 branch

So if you update to latest UserScript-1 this should be working... once you verify it is working I'll merge it into nightly...

My tests show that this should call the user script... so I'd like confirmation that after calling the script, everything else works as you expect.

alon24 commented 5 years ago

So now (UserScript-1 branch) the files are unrared, to the processed directory, my script is not run, and then for a finale, the new directory (G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX) is deleted and it deleted the rar file from source (so now cannto run anymore test (I have more files) :( )

Deleting G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX

:MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', 'g:\\torrents\\torrentcomplete\\pcgames|Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1']
2019-08-04 09:44:09 DEBUG   ::MAIN: Adding TORRENT download info for directory g:\torrents\torrentcomplete\pcgames to database
2019-08-04 09:44:09 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'qbittorrent', 737275, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX', u'g:\\torrents\\torrentcomplete\\pcgames']
2019-08-04 09:44:09 DB      ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name) VALUES (?, ?, ?, ?, ?, ?) with args [0, u'qbittorrent', 737275, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX']
2019-08-04 09:44:09 DEBUG   ::MAIN: Received Directory: g:\torrents\torrentcomplete\pcgames | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
2019-08-04 09:44:09 DEBUG   ::MAIN: SEARCH: Found the Category: pcgames in directory structure
2019-08-04 09:44:09 INFO    ::MAIN: SEARCH: Found torrent directory Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX in input directory directory g:\torrents\torrentcomplete\pcgames
2019-08-04 09:44:09 INFO    ::MAIN: SEARCH: Setting input_directory to g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:09 DEBUG   ::MAIN: Determined Directory: g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Name: Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX | Category: pcgames
2019-08-04 09:44:09 INFO    ::MAIN: Auto-detected SECTION:UserScript
2019-08-04 09:44:09 DEBUG   ::MAIN: Stopping torrent Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX in qbittorrent while processing
2019-08-04 09:44:14 INFO    ::MAIN: Output directory set to: G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:14 DEBUG   ::MAIN: Scanning files in directory: g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:14 DEBUG   ::MAIN: Found 1 files in g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:14 INFO    ::COPYLINK: MEDIAFILE: [codex.nfo]
2019-08-04 09:44:14 INFO    ::COPYLINK: SOURCE FOLDER: [g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX]
2019-08-04 09:44:14 INFO    ::COPYLINK: TARGET FOLDER: [G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX]
2019-08-04 09:44:14 INFO    ::COPYLINK: Moving SOURCE MEDIAFILE -> TARGET FOLDER
2019-08-04 09:44:14 DEBUG   ::MAIN: Checking for archives to extract in directory: g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r00
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r01
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r02
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r03
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r04
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r06
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r09
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r10
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r13
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r16
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r18
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r20
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r21
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r26
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r27
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r29
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r30
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r32
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r35
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r38
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r43
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r49
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r55
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r62
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r64
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r65
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r68
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r74
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r75
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r76
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r80
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r83
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r84
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r85
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r90
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r93
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r96
2019-08-04 09:44:14 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r97
2019-08-04 09:44:14 INFO    ::MAIN: Extracting g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX\codex-shadow.of.the.tomb.raider.the.path.home.rar to G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:44:14 DEBUG   ::MAIN: Extracting [u'C:\\WINDOWS\\system32\\wscript.exe', u'G:\\torrents\\nzbToMedia\\core\\extractor\\bin\\invisible.vbs', '0', u'G:\\torrents\\nzbToMedia\\core\\extractor\\bin\\AMD64\\7z.exe', u'x', u'-y'] g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX\codex-shadow.of.the.tomb.raider.the.path.home.rar G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:54:03 INFO    ::MAIN: EXTRACTOR: Extraction was successful for g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX\codex-shadow.of.the.tomb.raider.the.path.home.rar to G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:54:07 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r00 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:08 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r01 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:09 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r02 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:10 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r03 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:11 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r04 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:12 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r06 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:13 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r09 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:14 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r10 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:15 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r13 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:16 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r16 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:17 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r18 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:18 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r20 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:19 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r21 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:20 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r26 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:22 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r27 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:23 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r29 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:24 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r30 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:25 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r32 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:26 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r35 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:27 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r38 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:28 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r43 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:29 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r49 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:30 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r55 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:31 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r62 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:32 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r64 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:33 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r65 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:34 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r68 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:35 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r74 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:36 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r75 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:37 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r76 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:38 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r80 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:39 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r83 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:40 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r84 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:41 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r85 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:42 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r90 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:43 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r93 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:44 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r96 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:45 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r97 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:47 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.rar from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:48 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.s01 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:49 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r12 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:50 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r15 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:51 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r22 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:52 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r23 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:53 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r24 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:54 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r31 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:55 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r34 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:56 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r37 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:57 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r41 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:58 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r42 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:54:59 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r45 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:00 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r46 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:01 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r50 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:02 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r51 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:03 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r53 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:04 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r57 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:05 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r58 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:06 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r60 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:07 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r61 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:08 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r63 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:09 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r71 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:10 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r72 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:11 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r73 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:13 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r77 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:14 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r86 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:15 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r87 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:16 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r91 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:17 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r92 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:18 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r95 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:19 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.s21 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:20 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r05 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:21 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r07 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:22 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r08 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:23 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r11 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:24 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r14 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:25 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r17 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:26 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r19 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:27 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r25 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:28 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r28 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:29 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r33 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:30 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r36 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:31 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r39 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:32 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r40 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:33 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r44 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:34 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r47 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:35 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r48 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:37 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r52 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:38 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r54 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:39 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r56 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:40 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r59 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:41 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r66 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:42 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r67 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:43 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r69 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:44 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r70 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:45 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r78 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:46 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r79 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:47 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r81 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:48 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r82 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:49 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r88 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:50 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r89 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:51 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r94 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:52 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r98 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:53 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.r99 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:54 INFO    ::MAIN: Removing extracted archive codex-shadow.of.the.tomb.raider.the.path.home.s11 from folder g:\torrents\torrentcomplete\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX ...
2019-08-04 09:55:55 INFO    ::MAIN: FLATTEN: Flattening directory: G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:55:55 DEBUG   ::MAIN: Checking for empty folders in:G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:55:55 INFO    ::MAIN: Calling UserScript:ALL to post-process:Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:55:55 INFO    ::MAIN: All files have been processed. Cleaning outputDirectory G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:55:55 INFO    ::MAIN: Deleting G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX
2019-08-04 09:55:56 DB      ::DB: Updating DB download status of Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX to 1
2019-08-04 09:55:56 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 737275, u'Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX']
2019-08-04 09:55:56 DEBUG   ::MAIN: Deleting torrent Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX from qbittorrent
2019-08-04 09:56:01 INFO    ::MAIN: The G:\torrents\nzbToMedia\TorrentToMedia.py script completed successfully.
clinton-hall commented 5 years ago

thanks for the logs. This showed that the script ran to completion but (as you said) the user script didn't run.

I have made a few changes that should get this running. Can you please pull the latest UserScript-1 branch and test again?

alon24 commented 5 years ago

Its not behaving correctly, deleting the processed directory after the end, and not running my user script

G:\torrents\nzbToMedia\TorrentToMedia.py "g:\torrents\torrentcomplete\pcgames|Oxygen.Not.Included-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1" (I used the same hash from before)

2019-08-04 13:06:16 INFO    ::MAIN: #########################################################
2019-08-04 13:06:16 INFO    ::MAIN: ## ..::[TorrentToMedia.py]::.. ##
2019-08-04 13:06:16 INFO    ::MAIN: #########################################################
2019-08-04 13:06:16 DEBUG   ::MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', 'g:\\torrents\\torrentcomplete\\pcgames|Oxygen.Not.Included-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1']
2019-08-04 13:06:16 DEBUG   ::MAIN: Adding TORRENT download info for directory g:\torrents\torrentcomplete\pcgames to database
2019-08-04 13:06:16 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'qbittorrent', 737275, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Oxygen.Not.Included-CODEX', u'g:\\torrents\\torrentcomplete\\pcgames']
2019-08-04 13:06:16 DB      ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name) VALUES (?, ?, ?, ?, ?, ?) with args [0, u'qbittorrent', 737275, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Oxygen.Not.Included-CODEX']
2019-08-04 13:06:16 DEBUG   ::MAIN: Received Directory: g:\torrents\torrentcomplete\pcgames | Name: Oxygen.Not.Included-CODEX | Category: pcgames
2019-08-04 13:06:16 DEBUG   ::MAIN: SEARCH: Found the Category: pcgames in directory structure
2019-08-04 13:06:16 INFO    ::MAIN: SEARCH: Found torrent directory Oxygen.Not.Included-CODEX in input directory directory g:\torrents\torrentcomplete\pcgames
2019-08-04 13:06:16 INFO    ::MAIN: SEARCH: Setting input_directory to g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:16 DEBUG   ::MAIN: Determined Directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX | Name: Oxygen.Not.Included-CODEX | Category: pcgames
2019-08-04 13:06:16 INFO    ::MAIN: Auto-detected SECTION:UserScript
2019-08-04 13:06:16 DEBUG   ::MAIN: Stopping torrent Oxygen.Not.Included-CODEX in qbittorrent while processing
2019-08-04 13:06:21 INFO    ::MAIN: Output directory set to: G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:21 DEBUG   ::MAIN: Scanning files in directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:21 DEBUG   ::MAIN: Found 1 files in g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:21 INFO    ::COPYLINK: MEDIAFILE: [codex.nfo]
2019-08-04 13:06:21 INFO    ::COPYLINK: SOURCE FOLDER: [g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX]
2019-08-04 13:06:21 INFO    ::COPYLINK: TARGET FOLDER: [G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX]
2019-08-04 13:06:21 INFO    ::COPYLINK: Moving SOURCE MEDIAFILE -> TARGET FOLDER
2019-08-04 13:06:21 DEBUG   ::MAIN: Checking for archives to extract in directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r00
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r01
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r02
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r03
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r04
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r05
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r06
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r07
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r08
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r09
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r10
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r11
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r12
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r17
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r18
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r19
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r13
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r14
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r15
2019-08-04 13:06:21 DEBUG   ::MAIN: EXTRACTOR: Unknown file type: .r16
2019-08-04 13:06:21 INFO    ::MAIN: Extracting g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX\codex-oxygen.not.included.rar to G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:21 DEBUG   ::MAIN: Extracting [u'C:\\WINDOWS\\system32\\wscript.exe', u'G:\\torrents\\nzbToMedia\\core\\extractor\\bin\\invisible.vbs', '0', u'G:\\torrents\\nzbToMedia\\core\\extractor\\bin\\AMD64\\7z.exe', u'x', u'-y'] g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX\codex-oxygen.not.included.rar G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:43 INFO    ::MAIN: EXTRACTOR: Extraction was successful for g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX\codex-oxygen.not.included.rar to G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:06:46 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r00 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:47 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r01 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:48 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r02 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:49 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r03 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:50 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r04 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:51 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r05 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:52 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r06 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:53 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r07 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:54 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r08 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:55 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r09 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:56 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r10 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:57 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r11 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:58 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r12 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:06:59 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r17 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:00 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r18 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:02 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r19 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:03 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r13 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:04 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r14 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:05 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r15 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:06 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.r16 from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:07 INFO    ::MAIN: Removing extracted archive codex-oxygen.not.included.rar from folder g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX ...
2019-08-04 13:07:08 INFO    ::MAIN: FLATTEN: Flattening directory: G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:07:08 DEBUG   ::MAIN: Checking for empty folders in:G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:07:08 INFO    ::MAIN: Calling UserScript:ALL to post-process:Oxygen.Not.Included-CODEX
2019-08-04 13:07:08 INFO    ::MAIN: All files have been processed. Cleaning outputDirectory G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:07:08 INFO    ::MAIN: Deleting G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
2019-08-04 13:07:08 DB      ::DB: Updating DB download status of Oxygen.Not.Included-CODEX to 1
2019-08-04 13:07:08 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 737275, u'Oxygen.Not.Included-CODEX']
2019-08-04 13:07:08 DEBUG   ::MAIN: Deleting torrent Oxygen.Not.Included-CODEX from qbittorrent
2019-08-04 13:07:13 INFO    ::MAIN: The G:\torrents\nzbToMedia\TorrentToMedia.py script completed successfully.
clinton-hall commented 5 years ago

As to deleting at the end... this is as set

[Torrent]
        deleteOriginal = 1
[UserScript]
    [[ALL]]
        user_script_clean = 1

so this part makes sense.

What is going wrong here is that the script isn't being called... I'll add some more logging to try and figure out what went wrong.

clinton-hall commented 5 years ago

Ok, I have added logging to see what is going on. Updating to latest UserScript-1 will log any errors that are encountered and otherwise confirm what parts of the code are being called.

What I do notice is that the logs show that you have downloaded a game, but your settings show user_script_mediaExtensions = .mkv, .avi, .divx, .xvid, .mov, .wmv, .mp4, .mpg, .mpeg, .mp3 this means the user script will only be called to process files with these extensions (Which I am guessing aren't in your extracted game directory).

So, you may want to look at adding in the file extensions that you want to be processed, or otherwise use the user_script_mediaExtensions = ALL to process for all files.

alon24 commented 5 years ago

I will check in the evening the updated branch I will change the files to ALL

I do not think u understood, deleteOriginal = 1 == > should delete the source dir and thats OK, but what I am seeing is that it is deleting the target directory == Deleting G:\torrents\torrentprocess\pcgames\Shadow.of.the.Tomb.Raider.The.Path.Home-CODEX

this is the directory to which files are unrared to and that I think is not ok

clinton-hall commented 5 years ago
[UserScript]
    [[ALL]]
        user_script_clean = 1

this cleans up the directory on which the userscript runs. So this option will delete the target directory (the intention being that this would run after the script moves/processes the files). so setting this option to 0 will stop these being deleted.

alon24 commented 5 years ago

Gr8

alon24 commented 5 years ago

Ok. it seems to be working now

G:\torrents\nzbToMedia\TorrentToMedia.py "g:\torrents\torrentcomplete\pcgames|Oxygen.Not.Included-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1"
[23:18:39] [INFO]::MAIN: nzbToMedia Version:1aa16ef079eb170dc51f701bca4e792758a4777d Branch:UserScript-1 (Windows 10)
[23:18:39] [WARNING]::MAIN: Failed to locate ffmpeg.exe. Transcoding disabled!
[23:18:39] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature  ...
[23:18:40] [DEBUG]::MAIN: Connecting to qbittorrent: http://localhost:9095
[23:18:40] [INFO]::MAIN: #########################################################
[23:18:40] [INFO]::MAIN: ## ..::[TorrentToMedia.py]::.. ##
[23:18:40] [INFO]::MAIN: #########################################################
[23:18:40] [DEBUG]::MAIN: Options passed into TorrentToMedia: ['G:\\torrents\\nzbToMedia\\TorrentToMedia.py', 'g:\\torrents\\torrentcomplete\\pcgames|Oxygen.Not.Included-CODEX|pcgames|563c6e4dbdbb4f12450c370786e22d23bccbe2d1']
[23:18:40] [DEBUG]::MAIN: Adding TORRENT download info for directory g:\torrents\torrentcomplete\pcgames to database
[23:18:40] [DB]::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'qbittorrent', 737276, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Oxygen.Not.Included-CODEX', u'g:\\torrents\\torrentcomplete\\pcgames']
[23:18:40] [DB]::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (status, client_agent, last_update, input_id, input_hash, input_name) VALUES (?, ?, ?, ?, ?, ?) with args [0, u'qbittorrent', 737276, u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'563c6e4dbdbb4f12450c370786e22d23bccbe2d1', u'Oxygen.Not.Included-CODEX']
[23:18:40] [DEBUG]::MAIN: Received Directory: g:\torrents\torrentcomplete\pcgames | Name: Oxygen.Not.Included-CODEX | Category: pcgames
[23:18:40] [DEBUG]::MAIN: SEARCH: Found the Category: pcgames in directory structure
[23:18:40] [INFO]::MAIN: SEARCH: Found torrent directory Oxygen.Not.Included-CODEX in input directory directory g:\torrents\torrentcomplete\pcgames
[23:18:40] [INFO]::MAIN: SEARCH: Setting input_directory to g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
[23:18:40] [DEBUG]::MAIN: Determined Directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX | Name: Oxygen.Not.Included-CODEX | Category: pcgames
[23:18:40] [INFO]::MAIN: Auto-detected SECTION:UserScript
[23:18:40] [DEBUG]::MAIN: Stopping torrent Oxygen.Not.Included-CODEX in qbittorrent while processing
[23:18:45] [INFO]::MAIN: Output directory set to: G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [DEBUG]::MAIN: Scanning files in directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [DEBUG]::MAIN: Found 0 files in g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [DEBUG]::MAIN: Checking for archives to extract in directory: g:\torrents\torrentcomplete\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [INFO]::MAIN: FLATTEN: Flattening directory: G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [DEBUG]::MAIN: Checking for empty folders in:G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX
[23:18:45] [INFO]::MAIN: Calling UserScript:ALL to post-process:Oxygen.Not.Included-CODEX
[23:18:45] [DEBUG]::USERSCRIPT: Checking file codex.nfo to see if this should be processed.
[23:18:45] [INFO]::USERSCRIPT: Running script  G:\torrents\nzbToMedia\userscripts\script.bat G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX Oxygen.Not.Included-CODEX pcgames on file G:\torrents\torrentprocess\pcgames\Oxygen.Not.Included-CODEX\codex.nfo.
[23:18:45] [INFO]::MAIN: UserScript G:\torrents\nzbToMedia\userscripts\script.bat was successfull
[23:18:45] [DB]::DB: Updating DB download status of Oxygen.Not.Included-CODEX to 1
[23:18:45] [DB]::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 737276, u'Oxygen.Not.Included-CODEX']
[23:18:45] [DEBUG]::MAIN: Deleting torrent Oxygen.Not.Included-CODEX from qbittorrent
[23:18:50] [INFO]::MAIN: The G:\torrents\nzbToMedia\TorrentToMedia.py script completed successfully.
clinton-hall commented 5 years ago

Thanks for confirming.

I have merged UserScript-1 branch back into nightly. You can switch back to latest nightly branch now and continue to receive updates if wanted.

I hope to merge everything up to master soon and do another release.

qorron commented 9 months ago

I seem to have a similar problem, the goal is to set the file modification time of all media files to "now".

To accomplish this, I made an "ALL" section in UserScript:

    [[ALL]]
        enabled = 1
        user_script_mediaExtensions = ALL
        user_script_path = /usr/bin/touch
        user_script_param = FP
        user_script_runOnce = 0
        user_script_successCodes = 0

However, the script never runs. Also no errors are reported. What did I do wrong? The userscript branch is merged to master, right?

clinton-hall commented 9 months ago

Do you have debug logs? What categories are being used for the downloader? note that [[ALL]] will only process defined user categories in the [Torrent] categories list.

If you are wanting to process for categories that are not defined to do other processes, then you need to use [[UNCAT]]