nzbToMedia icon indicating copy to clipboard operation
nzbToMedia copied to clipboard

user errrr

Open amanalar opened this issue 4 years ago • 11 comments

Describe the bug A clear and concise description of what the bug is.

Technical Specs

  1. Running on (Windows, Linux, NAS Model etc) '....' Host Windows 10 Plex Guest Ubuntu18.04 sonarr/radarr/deluge/mono 5.20.1.34

  2. Python version '....' 3.6.9

  3. Download Client (NZBget, SABnbzd, Transmission) '....' deluge 2.0.3-2-201906121747-ubuntu18.04.1 libtorrent: 1.1.5.0 Python: 3.6.9 OS: Linux 4.15.0-99-generic

  4. Intended Media Management (SickChill, CouchPotoato, Radarr, Sonarr) '....' Version 0.2.0.1480 Mono Version 5.20.1.34 AppData directory /var/lib/radarr/.config/Radarr Startup directory /opt/Radarr

Version 2.0.0.5344 Mono Version 5.20.1.34 AppData directory /var/lib/sonarr/.config/NzbDrone Startup directory /opt/NzbDrone

Expected behavior extraction failing/ connecting to deluge failing

Log Please provide an extract, or full debug log that indicates the issue.

2020-05-07 12:56:16 INFO ::MAIN: Loading config from [/home/nzbToMedia/autoProcessMedia.cfg] 2020-05-07 12:56:16 INFO ::MAIN: Python v3.6 will reach end of life in 595 days. 2020-05-07 12:56:16 INFO ::MAIN: Checking database structure... 2020-05-07 12:56:16 INFO ::MAIN: Checking if git needs an update 2020-05-07 12:56:16 INFO ::MAIN: No update needed 2020-05-07 12:56:16 INFO ::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.15.0-99-generic) 2020-05-07 12:56:37 ERROR ::MAIN: Failed to connect to Deluge 2020-05-07 12:56:37 INFO ::MAIN: ######################################################### 2020-05-07 12:56:37 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2020-05-07 12:56:37 INFO ::MAIN: ######################################################### 2020-05-07 12:56:37 INFO ::MAIN: SEARCH: Found torrent directory What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF in input directory directory /windows/u/opt/deluge/completed 2020-05-07 12:56:37 INFO ::MAIN: SEARCH: Setting input_directory to /windows/u/opt/deluge/completed/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 INFO ::MAIN: Auto-detected SECTION:UserScript 2020-05-07 12:56:37 WARNING ::MAIN: Failed to stop torrent What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF in deluge 2020-05-07 12:56:37 INFO ::MAIN: Output directory set to: /windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 INFO ::COPYLINK: MEDIAFILE: [tvmaze.nfo] 2020-05-07 12:56:37 INFO ::COPYLINK: SOURCE FOLDER: [/windows/u/opt/deluge/completed/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF] 2020-05-07 12:56:37 INFO ::COPYLINK: TARGET FOLDER: [/windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF] 2020-05-07 12:56:37 INFO ::COPYLINK: Copying SOURCE MEDIAFILE -> TARGET FOLDER 2020-05-07 12:56:37 INFO ::MAIN: Extracting /windows/u/opt/deluge/completed/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF/what.we.do.in.the.shadows.s02e05.1080p.web.h264-xlf.rar to /windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-X$2020-05-07 12:56:37 ERROR ::MAIN: EXTRACTOR: Extraction failed for /windows/u/opt/deluge/completed/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF/what.we.do.in.the.shadows.s02e05.1080p.web.h264-xlf.rar. Result was 7 2020-05-07 12:56:37 INFO ::MAIN: FLATTEN: Flattening directory: /windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 INFO ::MAIN: Calling UserScript:UNCAT to post-process:What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 INFO ::MAIN: All files have been processed. Cleaning outputDirectory /windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 INFO ::MAIN: Deleting /windows/u/opt/deluge/completed/UNCAT/What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF 2020-05-07 12:56:37 WARNING ::MAIN: Failed to start torrent What.We.Do.in.the.Shadows.S02E05.1080p.WEB.H264-XLF in deluge 2020-05-07 12:56:37 INFO ::MAIN: The /home/nzbToMedia/TorrentToMedia.py script completed successfully.

amanalar avatar May 07 '20 17:05 amanalar

2020-05-07 13:56:27 INFO ::MAIN: Loading config from [/home/nzbToMedia/autoProcessMedia.cfg] 2020-05-07 13:56:27 INFO ::ENVIRONMENT: LANG: en_US.UTF-8 2020-05-07 13:56:27 INFO ::ENVIRONMENT: PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 2020-05-07 13:56:27 INFO ::ENVIRONMENT: HOME: /home/ 2020-05-07 13:56:27 INFO ::ENVIRONMENT: LOGNAME: user95 2020-05-07 13:56:27 INFO ::ENVIRONMENT: USER: user95 2020-05-07 13:56:27 INFO ::ENVIRONMENT: SHELL: /bin/bash 2020-05-07 13:56:27 INFO ::ENVIRONMENT: INVOCATION_ID: 4eb9e8b7f7324d489ceccc03aa6b0234 2020-05-07 13:56:27 INFO ::ENVIRONMENT: JOURNAL_STREAM: 9:25794 2020-05-07 13:56:27 INFO ::MAIN: Python v3.6 will reach end of life in 595 days. 2020-05-07 13:56:27 INFO ::MAIN: Checking database structure... 2020-05-07 13:56:27 DEBUG ::MAIN: Checking Initial Schema database upgrade 2020-05-07 13:56:27 DB ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',) 2020-05-07 13:56:27 DB ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version 2020-05-07 13:56:27 DEBUG ::MAIN: InitialSchema upgrade not required 2020-05-07 13:56:27 DEBUG ::MAIN: Checking if we can use git commands: git version 2020-05-07 13:56:27 DEBUG ::MAIN: Executing git version with your shell in /home/nzbToMedia 2020-05-07 13:56:27 DEBUG ::MAIN: git version : returned successful 2020-05-07 13:56:27 DEBUG ::MAIN: Using: git 2020-05-07 13:56:27 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/nzbToMedia 2020-05-07 13:56:27 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful 2020-05-07 13:56:27 INFO ::MAIN: Checking if git needs an update 2020-05-07 13:56:27 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /home/nzbToMedia 2020-05-07 13:56:27 DEBUG ::MAIN: git rev-parse HEAD : returned successful 2020-05-07 13:56:27 DEBUG ::MAIN: Executing git fetch origin with your shell in /home/nzbToMedia 2020-05-07 13:56:28 DEBUG ::MAIN: git fetch origin : returned successful 2020-05-07 13:56:28 DEBUG ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /home/nzbToMedia 2020-05-07 13:56:28 DEBUG ::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful 2020-05-07 13:56:28 DEBUG ::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /home/nzbToMedia 2020-05-07 13:56:28 DEBUG ::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful 2020-05-07 13:56:28 DEBUG ::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= f5e4ec0981ab2f6fd97b14b24aa363a393396073, num_commits_behind = 0, num_commits_ahead = 0 2020-05-07 13:56:28 INFO ::MAIN: No update needed 2020-05-07 13:56:28 INFO ::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.15.0-99-generic) 2020-05-07 13:56:28 DEBUG ::MAIN: Connecting to deluge: http://10.255.255.12:58846 2020-05-07 13:56:28 ERROR ::MAIN: Failed to connect to Deluge 2020-05-07 13:56:28 INFO ::MAIN: ######################################################### 2020-05-07 13:56:28 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2020-05-07 13:56:28 INFO ::MAIN: ######################################################### 2020-05-07 13:56:28 DEBUG ::MAIN: Options passed into TorrentToMedia: ['/home/nzbToMedia/TorrentToMedia.py', 'fabcb874a2e3a7d9fd098b79c80c45530613e703', 'Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS', '/windows/u/opt/deluge/completed'] 2020-05-07 13:56:28 DEBUG ::MAIN: Adding TORRENT download info for directory /windows/u/opt/deluge/completed to database 2020-05-07 13:56:28 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET input_name = ?, input_hash = ?, input_id = ?, client_agent = ?, status = ?, last_update = ? WHERE input_directory = ? with args ['Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS', 'fabcb874a2e3a7d9fd098b79c80c45530613e703', 'fabcb874a2e3a7d9fd098b79c80c45530613e703', 'deluge', 0, 737552, '/windows/u/opt/deluge/completed'] 2020-05-07 13:56:28 DB ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (input_name, input_hash, input_id, client_agent, status, last_update) VALUES (?, ?, ?, ?, ?, ?) with args ['Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS', 'fabcb874a2e3a7d9fd098b79c80c45530613e703', 'fabcb874a2e3a7d9fd098b79c80c45530613e703', 'deluge', 0, 737552] 2020-05-07 13:56:28 DEBUG ::MAIN: Received Directory: /windows/u/opt/deluge/completed | Name: Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS | Category: 2020-05-07 13:56:28 DEBUG ::MAIN: SEARCH: Could not find a category in the directory structure 2020-05-07 13:56:28 INFO ::MAIN: SEARCH: Found torrent directory Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS in input directory directory /windows/u/opt/deluge/completed 2020-05-07 13:56:28 INFO ::MAIN: SEARCH: Setting input_directory to /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: Determined Directory: /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS | Name: Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS | Category: UNCAT 2020-05-07 13:56:28 INFO ::MAIN: Auto-detected SECTION:UserScript 2020-05-07 13:56:28 DEBUG ::MAIN: Stopping torrent Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS in deluge while processing 2020-05-07 13:56:28 WARNING ::MAIN: Failed to stop torrent Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS in deluge 2020-05-07 13:56:28 INFO ::MAIN: Output directory set to: /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: Scanning files in directory: /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: Found 1 files in /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 INFO ::COPYLINK: MEDIAFILE: [penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.nfo] 2020-05-07 13:56:28 INFO ::COPYLINK: SOURCE FOLDER: [/windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS] 2020-05-07 13:56:28 INFO ::COPYLINK: TARGET FOLDER: [/windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS] 2020-05-07 13:56:28 INFO ::COPYLINK: Copying SOURCE MEDIAFILE -> TARGET FOLDER 2020-05-07 13:56:28 DEBUG ::MAIN: Checking for archives to extract in directory: /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r00 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r01 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r02 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r03 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r04 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r05 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r06 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r07 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r08 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r09 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r10 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r11 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r12 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r13 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r14 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r15 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r16 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r17 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r18 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r19 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r20 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r21 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r22 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r23 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r24 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r25 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r26 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r27 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r28 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r29 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r30 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r31 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r32 2020-05-07 13:56:28 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r33 2020-05-07 13:56:28 INFO ::MAIN: Extracting /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS/penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.rar to /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: Extracting ['7zr', 'x', '-y'] /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS/penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.rar /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 ERROR ::MAIN: EXTRACTOR: Extraction failed for /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS/penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.rar. Result was 7 2020-05-07 13:56:28 INFO ::MAIN: FLATTEN: Flattening directory: /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::MAIN: Checking for empty folders in:/windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 INFO ::MAIN: Calling UserScript:UNCAT to post-process:Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DEBUG ::USERSCRIPT: Checking file penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.nfo to see if this should be processed. 2020-05-07 13:56:28 INFO ::MAIN: All files have been processed. Cleaning outputDirectory /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 INFO ::MAIN: Deleting /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS 2020-05-07 13:56:28 DB ::DB: Updating DB download status of Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS to 1 2020-05-07 13:56:28 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 737552, 'Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS'] 2020-05-07 13:56:28 DEBUG ::MAIN: Starting torrent Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS in deluge 2020-05-07 13:56:28 WARNING ::MAIN: Failed to start torrent Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS in deluge 2020-05-07 13:56:28 INFO ::MAIN: The /home/nzbToMedia/TorrentToMedia.py script completed successfully.

amanalar avatar May 07 '20 18:05 amanalar

As far as extracting goes, 7zr outputs result 7 which suggest a command line error.

you can try executing

7zr x -y  /windows/u/opt/deluge/completed/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS/penny.dreadful.city.of.angels.s01e01.1080p.web.h264-ghosts.rar /windows/u/opt/deluge/completed/UNCAT/Penny.Dreadful.City.of.Angels.S01E01.1080p.WEB.H264-GHOSTS

runs this as the same users that runs deluge and see if it gives any more error details.

Also, you could try installing unrar command on your linux install.

As for the failing to connect to deluge, I note you are using the external IP. Have you tried using either localhost or 127.0.0.1?

Check the details in https://github.com/clinton-hall/nzbToMedia/wiki/deluge you need to have the user/pass set up to allow connections.

clinton-hall avatar May 10 '20 04:05 clinton-hall

maybe im getting closer. the directory structure and categories is where im sure i messed up

2020-05-10 21:45:38 INFO ::MAIN: Loading config from [/home/amanalar/nzbToMedia/autoProcessMedia.cfg] 2020-05-10 21:45:38 INFO ::ENVIRONMENT: LANG: en_US.UTF-8 2020-05-10 21:45:38 INFO ::ENVIRONMENT: PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 2020-05-10 21:45:38 INFO ::ENVIRONMENT: HOME: /home/amanalar 2020-05-10 21:45:38 INFO ::ENVIRONMENT: LOGNAME: amanalar 2020-05-10 21:45:38 INFO ::ENVIRONMENT: USER: amanalar 2020-05-10 21:45:38 INFO ::ENVIRONMENT: SHELL: /bin/bash 2020-05-10 21:45:38 INFO ::ENVIRONMENT: INVOCATION_ID: 40f8d0eff12646449f308e8d7cc32330 2020-05-10 21:45:38 INFO ::ENVIRONMENT: JOURNAL_STREAM: 9:4040172 2020-05-10 21:45:38 INFO ::MAIN: Python v3.6 will reach end of life in 592 days. 2020-05-10 21:45:38 INFO ::MAIN: Checking database structure... 2020-05-10 21:45:38 DEBUG ::MAIN: Checking Initial Schema database upgrade 2020-05-10 21:45:38 DB ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',) 2020-05-10 21:45:38 DB ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version 2020-05-10 21:45:38 DEBUG ::MAIN: InitialSchema upgrade not required 2020-05-10 21:45:38 DEBUG ::MAIN: Checking if we can use git commands: git version 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git version with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git version : returned successful 2020-05-10 21:45:38 DEBUG ::MAIN: Using: git 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful 2020-05-10 21:45:38 INFO ::MAIN: Checking if git needs an update 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git rev-parse HEAD : returned successful 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git fetch origin with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git fetch origin : returned successful 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful 2020-05-10 21:45:38 DEBUG ::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-10 21:45:38 DEBUG ::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful 2020-05-10 21:45:38 DEBUG ::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= f5e4ec0981ab2f6fd97b14b24aa363a393396073, num_commits_behind = 0, num_commits_ahead = 0 2020-05-10 21:45:38 INFO ::MAIN: No update needed 2020-05-10 21:45:38 INFO ::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.15.0-99-generic) 2020-05-10 21:45:38 DEBUG ::MAIN: Connecting to deluge: http://10.255.255.12:58846 2020-05-10 21:45:38 INFO ::MAIN: ######################################################### 2020-05-10 21:45:38 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2020-05-10 21:45:38 INFO ::MAIN: ######################################################### 2020-05-10 21:45:38 DEBUG ::MAIN: Options passed into TorrentToMedia: ['/home/amanalar/nzbToMedia/TorrentToMedia.py', 'e9cc007154750cf655bb90d6f5978ea8167c201c', 'Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF', '/windows/u/opt/deluge/completed']2020-05-10 21:45:39 DEBUG ::MAIN: Adding TORRENT download info for directory /windows/u/opt/deluge/completed to database 2020-05-10 21:45:39 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET input_name = ?, input_hash = ?, input_id = ?, client_agent = ?, status = ?, last_update = ? WHERE input_directory = ? with args ['Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XL$2020-05-10 21:45:39 DB ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (input_name, input_hash, input_id, client_agent, status, last_update) VALUES (?, ?, ?, ?, ?, ?) with args ['Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF', 'e9cc00$2020-05-10 21:45:39 DEBUG ::MAIN: Received Directory: /windows/u/opt/deluge/completed | Name: Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF | Category: tv-sonarr 2020-05-10 21:45:39 DEBUG ::MAIN: SEARCH: Could not find the category: tv-sonarr in the directory structure 2020-05-10 21:45:39 INFO ::MAIN: SEARCH: Found category directory tv-sonarr in input directory directory /windows/u/opt/deluge/completed 2020-05-10 21:45:39 INFO ::MAIN: SEARCH: Setting input_directory to /windows/u/opt/deluge/completed/tv-sonarr 2020-05-10 21:45:39 INFO ::MAIN: SEARCH: Could not find a unique directory for this download. Assume a common directory. 2020-05-10 21:45:39 INFO ::MAIN: SEARCH: We will try and determine which files to process, individually 2020-05-10 21:45:39 DEBUG ::MAIN: Determined Directory: /windows/u/opt/deluge/completed/tv-sonarr | Name: Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF | Category: tv-sonarr 2020-05-10 21:45:39 INFO ::MAIN: Auto-detected SECTION:UserScript 2020-05-10 21:45:39 DEBUG ::MAIN: Stopping torrent Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF in deluge while processing 2020-05-10 21:45:44 INFO ::MAIN: Output directory set to: /windows/u/opt/deluge/process/tv-sonarr/Killing.Eve.S03E05.READNFO.720p.WEBRip 2020-05-10 21:45:44 DEBUG ::MAIN: Scanning files in directory: /windows/u/opt/deluge/completed/tv-sonarr 2020-05-10 21:45:44 DEBUG ::MAIN: Checking for archives to extract in directory: /windows/u/opt/deluge/completed/tv-sonarr 2020-05-10 21:45:44 INFO ::MAIN: FLATTEN: Flattening directory: /windows/u/opt/deluge/process/tv-sonarr/Killing.Eve.S03E05.READNFO.720p.WEBRip 2020-05-10 21:45:44 INFO ::MAIN: Calling UserScript:UNCAT to post-process:Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF 2020-05-10 21:45:44 INFO ::MAIN: All files have been processed. Cleaning outputDirectory /windows/u/opt/deluge/process/tv-sonarr/Killing.Eve.S03E05.READNFO.720p.WEBRip 2020-05-10 21:45:44 INFO ::MAIN: Deleting /windows/u/opt/deluge/process/tv-sonarr/Killing.Eve.S03E05.READNFO.720p.WEBRip 2020-05-10 21:45:44 ERROR ::MAIN: Unable to delete folder /windows/u/opt/deluge/process/tv-sonarr/Killing.Eve.S03E05.READNFO.720p.WEBRip 2020-05-10 21:45:44 DB ::DB: Updating DB download status of Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF to 1 2020-05-10 21:45:44 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 737555, 'Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF']

amanalar avatar May 11 '20 01:05 amanalar

So where has Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF actually been downloaded to? What directory and what files exist?

clinton-hall avatar May 11 '20 04:05 clinton-hall

windows/u//opt/deluge/completed/Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF

image

I do have folders /completed/tv-sonnar /completed/radarr

amanalar avatar May 11 '20 16:05 amanalar

from autoprocessmedia.cfg [Torrent] ###### clientAgent - Supported clients: utorrent, transmission, deluge, rtorrent, vuze, qbittorrent, synods, other clientAgent = deluge ###### 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 $ useLink = no ###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory) outputDirectory = /windows/u/opt/deluge/process/ ###### Enter the default path to your default download directory (non-category downloads). this directory is protected by safe_mode. default_downloadDirectory = /windows/u/opt/deluge/intermediate/ ###### Other categories/labels defined for your downloader. Does not include CouchPotato, SickBeard, HeadPhones, Mylar categories. categories = "" ###### A list of categories that you don't want to be flattened (i.e preserve the directory structure when copying/linking. noFlatten = pictures, manual ###### uTorrent Hardlink solution (You must edit this if you're using TorrentToMedia.py with uTorrent) uTorrentWEBui = http://localhost:8090/gui/ uTorrentUSR = your username uTorrentPWD = your password ###### Transmission (You must edit this if you're using TorrentToMedia.py with Transmission) TransmissionHost = localhost TransmissionPort = 9091 TransmissionUSR = your username TransmissionPWD = your password #### Deluge (You must edit this if you're using TorrentToMedia.py with deluge. Note that the host/port is for the deluge daemon, not $ DelugeHost = 10.255.255.12 DelugePort = 58846 DelugeUSR = test**** DelugePWD = test**** ###### qBittorrent (You must edit this if you're using TorrentToMedia.py with qBittorrent) qBittorrentHost = localhost qBittorrentPort = 8080 qBittorrentUSR = your username qBittorrentPWD = your password ###### Synology Download Station (You must edit this if you're using TorrentToMedia.py with Synology DS) synoHost = localhost synoPort = 5000 synoUSR = your username synoPWD = your password ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ###### deleteOriginal = 0 chmodDirectory = 0 resume = 1 resumeOnFailure = 1

[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 = 1 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 = /nzbToMedia/userscripts/script.sh #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), Torre$ #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 = ""

amanalar avatar May 11 '20 16:05 amanalar

ok... interesting. I think the routines to try and find the unique directory are actually finding /completed/tv-sonnar as the "category" directory before finding /completed/Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF as the unique directory (so the script actually looks for /completed/tv-sonnar/Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF which doesn't exist.

Are you able to remove /completed/tv-sonnar as this wouldn't be used in the process? The script should then find /completed/Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF and extract/copy all files over to /windows/u/opt/deluge/process/tv-sonnar/Killing.Eve.S03E05.READNFO.720p.WEBRip.x264-XLF and then pass these through to Radarr.

Also you have useLink = no Unless you have a specific reason, I would suggest using useLink = hard this way it will make what appears to be a copy of the file in a new location (which gets processed while the original Torrent keeps seeding) but only uses the 1 data source so doesn't take up extra hard-drive space.

If you don't want to continue seeding, then just use move (basically copy will take a lot longer and will double up on hard-drive usage).

clinton-hall avatar May 11 '20 19:05 clinton-hall

Okay added a nice crappy show:

So you were right, deleting those folders placed an extracted file here:

/windows/u/opt/deluge/process/tv-sonarr/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS

The script created the tv-sonarr directory.

A few things here, first is now deluge is reporting a duplicate torrent error.

image not sure what that's abouut. Secondly, per useLink = no. I was expecting sonarr to copy the the extracted copy to the plex library directory which it didnt.

Now regarding use link. What I'd like to happen is if the download files is a archive set to then extract the set and move the extracted file to the correct plex library folder leave the original archive set seeding. If just the media file is detected then copy the media file and leave the original to seed.

I'm not really sure if thats possible so i just use copy and have auto remove in deluge kill the torrents a few weeks.

here is the latest from the log file.

btw, thanks for taking the time sir :D

2020-05-11 16:09:53 INFO ::MAIN: Loading config from [/home/amanalar/nzbToMedia/autoProcessMedia.cfg] 2020-05-11 16:09:53 INFO ::ENVIRONMENT: LANG: en_US.UTF-8 2020-05-11 16:09:53 INFO ::ENVIRONMENT: PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 2020-05-11 16:09:53 INFO ::ENVIRONMENT: HOME: /home/amanalar 2020-05-11 16:09:53 INFO ::ENVIRONMENT: LOGNAME: amanalar 2020-05-11 16:09:53 INFO ::ENVIRONMENT: USER: amanalar 2020-05-11 16:09:53 INFO ::ENVIRONMENT: SHELL: /bin/bash 2020-05-11 16:09:53 INFO ::ENVIRONMENT: INVOCATION_ID: 7eadb1aff5e14d848b440f2bd2baa41b 2020-05-11 16:09:53 INFO ::ENVIRONMENT: JOURNAL_STREAM: 9:23282 2020-05-11 16:09:53 INFO ::MAIN: Python v3.6 will reach end of life in 591 days. 2020-05-11 16:09:53 INFO ::MAIN: Checking database structure... 2020-05-11 16:09:53 DEBUG ::MAIN: Checking Initial Schema database upgrade 2020-05-11 16:09:53 DB ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',) 2020-05-11 16:09:53 DB ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version 2020-05-11 16:09:53 DEBUG ::MAIN: InitialSchema upgrade not required 2020-05-11 16:09:53 DEBUG ::MAIN: Checking if we can use git commands: git version 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git version with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git version : returned successful 2020-05-11 16:09:53 DEBUG ::MAIN: Using: git 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful 2020-05-11 16:09:53 INFO ::MAIN: Checking if git needs an update 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git rev-parse HEAD : returned successful 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git fetch origin with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git fetch origin : returned successful 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful 2020-05-11 16:09:53 DEBUG ::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 16:09:53 DEBUG ::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful 2020-05-11 16:09:53 DEBUG ::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= f5e4ec0981ab2f6fd97b14b24aa363a393396073, num_commits_behind = 0, num_commits_ahead = 0 2020-05-11 16:09:53 INFO ::MAIN: No update needed 2020-05-11 16:09:53 INFO ::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.15.0-99-generic) 2020-05-11 16:09:53 DEBUG ::MAIN: Connecting to deluge: http://10.255.255.12:58846 2020-05-11 16:09:53 INFO ::MAIN: ######################################################### 2020-05-11 16:09:53 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2020-05-11 16:09:53 INFO ::MAIN: ######################################################### 2020-05-11 16:09:53 DEBUG ::MAIN: Options passed into TorrentToMedia: ['/home/amanalar/nzbToMedia/TorrentToMedia.py', 'bd91d51a5e688de58c2d6286989711d4b79597d3', 'Batwoman.S01E19.720p.HDTV.x264-KILLERS', '/windows/u/opt/deluge/completed'] 2020-05-11 16:09:53 DEBUG ::MAIN: Adding TORRENT download info for directory /windows/u/opt/deluge/completed to database 2020-05-11 16:09:53 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET input_name = ?, input_hash = ?, input_id = ?, client_agent = ?, status = ?, last_update = ? WHERE input_directory = ? with args ['Batwoman.S01E19.720p.HDTV.x264-KILLERS', 'bd91d51a5e688de58c2d6286989711d4b79597d3', 'bd91d51a5e688de58c2d6286989711d4b79597d3', 'deluge', 0, 737556, '/windows/u/opt/deluge/completed'] 2020-05-11 16:09:53 DB ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (input_name, input_hash, input_id, client_agent, status, last_update) VALUES (?, ?, ?, ?, ?, ?) with args ['Batwoman.S01E19.720p.HDTV.x264-KILLERS', 'bd91d51a5e688de58c2d6286989711d4b79597d3', 'bd91d51a5e688de58c2d6286989711d4b79597d3', 'deluge', 0, 737556] 2020-05-11 16:09:53 DEBUG ::MAIN: Received Directory: /windows/u/opt/deluge/completed | Name: Batwoman.S01E19.720p.HDTV.x264-KILLERS | Category: tv-sonarr 2020-05-11 16:09:53 DEBUG ::MAIN: SEARCH: Could not find the category: tv-sonarr in the directory structure 2020-05-11 16:09:53 INFO ::MAIN: SEARCH: Found torrent directory Batwoman.S01E19.720p.HDTV.x264-KILLERS in input directory directory /windows/u/opt/deluge/completed 2020-05-11 16:09:53 INFO ::MAIN: SEARCH: Setting input_directory to /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:53 DEBUG ::MAIN: Determined Directory: /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS | Name: Batwoman.S01E19.720p.HDTV.x264-KILLERS | Category: tv-sonarr 2020-05-11 16:09:53 INFO ::MAIN: Auto-detected SECTION:UserScript 2020-05-11 16:09:53 DEBUG ::MAIN: Stopping torrent Batwoman.S01E19.720p.HDTV.x264-KILLERS in deluge while processing 2020-05-11 16:09:58 INFO ::MAIN: Output directory set to: /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:58 DEBUG ::MAIN: Scanning files in directory: /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:58 DEBUG ::MAIN: Found 1 files in /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:58 INFO ::COPYLINK: MEDIAFILE: [tvmaze.nfo] 2020-05-11 16:09:58 INFO ::COPYLINK: SOURCE FOLDER: [/windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS] 2020-05-11 16:09:58 INFO ::COPYLINK: TARGET FOLDER: [/windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS] 2020-05-11 16:09:58 INFO ::COPYLINK: Copying SOURCE MEDIAFILE -> TARGET FOLDER 2020-05-11 16:09:58 DEBUG ::MAIN: Checking for archives to extract in directory: /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r00 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r01 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r02 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r03 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r04 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r05 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r06 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r07 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r08 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r09 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r10 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r11 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r12 2020-05-11 16:09:58 DEBUG ::MAIN: EXTRACTOR: Unknown file type: .r13 2020-05-11 16:09:58 INFO ::MAIN: Extracting /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS/batwoman.s01e19.720p.hdtv.x264-killers.rar to /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:09:58 DEBUG ::MAIN: Extracting ['unrar', 'x', '-o+', '-y'] /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS/batwoman.s01e19.720p.hdtv.x264-killers.rar /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:10:10 INFO ::MAIN: EXTRACTOR: Extraction was successful for /windows/u/opt/deluge/completed/Batwoman.S01E19.720p.HDTV.x264-KILLERS/batwoman.s01e19.720p.hdtv.x264-killers.rar to /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:10:13 INFO ::MAIN: FLATTEN: Flattening directory: /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:10:13 DEBUG ::MAIN: Checking for empty folders in:/windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:10:13 INFO ::MAIN: Calling UserScript:UNCAT to post-process:Batwoman.S01E19.720p.HDTV.x264-KILLERS 2020-05-11 16:10:13 DEBUG ::MAIN: calling command: /usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /home/amanalar/nzbToMedia/tests/test.mp4 2020-05-11 16:10:19 INFO ::TRANSCODER: Checking [Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv] for corruption, please stand by ... 2020-05-11 16:10:19 DEBUG ::MAIN: calling command: /usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS/Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv 2020-05-11 16:10:19 INFO ::TRANSCODER: SUCCESS: [Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv] has no corruption. 2020-05-11 16:10:19 DEBUG ::USERSCRIPT: Checking file Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv to see if this should be processed. 2020-05-11 16:10:19 INFO ::USERSCRIPT: Running script /nzbToMedia/userscripts/script.sh Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv on file /windows/u/opt/deluge/process/tv-sonarr/Batwoman.S01E19.720p.HDTV.x264-KILLERS/Batwoman.S01E19.720p.HDTV.x264-KILLERS.mkv. 2020-05-11 16:10:19 ERROR ::USERSCRIPT: UserScript /nzbToMedia/userscripts/script.sh has failed 2020-05-11 16:10:19 DEBUG ::USERSCRIPT: Checking file tvmaze.nfo to see if this should be processed. 2020-05-11 16:10:19 INFO ::MAIN: 1 files were processed, but 1 still remain. outputDirectory will not be cleaned. 2020-05-11 16:10:19 ERROR ::MAIN: A problem was reported in the autoProcess* script. If torrent was paused we will resume seeding 2020-05-11 16:10:19 DEBUG ::MAIN: Starting torrent Batwoman.S01E19.720p.HDTV.x264-KILLERS in deluge 2020-05-11 16:10:24 ERROR ::MAIN: A problem was reported in the /home/amanalar/nzbToMedia/TorrentToMedia.py script.

edit: ignore the duplicate torrent, pretty sure i caused that. i manually downloaded a torrent to see if there were archives in it before having sonarr do it. derp

edit: actually just did another episode direct from sonarr and getting the same duplicate torrent error...

amanalar avatar May 11 '20 20:05 amanalar

ok... so looks like things are mostly working...

useLink:

any option will extract archives to that location, as above, so that is good.

As far as wanting to keep seeding, then delete the torrent later and still have your organised media... just trust me and try with useLink = hard

Now, the main part where this is breaking down...

It appears you have

[userScript]
    [[UnCat]]
        enabled = 1

I assume you are wanting to process un-categorised downloads with a customs script script.sh The issue here is the script didn't identify tv-sonarr as the category for Sonarr...

so to make this work you would need to add

[Sonarr]
    [[tv-sonarr]]
        enabled = 1

And enter in the appropriate Sonarr details in that section.

Likewise for radarr, you would need to configure the category (That Radarr passes to deluge, e.g. movie-radarr)

[Radarr]
    [[movie-radarr]]
        enabled = 1

and then set the radarr details in that section

clinton-hall avatar May 11 '20 23:05 clinton-hall

just to keep things simple ive set Uncat to 0 and am use link hard. this time it do not extract to the deluge/process/tv-sonarr/ folder.

2020-05-11 21:45:20 INFO ::MAIN: Loading config from [/home/amanalar/nzbToMedia/autoProcessMedia.cfg] 2020-05-11 21:45:20 INFO ::ENVIRONMENT: LANG: en_US.UTF-8 2020-05-11 21:45:20 INFO ::ENVIRONMENT: PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 2020-05-11 21:45:20 INFO ::ENVIRONMENT: HOME: /home/amanalar 2020-05-11 21:45:20 INFO ::ENVIRONMENT: LOGNAME: amanalar 2020-05-11 21:45:20 INFO ::ENVIRONMENT: USER: amanalar 2020-05-11 21:45:20 INFO ::ENVIRONMENT: SHELL: /bin/bash 2020-05-11 21:45:20 INFO ::ENVIRONMENT: INVOCATION_ID: 7eadb1aff5e14d848b440f2bd2baa41b 2020-05-11 21:45:20 INFO ::ENVIRONMENT: JOURNAL_STREAM: 9:23282 2020-05-11 21:45:20 INFO ::MAIN: Python v3.6 will reach end of life in 591 days. 2020-05-11 21:45:20 INFO ::MAIN: Checking database structure... 2020-05-11 21:45:20 DEBUG ::MAIN: Checking Initial Schema database upgrade 2020-05-11 21:45:20 DB ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',) 2020-05-11 21:45:20 DB ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version 2020-05-11 21:45:20 DEBUG ::MAIN: InitialSchema upgrade not required 2020-05-11 21:45:20 DEBUG ::MAIN: Checking if we can use git commands: git version 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git version with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git version : returned successful 2020-05-11 21:45:20 DEBUG ::MAIN: Using: git 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful 2020-05-11 21:45:20 INFO ::MAIN: Checking if git needs an update 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git rev-parse HEAD : returned successful 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git fetch origin with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git fetch origin : returned successful 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful 2020-05-11 21:45:20 DEBUG ::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /home/amanalar/nzbToMedia 2020-05-11 21:45:20 DEBUG ::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful 2020-05-11 21:45:20 DEBUG ::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= f5e4ec0981ab2f6fd97b14b24aa363a393396073, num_commits_behind = 0, num_commits_ahead = 0 2020-05-11 21:45:20 INFO ::MAIN: No update needed 2020-05-11 21:45:20 INFO ::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.15.0-99-generic) 2020-05-11 21:45:21 DEBUG ::MAIN: Connecting to deluge: http://10.255.255.12:58846 2020-05-11 21:45:21 INFO ::MAIN: ######################################################### 2020-05-11 21:45:21 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2020-05-11 21:45:21 INFO ::MAIN: ######################################################### 2020-05-11 21:45:21 DEBUG ::MAIN: Options passed into TorrentToMedia: ['/home/amanalar/nzbToMedia/TorrentToMedia.py', 'a61c960a0a26e912530b13e4906178d9466ad4be', 'Batwoman.S01E16.720p.HDTV.x264-AVS', '/windows/u/opt/deluge/completed'] 2020-05-11 21:45:21 DEBUG ::MAIN: Adding TORRENT download info for directory /windows/u/opt/deluge/completed to database 2020-05-11 21:45:21 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET input_name = ?, input_hash = ?, input_id = ?, client_agent = ?, status = ?, last_update = ? WHERE input_directory = ? with args ['Batwoman.S01E16.720p.HDTV.x264-AVS', 'a61c960a0a26e912530b13e4906178d9466ad4be', 'a61c960a0a26e912530b13e4906178d9466ad4be', 'deluge', 0, 737556, '/windows/u/opt/deluge/completed'] 2020-05-11 21:45:21 DB ::MAIN: nzbtomedia.db: INSERT OR IGNORE INTO downloads (input_name, input_hash, input_id, client_agent, status, last_update) VALUES (?, ?, ?, ?, ?, ?) with args ['Batwoman.S01E16.720p.HDTV.x264-AVS', 'a61c960a0a26e912530b13e4906178d9466ad4be', 'a61c960a0a26e912530b13e4906178d9466ad4be', 'deluge', 0, 737556] 2020-05-11 21:45:21 DEBUG ::MAIN: Received Directory: /windows/u/opt/deluge/completed | Name: Batwoman.S01E16.720p.HDTV.x264-AVS | Category: tv-sonarr 2020-05-11 21:45:21 DEBUG ::MAIN: SEARCH: Could not find the category: tv-sonarr in the directory structure 2020-05-11 21:45:21 INFO ::MAIN: SEARCH: Found torrent directory Batwoman.S01E16.720p.HDTV.x264-AVS in input directory directory /windows/u/opt/deluge/completed 2020-05-11 21:45:21 INFO ::MAIN: SEARCH: Setting input_directory to /windows/u/opt/deluge/completed/Batwoman.S01E16.720p.HDTV.x264-AVS 2020-05-11 21:45:21 DEBUG ::MAIN: Determined Directory: /windows/u/opt/deluge/completed/Batwoman.S01E16.720p.HDTV.x264-AVS | Name: Batwoman.S01E16.720p.HDTV.x264-AVS | Category: tv-sonarr 2020-05-11 21:45:21 ERROR ::MAIN: Unable to locate a section with subsection:tv-sonarr enabled in your autoProcessMedia.cfg, exiting!

amanalar avatar May 12 '20 01:05 amanalar

Unable to locate a section with subsection:tv-sonarr enabled in your autoProcessMedia.cfg, exiting!

So I guess the question is, what do you want to happen after the files are extracted? Do you want this passed over to Sonarr? if so then set

[Sonarr]
    [[tv-sonarr]]
        enabled = 1

or if you want your custom script to run instead, set:

[userScript]
    [[UnCat]]
        enabled = 1

but note that the script script.sh failed in the previous logs, so that is something that would need to be investigated to find out what happened...

clinton-hall avatar May 12 '20 03:05 clinton-hall