clinton-hall / nzbToMedia

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

AttributeError: 'sqlite3.Row' object has no attribute 'get' #1774

Closed XxUnkn0wnxX closed 4 years ago

XxUnkn0wnxX commented 4 years ago

@clinton-hall Describe the bug i get an error based on how the folder is named that contains the file for processing. when i rename it to something else it works but this is frustrating if i have to manually do it

Technical Specs OS: macOS 10.15.6 Python version: 3.8.5 Download Client: SabNZB Intended Media Management: Medusa

Log

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif method is 'post':
[01:37:37] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[01:37:37] [INFO]::MAIN: Python v3.8 will reach end of life in 1487 days.
[01:37:37] [INFO]::MAIN: Checking database structure...
[01:37:37] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[01:37:37] [DEBUG]::MAIN: InitialSchema upgrade not required
[01:37:37] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[01:37:37] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:37] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[01:37:37] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[01:37:37] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:37] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[01:37:37] [INFO]::MAIN: Checking if git needs an update
[01:37:37] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:37] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[01:37:37] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:38] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[01:37:38] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:38] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[01:37:38] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:37:38] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[01:37:38] [DEBUG]::MAIN: cur_commit = b3dc118b52cab0fa658d9bf046b2ff012553aa55 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 0, num_commits_ahead = 0
[01:37:38] [INFO]::MAIN: No update needed
[01:37:38] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Darwin 19.6.0)
[01:37:39] [INFO]::MAIN: #########################################################
[01:37:39] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[01:37:39] [INFO]::MAIN: #########################################################
[01:37:39] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py']
[01:37:39] [WARNING]::MAIN: Invalid number of arguments received from client, Switching to manual run mode ...
[01:37:39] [INFO]::MAIN: Searching /Volumes/MStorage2/Downloads/AppDL/medusa for mediafiles to post-process ...
[01:37:39] [INFO]::MAIN: Searching /Volumes/MStorage2/Downloads/AppDL/medusa for mediafiles to post-process ...
[01:37:39] [INFO]::MAIN: Starting manual run for SickBeard:medusa - Folder: /Volumes/MStorage2/Downloads/AppDL/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:37:39] [INFO]::MAIN: Checking database for download info for [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] ...
[01:37:39] [INFO]::MAIN: Found download info for [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p], setting variables now ...
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py", line 273, in <module>
    result = nzbToMedia.main(sys.argv, section)
  File "/Users/ovidijus/Apps/nzbToMedia/nzbToMedia.py", line 1019, in main
    client_agent = text_type(core.DOWNLOAD_INFO[0].get('client_agent', 'manual'))
AttributeError: 'sqlite3.Row' object has no attribute 'get'

Full Log: nzbtomedia.log

Script Log Inside Sab:

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif method is 'post':
[01:16:32] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[01:16:32] [INFO]::MAIN: Python v3.8 will reach end of life in 1487 days.
[01:16:32] [INFO]::MAIN: Checking database structure...
[01:16:32] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[01:16:32] [DEBUG]::MAIN: InitialSchema upgrade not required
[01:16:32] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[01:16:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:32] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[01:16:32] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[01:16:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:32] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[01:16:32] [INFO]::MAIN: Checking if git needs an update
[01:16:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:32] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[01:16:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:33] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[01:16:33] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:33] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[01:16:33] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[01:16:33] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[01:16:33] [DEBUG]::MAIN: cur_commit = b3dc118b52cab0fa658d9bf046b2ff012553aa55 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 0, num_commits_ahead = 0
[01:16:33] [INFO]::MAIN: No update needed
[01:16:33] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Darwin 19.6.0)
[01:16:33] [INFO]::MAIN: #########################################################
[01:16:33] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[01:16:33] [INFO]::MAIN: #########################################################
[01:16:33] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py', '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '[HorribleSubs].Re.Zero.kara.Hajimeru.Isekai.Seikatsu.-.36.[1080p].nzb', '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '', 'medusa', 'alt.binaries.boneless', '2', '']
[01:16:33] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[01:16:33] [DEBUG]::MAIN: Adding NZB download info for directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] to database
[01:16:33] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[01:16:33] [INFO]::MAIN: Calling SickBeard:medusa to post-process:[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:16:33] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:8081
[01:16:33] [DEBUG]::SERVER: Server responded at http://localhost:8081
[01:16:33] [INFO]::MAIN: Attempting to auto-detect medusa fork
[01:16:33] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_on', 'dir', 'dirName', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir']
[01:16:33] [INFO]::MAIN: SickBeard:medusa fork auto-detection successful ...
[01:16:33] [INFO]::MAIN: SickBeard:medusa fork set to Medusa-api
[01:16:33] [INFO]::MAIN: FLATTEN: Flattening directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:16:33] [DEBUG]::MAIN: Checking for empty folders in:/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:16:33] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to Medusa-api branch
[01:16:33] [DEBUG]::SICKBEARD: Opening URL: http://localhost:8081/api/HIDDEN/ with params: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', 'failed': 2, 'return_data': 0, 'cmd': 'postprocess', 'nzbName': '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]'}
[01:16:33] [POSTPROCESS]::SICKBEARD: Deleting failed files and folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:16:33] [INFO]::MAIN: Deleting /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[01:16:33] [ERROR]::MAIN: A problem was reported in the /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script.
Changing to directory: /Users/ovidijus/Apps/nzbToMedia

-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'

-- Cleaning folders: ['libs', 'core'] --
No folders to clean

Returning to directory:  /Applications/SABnzbd.app/Contents/MacOS

-- Cleanup finished --

SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

Notes: The error occurs if the folder i name like this Screen Shot 2020-09-18 at 1 47 47 am

Screen Shot 2020-09-18 at 1 50 12 am

But if i drop the [HorribleSubs] at the start it process it fine i ran nzbToSickBeard.py manually to troubleshoot it, as Sab gives the error: [01:16:33] [ERROR]::MAIN: A problem was reported in the /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script.

clinton-hall commented 4 years ago

What do the Medusa logs at [01:16:33]

That first postProcess event looked like it ran correctly, but then Medusa returned an un-expected response.

When you try to run this manually it appears to throw an error trying to retrieve the (previous postprocess event) data from the database... This is why re-naming the folder allows it to by-pass this step.

Is it just this show, or have you had others?

I can add exception handling for the database query... but probably more important is to get the process between nzbToMedia and Medusa working.

XxUnkn0wnxX commented 4 years ago

i've had this occur for other shows as well

i re-ran the test to reproduce the logs on both.

here is the Logs:

i can't find anything out of the ordinary

nzbtomedia.log application.log

i re ran it a few times & nothing shows in the medusa log

Screen Shot 2020-09-18 at 9 38 06 am

XxUnkn0wnxX commented 4 years ago

its happening to all my my NZB downloads:

it just fails & deletes them all.

Screen Shot 2020-09-18 at 9 59 17 am

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif method is 'post':
[09:58:58] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[09:58:58] [INFO]::MAIN: Python v3.8 will reach end of life in 1487 days.
[09:58:58] [INFO]::MAIN: Checking database structure...
[09:58:58] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[09:58:58] [DEBUG]::MAIN: InitialSchema upgrade not required
[09:58:58] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[09:58:58] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:58] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[09:58:58] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[09:58:58] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:58] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[09:58:58] [INFO]::MAIN: Checking if git needs an update
[09:58:58] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:58] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[09:58:58] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:59] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[09:58:59] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:59] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[09:58:59] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[09:58:59] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[09:58:59] [DEBUG]::MAIN: cur_commit = b3dc118b52cab0fa658d9bf046b2ff012553aa55 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 0, num_commits_ahead = 0
[09:58:59] [INFO]::MAIN: No update needed
[09:58:59] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Darwin 19.6.0)
[09:58:59] [INFO]::MAIN: #########################################################
[09:58:59] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[09:58:59] [INFO]::MAIN: #########################################################
[09:58:59] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py', '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', '[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].nzb', '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', '', 'medusa', 'alt.binaries.anime.repost', '2', '']
[09:58:59] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[09:58:59] [DEBUG]::MAIN: Adding NZB download info for directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352] to database
[09:58:59] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[09:58:59] [INFO]::MAIN: Calling SickBeard:medusa to post-process:[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
[09:58:59] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:8081
[09:58:59] [DEBUG]::SERVER: Server responded at http://localhost:8081
[09:58:59] [INFO]::MAIN: Attempting to auto-detect medusa fork
[09:58:59] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_on', 'dir', 'dirName', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir']
[09:58:59] [INFO]::MAIN: SickBeard:medusa fork auto-detection successful ...
[09:58:59] [INFO]::MAIN: SickBeard:medusa fork set to Medusa-api
[09:58:59] [DEBUG]::EXCEPTION: Replacing file name 825c41c8dc1b4e4bab892a30ee148411 with directory name [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352]
[09:58:59] [DEBUG]::EXCEPTION: Replacing file name /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/825c41c8dc1b4e4bab892a30ee148411.mkv with download name /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv
[09:58:59] [INFO]::MAIN: FLATTEN: Flattening directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
[09:58:59] [DEBUG]::MAIN: Checking for empty folders in:/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
[09:58:59] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to Medusa-api branch
[09:58:59] [DEBUG]::SICKBEARD: Opening URL: http://localhost:8081/api/HIDDEN/ with params: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', 'failed': 2, 'return_data': 0, 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]'}
[09:58:59] [POSTPROCESS]::SICKBEARD: Deleting failed files and folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
[09:58:59] [INFO]::MAIN: Deleting /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
[09:58:59] [ERROR]::MAIN: A problem was reported in the /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script.
Changing to directory: /Users/ovidijus/Apps/nzbToMedia

-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'

-- Cleaning folders: ['libs', 'core'] --
No folders to clean

Returning to directory:  /Applications/SABnzbd.app/Contents/MacOS

-- Cleanup finished --

SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

nzbtomedia.log

application.log.zip

EP7 succeeded while the rest failed, this starting to become a hit or miss, mostly miss... starting to see more & more snatched episodes never being processes properly.

in medusa it doesnt even get to the Processing path part, it just succeeds in logging in with the key & passing the kwargs & just stops there..

Log Snipet:

2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-05 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DBFA76FB]', 'failed': '2', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-05 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DBFA76FB]'}"
2020-09-18 09:58:53 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-05 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DBFA76FB]', 'failed': '2', 'return_data': '0', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-05 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DBFA76FB]'}
2020-09-18 09:58:55 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Come+wa+Machigatteiru+37+REAL [Status: 200]
2020-09-18 09:58:55 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:58:55 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:58:55 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: My Teen Romantic Comedy SNAFU Climax! 37 REAL
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', 'failed': '2', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]'}"
2020-09-18 09:58:59 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', 'failed': '2', 'return_data': '0', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]'}
2020-09-18 09:59:02 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=My+Teen+Romantic+Comedy+SNAFU+Climax%21+37+REAL [Status: 200]
2020-09-18 09:59:02 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:02 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:02 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun Love Come wa Machigatteiru. 37 REAL
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]', 'failed': '0', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]'}"
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]', 'failed': '0', 'return_data': '0', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]'}
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Processing path: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Processing folder: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Post-processing files: ['[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv']
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Post-processing video files: ['[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv']
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] Processing /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Analyzing name: [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Series My Teen Romantic Comedy SNAFU is anime
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Found absolute number 33 for show My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Season and episode lookup for My Teen Romantic Comedy SNAFU using absolute number 33
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Found season and episode which is My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Detected a season scene exception [My Teen Romantic Comedy SNAFU Climax! -> 3] without a season number in the title, translating the episode #7 to indexer #33: S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [33], screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 9681D330, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.04011392593383789, season: 3, quality: 1080p HDTV, total_time: 0.04195713996887207
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Show information parsed from file name
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Retrieving episode object for My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] The episode file has a quality in it, using that: 1080p HDTV
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] This episode was found in history as SNATCHED.
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Quality of the episode we are processing: 1080p HDTV
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Snatch in history: True
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Manually snatched: True
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Info hash: None
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] NZB: False
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Current quality: 1080p HDTV
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] New quality: 1080p HDTV
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Proper: False
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] This episode is a priority download: True
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] Old file: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] New file: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] Old size: 1.43 GB
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] New size: 236.46 MB
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] New file is 1.20 GB smaller
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] This download is marked a priority download so I'm going to replace an existing file if I find one
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Trying to determine free space on destination drive
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] No associated files were found for /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Deleting file: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] Trying to clean any empty folder under /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Found release name [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330]
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Series My Teen Romantic Comedy SNAFU is anime
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Found absolute number 33 for show My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Season and episode lookup for My Teen Romantic Comedy SNAFU using absolute number 33
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Found season and episode which is My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Detected a season scene exception [My Teen Romantic Comedy SNAFU Climax! -> 3] without a season number in the title, translating the episode #7 to indexer #33: S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [33], language: en, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mkv, crc32: 9681D330, type: episode, parsing_time: 0.04375863075256348, season: 3, quality: 1080p HDTV, total_time: 0.045838117599487305
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Folder name ([Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]) appears to be a valid release name. Using it.
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [7], type: episode, parsing_time: 0.03557896614074707, absolute_episode: [], quality: Unknown, total_time: 0.03570914268493652
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [7], screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 9681D330, type: episode, parsing_time: 0.038523197174072266, season: None, quality: 1080p HDTV, total_time: 0.03864407539367676
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Until the End, Yui Yuigahama Will Continue Watching Over Them
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: %SN S%0SE07 -> My Teen Romantic Comedy SNAFU S03E07
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [7], type: episode, parsing_time: 0.033772945404052734, absolute_episode: [], quality: Unknown, total_time: 0.033902883529663086
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [7], screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 9681D330, type: episode, parsing_time: 0.03865694999694824, season: None, quality: 1080p HDTV, total_time: 0.038733720779418945
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Until the End, Yui Yuigahama Will Continue Watching Over Them
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: Season %S -> Season 3
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Destination folder for this episode: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Checking if the path /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3 already exists
2020-09-18 09:59:05 DEBUG    TORNADO :: [efadfe9] Adding the file to the anidb mylist
2020-09-18 09:59:05 INFO     TORNADO :: [efadfe9] Calculating the ed2k. Please wait...
2020-09-18 09:59:07 DEBUG    Thread-26 :: [efadfe9] NetIO < b'T001 320 NO SUCH FILE\n'
2020-09-18 09:59:07 INFO     TORNADO :: [efadfe9] Added the episode to anidb
2020-09-18 09:59:07 DEBUG    TORNADO :: [efadfe9] No associated files were found for /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv
2020-09-18 09:59:07 DEBUG    TORNADO :: [efadfe9] Moving file from /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv to /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv 
2020-09-18 09:59:08 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Come+wa+Machigatteiru.+37+REAL [Status: 200]
2020-09-18 09:59:08 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:08 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:08 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun LoveCome wa Machigatte Iru. Kan 37 REAL
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Setting permissions for /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv to 436 as parent directory has 509
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Transaction with 1 queries executed
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] 267435: Setter sets location to /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07.mkv
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Transaction with 1 queries executed
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Notification for NMJ scan update not enabled, skipping this notification
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [7], type: episode, parsing_time: 0.042237043380737305, absolute_episode: [], quality: Unknown, total_time: 0.04238629341125488
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [7], screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 9681D330, type: episode, parsing_time: 0.05011892318725586, season: None, quality: 1080p HDTV, total_time: 0.050203800201416016
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Until the End, Yui Yuigahama Will Continue Watching Over Them
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: %SN - %AB - %EN - %QN -> My Teen Romantic Comedy SNAFU - 033 - Until the End, Yui Yuigahama Will Continue Watching Over Them - 1080p HDTV
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] GROWL: Sending growl to localhost:23053 - 'My Teen Romantic Comedy SNAFU - 033 - Until the End, Yui Yuigahama Will Continue Watching Over Them - 1080p HDTV'
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E07 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [7], type: episode, parsing_time: 0.04962897300720215, absolute_episode: [], quality: Unknown, total_time: 0.04986286163330078
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax!, episode: [7], absolute_episode: [7], screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 9681D330, type: episode, parsing_time: 0.05980062484741211, season: None, quality: 1080p HDTV, total_time: 0.059916019439697266
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Until the End, Yui Yuigahama Will Continue Watching Over Them
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: %SN - %AB - %EN - %QN -> My Teen Romantic Comedy SNAFU - 033 - Until the End, Yui Yuigahama Will Continue Watching Over Them - 1080p HDTV
2020-09-18 09:59:08 INFO     TORNADO :: [efadfe9] Processing succeeded for /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan) [HIDIVE 1080p x264 AAC] [9681D330].mkv
2020-09-18 09:59:08 INFO     TORNADO :: [efadfe9] Deleting folder (if it's empty): /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]
2020-09-18 09:59:08 DEBUG    TORNADO :: [efadfe9] Deleted folder: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax! - 07 (Yahari Ore no Seishun Love Comedy wa Machigatteiru  Kan) [English Dub] [HIDIVE 1080p x264 AAC] [MKV] [9681D330]
2020-09-18 09:59:08 INFO     TORNADO :: [efadfe9] Post-processing completed.
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-08 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DB6B8286]', 'failed': '2', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-08 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DB6B8286]'}"
2020-09-18 09:59:14 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-08 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DB6B8286]', 'failed': '2', 'return_data': '0', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-08 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [DB6B8286]'}
2020-09-18 09:59:14 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+LoveCome+wa+Machigatte+Iru.+Kan+37+REAL [Status: 200]
2020-09-18 09:59:14 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:14 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:14 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan 37 REAL
2020-09-18 09:59:20 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Comedy+wa+Machigatteiru+Kan+37+REAL [Status: 200]
2020-09-18 09:59:20 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:20 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:20 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun Love Comedy wa Machigatteiru 37 REAL
2020-09-18 09:59:26 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Comedy+wa+Machigatteiru+37+REAL [Status: 200]
2020-09-18 09:59:26 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:26 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:26 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun Love Comedy wa Machigatteiru - My Teenage RomCom SNAFU 37 REAL
2020-09-18 09:59:31 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Comedy+wa+Machigatteiru+-+My+Teenage+RomCom+SNAFU+37+REAL [Status: 200]
2020-09-18 09:59:31 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:31 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:31 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: My Teen Romantic Comedy SNAFU Climax 37 REAL
2020-09-18 09:59:37 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=My+Teen+Romantic+Comedy+SNAFU+Climax+37+REAL [Status: 200]
2020-09-18 09:59:37 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] User-Agent: Medusa/0.4.3 (Darwin; 19.6.0; 347b5c76-f938-11ea-909f-38c9862e1437)
2020-09-18 09:59:37 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] No results returned from provider. Check chosen Torznab search categories in provider settings.
2020-09-18 09:59:37 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] Search show using search string: Yahari Ore no Seishun Love Comedy wa Machigatteiru. Kan – My Teen Romantic Comedy SNAFU Climax 37 REAL
2020-09-18 09:59:43 DEBUG    FINDPROPERS :: [RARBG [Jackett]] :: [efadfe9] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=100018%2C100041%2C100049%2C5030%2C5040&q=Yahari+Ore+no+Seishun+Love+Comedy+wa+Machigatteiru.+Kan+%E2%80%93+My+Teen+Romantic+Comedy+SNAFU+Climax+37+REAL [Status: 200]

not sure if this is just a nzbtomedia issue or maybe medusa could be involved? @p0psicles this like happening to all my downloads now.. & nzbtomedia hasn't been updated for a while unlike medusa has (dev branch) issue persists on master branch on medusa as well...

clinton-hall commented 4 years ago

I am completely at a loss as to what is happening here:

  1. SAB is telling nzbToMedia that the download was not extracted (Status = 2).
  2. nzbToMedia is finding and renaming the .mkv file, but is not then marking the Download as successful
    • Assuming you have CHECK_MEDIA disabled?
  3. nzbToMedia is passing Failed = 2 to Medusa. Not failed = 1.

So either SABnzbd needs to be passing through a successful status, or nzbToMedia needs to be set to check media

[General]
    check_media = 1
    no_extract_failed = 0

With these options nzbToMedia should be doing some additional steps in here to determine the "true" status.

I will try and fix the potential state where status gets passed as an integer > 1.

clinton-hall commented 4 years ago

I have added a few possible fixes in clinton-hall-patch-1 branch. Can you switch to this and test?

XxUnkn0wnxX commented 4 years ago

@clinton-hall ok i switched to the branch 97397379ce502836dc4cfaacf68699ab93bfee59 but now medusa is saying Failed download detected

Test 1

& nzbtomedia says POSTPROCESS::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to Medusa-api branch

log from sab:

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif method is 'post':
[18:58:30] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[18:58:30] [INFO]::MAIN: Python v3.8 will reach end of life in 1487 days.
[18:58:30] [INFO]::MAIN: Checking database structure...
[18:58:30] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[18:58:30] [DEBUG]::MAIN: InitialSchema upgrade not required
[18:58:30] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[18:58:30] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:30] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[18:58:30] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[18:58:30] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:30] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[18:58:30] [INFO]::MAIN: Checking if git needs an update
[18:58:30] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:30] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[18:58:30] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:31] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[18:58:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:31] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[18:58:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:58:31] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[18:58:31] [DEBUG]::MAIN: cur_commit = 97397379ce502836dc4cfaacf68699ab93bfee59 % (newest_commit)= 97397379ce502836dc4cfaacf68699ab93bfee59, num_commits_behind = 0, num_commits_ahead = 0
[18:58:31] [INFO]::MAIN: No update needed
[18:58:31] [INFO]::MAIN: nzbToMedia Version:97397379ce502836dc4cfaacf68699ab93bfee59 Branch:clinton-hall-patch-1 (Darwin 19.6.0)
[18:58:31] [INFO]::MAIN: #########################################################
[18:58:31] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[18:58:31] [INFO]::MAIN: #########################################################
[18:58:31] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py', '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]', '[Golumpa].The.Millionaire.Detective-Balance.UNLIMITED-02.Fugou.Keiji-Balance.Unlimited.[FuniDub.1080p.x264.AAC].[A6AD3662].nzb', '[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]', '', 'medusa', 'alt.binaries.multimedia.anime', '2', '']
[18:58:31] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[18:58:31] [DEBUG]::MAIN: Adding NZB download info for directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662] to database
[18:58:31] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[18:58:31] [INFO]::MAIN: Calling SickBeard:medusa to post-process:[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:8081
[18:58:31] [DEBUG]::SERVER: Server responded at http://localhost:8081
[18:58:31] [INFO]::MAIN: Attempting to auto-detect medusa fork
[18:58:31] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_on', 'dir', 'dirName', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir']
[18:58:31] [INFO]::MAIN: SickBeard:medusa fork auto-detection successful ...
[18:58:31] [INFO]::MAIN: SickBeard:medusa fork set to Medusa-api
[18:58:31] [DEBUG]::EXCEPTION: Replacing file name 97da2bc9f652435f9569808fe1da4396 with directory name [Golumpa].The.Millionaire.Detective-Balance.UNLIMITED-02.Fugou.Keiji-Balance.Unlimited.[FuniDub.1080p.x264.AAC].[A6AD3662]
[18:58:31] [DEBUG]::EXCEPTION: Replacing file name /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]/97da2bc9f652435f9569808fe1da4396.mkv with download name /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]/[Golumpa].The.Millionaire.Detective-Balance.UNLIMITED-02.Fugou.Keiji-Balance.Unlimited.[FuniDub.1080p.x264.AAC].[A6AD3662].mkv
[18:58:31] [INFO]::MAIN: FLATTEN: Flattening directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [DEBUG]::MAIN: Checking for empty folders in:/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to Medusa-api branch
[18:58:31] [DEBUG]::SICKBEARD: Opening URL: http://localhost:8081/HIDDEN/ with params: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]', 'failed': 1, 'return_data': 0, 'cmd': 'postprocess', 'nzbName': '[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]'}
[18:58:31] [POSTPROCESS]::SICKBEARD: Deleting failed files and folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [INFO]::MAIN: Deleting /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [ERROR]::MAIN: Unable to delete folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]
[18:58:31] [INFO]::CLEANDIR: Directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662] has been processed and removed ...
[18:58:31] [INFO]::MAIN: The /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script completed successfully.
Changing to directory: /Users/ovidijus/Apps/nzbToMedia

-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'

-- Cleaning folders: ['libs', 'core'] --
No folders to clean

Returning to directory:  /Applications/SABnzbd.app/Contents/MacOS

-- Cleanup finished --

SickBeard: Successfully post-processed [Golumpa] The Millionaire Detective-Balance UNLIMITED-02 Fugou Keiji-Balance Unlimited [FuniDub 1080p x264 AAC] [A6AD3662]!

however running the script manually works without me changing anything i only placed the download into the post process dir

Screen Shot 2020-09-18 at 7 06 42 pm

Test 2

Screen Shot 2020-09-18 at 7 12 45 pm

medusa has processed them i believe

Log:

2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', 'failed': '0', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]'}"
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]', 'failed': '0', 'return_data': '0', 'nzbName': '[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]'}
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Processing path: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Processing folder: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Post-processing files: ['[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv']
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Post-processing video files: ['[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv']
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] Processing /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Analyzing name: [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Series My Teen Romantic Comedy SNAFU is anime
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Found absolute number 32 for show My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Season and episode lookup for My Teen Romantic Comedy SNAFU using absolute number 32
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Found season and episode which is My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Detected a season scene exception [My Teen Romantic Comedy SNAFU Climax -> 3] without a season number in the title, translating the episode #6 to indexer #32: S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax, episode: [6], absolute_episode: [32], episode_title: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 4BBFC352, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.037285804748535156, season: 3, quality: 1080p HDTV, total_time: 0.03917503356933594
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Show information parsed from file name
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Retrieving episode object for My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] The episode file has a quality in it, using that: 1080p HDTV
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] This episode was found in history as SNATCHED.
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Quality of the episode we are processing: 1080p HDTV
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Snatch in history: True
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Manually snatched: True
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Info hash: None
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] NZB: False
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Current quality: 1080p HDTV
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] New quality: 1080p HDTV
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Proper: False
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] This episode is a priority download: True
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] Old file: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] New file: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] Old size: 242.14 MB
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] New size: 242.14 MB
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] New file is the same size.
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] This download is marked a priority download so I'm going to replace an existing file if I find one
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Trying to determine free space on destination drive
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] No associated files were found for /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Deleting file: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] Trying to clean any empty folder under /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Found release name [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352]
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Series My Teen Romantic Comedy SNAFU is anime
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Found absolute number 32 for show My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Season and episode lookup for My Teen Romantic Comedy SNAFU using absolute number 32
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Found season and episode which is My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Detected a season scene exception [My Teen Romantic Comedy SNAFU Climax -> 3] without a season number in the title, translating the episode #6 to indexer #32: S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax, episode: [6], absolute_episode: [32], episode_title: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 4BBFC352, type: episode, parsing_time: 0.03959298133850098, season: 3, quality: 1080p HDTV, total_time: 0.041576385498046875
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Folder name ([Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]) appears to be a valid release name. Using it.
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [6], type: episode, parsing_time: 0.03501105308532715, absolute_episode: [], quality: Unknown, total_time: 0.03521084785461426
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax, episode: [6], absolute_episode: [6], episode_title: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 4BBFC352, type: episode, parsing_time: 0.03890085220336914, season: None, quality: 1080p HDTV, total_time: 0.03897809982299805
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Once again, Hachiman Hikigaya Makes a Speech
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: %SN S%0SE06 -> My Teen Romantic Comedy SNAFU S03E06
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [6], type: episode, parsing_time: 0.03889727592468262, absolute_episode: [], quality: Unknown, total_time: 0.039029836654663086
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax, episode: [6], absolute_episode: [6], episode_title: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 4BBFC352, type: episode, parsing_time: 0.04192018508911133, season: None, quality: 1080p HDTV, total_time: 0.04199504852294922
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Found codec for My Teen Romantic Comedy SNAFU Once again, Hachiman Hikigaya Makes a Speech
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] 267435: Formatting pattern: Season %S -> Season 3
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Destination folder for this episode: /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Checking if the path /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3 already exists
2020-09-18 19:08:47 DEBUG    TORNADO :: [efadfe9] Adding the file to the anidb mylist
2020-09-18 19:08:47 INFO     TORNADO :: [efadfe9] Calculating the ed2k. Please wait...
2020-09-18 19:08:48 DEBUG    Thread-23 :: [efadfe9] NetIO < b'T001 320 NO SUCH FILE\n'
2020-09-18 19:08:48 INFO     TORNADO :: [efadfe9] Added the episode to anidb
2020-09-18 19:08:48 DEBUG    TORNADO :: [efadfe9] No associated files were found for /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv
2020-09-18 19:08:48 DEBUG    TORNADO :: [efadfe9] Moving file from /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[Golumpa] My Teen Romantic Comedy SNAFU Climax-06 Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan [HIDIVE 1080p x264 AAC] [4BBFC352]/[Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352].mkv to /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv 
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Setting permissions for /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv to 436 as parent directory has 509
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Transaction with 1 queries executed
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] 267435: Setter sets location to /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06.mkv
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Transaction with 1 queries executed
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Notification for NMJ scan update not enabled, skipping this notification
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Matched release /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Parsed /Volumes/Media/Anime/My Teen Romantic Comedy SNAFU/Season 3/My Teen Romantic Comedy SNAFU S03E06 into title: My Teen Romantic Comedy SNAFU, season: 3, episode: [6], type: episode, parsing_time: 0.034735918045043945, absolute_episode: [], quality: Unknown, total_time: 0.03486776351928711
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Matched release [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] to a series in your database: My Teen Romantic Comedy SNAFU
2020-09-18 19:08:49 DEBUG    TORNADO :: [efadfe9] Parsed [Golumpa].My.Teen.Romantic.Comedy.SNAFU.Climax-06.Yahari.Ore.no.Seishun.Love.Comedy.wa.Machigatteiru.Kan.[HIDIVE.1080p.x264.AAC].[4BBFC352] into release_group: Golumpa, title: My Teen Romantic Comedy SNAFU Climax, episode: [6], absolute_episode: [6], episode_title: Yahari Ore no Seishun Love Comedy wa Machigatteiru Kan, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: AAC, crc32: 4BBFC352, type: episode, parsing_time: 0.03670811653137207, season: None, quality: 1080p HDTV, total_time: 0.036782026290893555

Test 3

but then it fails again

Medusa Log Snipet:

2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'sg.postprocess', 'help': '1'}"
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: sg.postprocess: {'help': '1'}
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'cmd': 'help', 'subject': 'postprocess'}"
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: help: {'subject': 'postprocess'}
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: 127.0.0.1 - gave correct API KEY. ACCESS GRANTED
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all args: ()
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: all kwargs: "{'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', 'failed': '1', 'return_data': '0', 'cmd': 'postprocess', 'nzbName': '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]'}"
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] API :: postprocess: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', 'failed': '1', 'return_data': '0', 'nzbName': '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]'}
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Processing path: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] Failed download detected: (None, /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p])
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Using cached parse result for [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Folder name ([HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]) appears to be a valid release name. Using it.
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Using cached parse result for [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Parsed info: release_group: HorribleSubs, title: Re Zero kara Hajimeru Isekai Seikatsu, episode: [11], absolute_episode: [36], screen_size: 1080p, type: episode, parsing_time: 0.025145769119262695, season: 2, quality: 1080p HDTV, total_time: 0.026486873626708984
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Detected as single/multi episode: [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Adding this release to failed queue: [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] Deleting folder: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 DEBUG    TORNADO :: [efadfe9] Deleted folder: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] Failed Download Processing succeeded: None, /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] Post-processing completed.
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] I did encounter some unprocessable items: 
2020-09-18 19:20:32 INFO     TORNADO :: [efadfe9] /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]: Failed download

Sab nzbtomedia log

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif method is 'post':
[19:20:31] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[19:20:31] [INFO]::MAIN: Python v3.8 will reach end of life in 1487 days.
[19:20:31] [INFO]::MAIN: Checking database structure...
[19:20:31] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[19:20:31] [DEBUG]::MAIN: InitialSchema upgrade not required
[19:20:31] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[19:20:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:31] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[19:20:31] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[19:20:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:31] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[19:20:31] [INFO]::MAIN: Checking if git needs an update
[19:20:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:31] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[19:20:31] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:32] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[19:20:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:32] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[19:20:32] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[19:20:32] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[19:20:32] [DEBUG]::MAIN: cur_commit = 97397379ce502836dc4cfaacf68699ab93bfee59 % (newest_commit)= 97397379ce502836dc4cfaacf68699ab93bfee59, num_commits_behind = 0, num_commits_ahead = 0
[19:20:32] [INFO]::MAIN: No update needed
[19:20:32] [INFO]::MAIN: nzbToMedia Version:97397379ce502836dc4cfaacf68699ab93bfee59 Branch:clinton-hall-patch-1 (Darwin 19.6.0)
[19:20:32] [INFO]::MAIN: #########################################################
[19:20:32] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[19:20:32] [INFO]::MAIN: #########################################################
[19:20:32] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py', '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '[HorribleSubs].Re.Zero.kara.Hajimeru.Isekai.Seikatsu.-.36.[1080p].nzb', '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '', 'medusa', 'alt.binaries.boneless', '2', '']
[19:20:32] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[19:20:32] [DEBUG]::MAIN: Adding NZB download info for directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] to database
[19:20:32] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[19:20:32] [INFO]::MAIN: Calling SickBeard:medusa to post-process:[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:8081
[19:20:32] [DEBUG]::SERVER: Server responded at http://localhost:8081
[19:20:32] [INFO]::MAIN: Attempting to auto-detect medusa fork
[19:20:32] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_on', 'dir', 'dirName', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir']
[19:20:32] [INFO]::MAIN: SickBeard:medusa fork auto-detection successful ...
[19:20:32] [INFO]::MAIN: SickBeard:medusa fork set to Medusa-api
[19:20:32] [INFO]::MAIN: FLATTEN: Flattening directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [DEBUG]::MAIN: Checking for empty folders in:/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to Medusa-api branch
[19:20:32] [DEBUG]::SICKBEARD: Opening URL: http://localhost:8081/api/HIDDEN/ with params: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', 'failed': 1, 'return_data': 0, 'cmd': 'postprocess', 'nzbName': '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]'}
[19:20:32] [POSTPROCESS]::SICKBEARD: Deleting failed files and folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [INFO]::MAIN: Deleting /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [ERROR]::MAIN: Unable to delete folder /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[19:20:32] [INFO]::CLEANDIR: Directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] has been processed and removed ...
[19:20:32] [INFO]::MAIN: The /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script completed successfully.
Changing to directory: /Users/ovidijus/Apps/nzbToMedia

-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'

-- Cleaning folders: ['libs', 'core'] --
No folders to clean

Returning to directory:  /Applications/SABnzbd.app/Contents/MacOS

-- Cleanup finished --

SickBeard: Successfully post-processed [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]!

but running it manually again like i did with the other one no issues

Screen Shot 2020-09-18 at 7 26 21 pm

i'd say its partially fixed but not there yet, running the script it via Sab fails hard. but running it manually works with no issues. so if manually works but via Sab it gets disregarded as failed that's still not good.

All Logs: nzbtomedia.log application.log

nzbtomedia config file - ive scrubbed the important stuff out

https://gist.github.com/XxUnkn0wnxX/15cc120a9d7697f1eab7db8cae1f543a

sab ver running: 3.0.2 [51cc765]

when TorrentToMedia.py runs from Qbittorrent i haven't found any issues yet.. just issues when Sab runs the script Hit or miss. <-- clinton-hall-patch-1 branch but all downloads process fine so far if running it manually nzbToSickBeard.py

p0psicles commented 4 years ago

If I get some time free, I'll check if there is something going wrong at Medusa's end

clinton-hall commented 4 years ago

The issue is not with Medusa. The issue is that SABnzbd is sending "failed" status. The code 2 says that unpack has failed. nzbToMedua can check files and make status not failed, but you need to enable check medua option. Manual run works because the failed status is not provided (as it is from SAB).

I don't know why SAB is giving this status. But that is the origin of the issues.

XxUnkn0wnxX commented 4 years ago

ok i was looking through Sab & i found this: Screen Shot 2020-09-19 at 6 02 51 pm in their documentation says: Some scripts will return a non-zero exit code when they encounter a problem. You can opt to let a non-zero exit code mark the job as failed. This can be useful when you're using an indexer that offers alternative NZB files or use a front-end (like SickBeard) that will look for alternatives when a job fails.

& the episodes that where failing Sab started working

nzbtomedia login inside Sab: with the option on

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif method is 'post':
[18:04:47] [INFO]::MAIN: Loading config from [/Users/ovidijus/Apps/nzbToMedia/autoProcessMedia.cfg]
[18:04:47] [INFO]::MAIN: Python v3.8 will reach end of life in 1486 days.
[18:04:47] [INFO]::MAIN: Checking database structure...
[18:04:47] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[18:04:47] [DEBUG]::MAIN: InitialSchema upgrade not required
[18:04:47] [DEBUG]::MAIN: Checking if we can use git commands: "/usr/local/bin/git" version
[18:04:47] [DEBUG]::MAIN: Executing "/usr/local/bin/git" version with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:47] [DEBUG]::MAIN: "/usr/local/bin/git" version : returned successful
[18:04:47] [DEBUG]::MAIN: Using: "/usr/local/bin/git"
[18:04:47] [DEBUG]::MAIN: Executing "/usr/local/bin/git" symbolic-ref -q HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:47] [DEBUG]::MAIN: "/usr/local/bin/git" symbolic-ref -q HEAD : returned successful
[18:04:47] [INFO]::MAIN: Checking if git needs an update
[18:04:47] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:47] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse HEAD : returned successful
[18:04:47] [DEBUG]::MAIN: Executing "/usr/local/bin/git" fetch origin with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:48] [DEBUG]::MAIN: "/usr/local/bin/git" fetch origin : returned successful
[18:04:48] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:48] [DEBUG]::MAIN: "/usr/local/bin/git" rev-parse --verify --quiet '@{upstream}' : returned successful
[18:04:48] [DEBUG]::MAIN: Executing "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD with your shell in /Users/ovidijus/Apps/nzbToMedia
[18:04:48] [DEBUG]::MAIN: "/usr/local/bin/git" rev-list --left-right '@{upstream}'...HEAD : returned successful
[18:04:48] [DEBUG]::MAIN: cur_commit = 97397379ce502836dc4cfaacf68699ab93bfee59 % (newest_commit)= 97397379ce502836dc4cfaacf68699ab93bfee59, num_commits_behind = 0, num_commits_ahead = 0
[18:04:48] [INFO]::MAIN: No update needed
[18:04:48] [INFO]::MAIN: nzbToMedia Version:97397379ce502836dc4cfaacf68699ab93bfee59 Branch:clinton-hall-patch-1 (Darwin 19.6.0)
[18:04:48] [INFO]::MAIN: #########################################################
[18:04:48] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[18:04:48] [INFO]::MAIN: #########################################################
[18:04:48] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py', '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '[HorribleSubs].Re.Zero.kara.Hajimeru.Isekai.Seikatsu.-.36.[1080p].nzb', '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', '', 'medusa', 'alt.binaries.boneless', '0', '']
[18:04:48] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2.
[18:04:48] [DEBUG]::MAIN: Adding NZB download info for directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] to database
[18:04:48] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[18:04:48] [DEBUG]::MAIN: Checking for archives to extract in directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[18:04:48] [INFO]::MAIN: Calling SickBeard:medusa to post-process:[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[18:04:48] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:8081
[18:04:48] [DEBUG]::SERVER: Server responded at http://localhost:8081
[18:04:48] [INFO]::MAIN: Attempting to auto-detect medusa fork
[18:04:48] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_on', 'dir', 'dirName', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir']
[18:04:48] [INFO]::MAIN: SickBeard:medusa fork auto-detection successful ...
[18:04:48] [INFO]::MAIN: SickBeard:medusa fork set to Medusa-api
[18:04:48] [INFO]::MAIN: FLATTEN: Flattening directory: /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[18:04:48] [DEBUG]::MAIN: Checking for empty folders in:/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]
[18:04:48] [DEBUG]::MAIN: calling command: /usr/local/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /Users/ovidijus/Apps/nzbToMedia/tests/test.mp4
[18:04:48] [INFO]::TRANSCODER: Checking [[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p].mkv] for corruption, please stand by ...
[18:04:48] [DEBUG]::MAIN: calling command: /usr/local/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p].mkv
[18:04:49] [INFO]::TRANSCODER: SUCCESS: [[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p].mkv] has no corruption.
[18:04:49] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request
[18:04:49] [DEBUG]::SICKBEARD: Opening URL: http://localhost:8081/api/HIDDEN with params: {'path': '/Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]', 'failed': 0, 'return_data': 0, 'cmd': 'postprocess', 'nzbName': '[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]'}
[18:05:09] [INFO]::CLEANDIR: Directory /Volumes/MStorage2/Downloads/NZB-Downloads/Complete/medusa/[HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p] has been processed and removed ...
[18:05:09] [INFO]::MAIN: The /Users/ovidijus/Apps/nzbToMedia/nzbToSickBeard.py script completed successfully.
Changing to directory: /Users/ovidijus/Apps/nzbToMedia

-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'

-- Cleaning folders: ['libs', 'core'] --
No folders to clean

Returning to directory:  /Applications/SABnzbd.app/Contents/MacOS

-- Cleanup finished --

SickBeard: Successfully post-processed [HorribleSubs] Re Zero kara Hajimeru Isekai Seikatsu - 36 [1080p]!

not sure why this works though, i found a really old thread regarding this option: https://forums.sabnzbd.org/viewtopic.php?t=17282 Status of post processing parameters: https://sabnzbd.org/wiki/scripts/post-processing-scripts.html#env_vars

or could this be a bug on Sab's end?

clinton-hall commented 4 years ago

Really not sure. Clearly this eppisode was passing status =2, and now status =0 (success) so that makes the difference.

XxUnkn0wnxX commented 4 years ago

i've checked the other DL that was also failing no issues, did you merge the changes (fixes) clinton-hall-patch-1 into a proper branch yet? master, dev, nightly?

clinton-hall commented 4 years ago

No, I haven't merged those. They only impact on manual runs and I want to do some test on those for various python versions. The other change is already in nightly. That is the one that converts the 2 status to a 1 (when a download fails, tells Medusa the download failed).

clinton-hall commented 4 years ago

Ok.. tested, and merged into nightly branch. I have also fixed those warnings

/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 'get':
/Users/ovidijus/Apps/nzbToMedia/libs/custom/syno/auth.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif method is 'post':
clinton-hall commented 4 years ago

all merged into master now.