nzbtosickbeard.py script wont work in sabnzb

Status
Not open for further replies.

Joakim Ollila

Dabbler
Joined
Jun 6, 2015
Messages
31
Hi,

So the script doesn't work with every file.. It does work with many files but here is a log from one that it doesn't work with.

[07:59:32] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg] [07:59:32] [INFO]::MAIN: Checking database structure... [07:59:32] [INFO]::MAIN: Checking if git needs an update [07:59:33] [INFO]::MAIN: No update needed [07:59:33] [INFO]::MAIN: nzbToMedia Version:1cd64053b0da1d351bb6af392e1ebb904c6b6ce2 Branch:master (FreeBSD 9.1-RELEASE) [07:59:33] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible! [07:59:33] [ERROR]::MAIN: Failed to connect to Transmission [07:59:33] [INFO]::MAIN: ######################################################### [07:59:33] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ## [07:59:33] [INFO]::MAIN: ######################################################### [07:59:33] [INFO]::MAIN: Script triggered from SABnzbd [07:59:34] [INFO]::MAIN: Auto-detected SECTION:SickBeard [07:59:34] [INFO]::MAIN: Calling SickBeard:tv to post-process:Breaking.Bad.S01E01.720p.BluRay.X264-REWARD.nzb [07:59:34] [INFO]::MAIN: Attempting to auto-detect tv fork [07:59:36] [INFO]::MAIN: SickBeard:tv fork auto-detection successful ... [07:59:36] [INFO]::MAIN: SickBeard:tv fork set to sickrage [07:59:36] [INFO]::MAIN: FLATTEN: Flattening directory: /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD [07:59:36] [INFO]::TRANSCODER: Checking [breaking.bad.s01e01.720p.bluray.x264-reward.mkv] for corruption, please stand by ... [07:59:36] [INFO]::TRANSCODER: SUCCESS: [breaking.bad.s01e01.720p.bluray.x264-reward.mkv] has no corruption. [07:59:36] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request [07:59:36] [POSTPROCESS]::SICKBEARD: Processing folder /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD [07:59:36] [POSTPROCESS]::SICKBEARD: TV_DOWNLOAD_DIR: [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing Path: /mnt/media/downloads/sabnzbd/complete/tv [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing Dirs: [u'Breaking.Bad.S01E01.720p.BluRay.X264-REWARD'] [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing Files: [] [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing VideoFiles: [] [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing RarContent: [] [07:59:36] [POSTPROCESS]::SICKBEARD: PostProcessing VideoInRar: [] [07:59:36] [POSTPROCESS]::SICKBEARD: Processing folder Breaking.Bad.S01E01.720p.BluRay.X264-REWARD [07:59:36] [POSTPROCESS]::SICKBEARD: Processing folder /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD [07:59:36] [POSTPROCESS]::SICKBEARD: Found unwanted files: ['breaking.bad.s01e01.720p.bluray.x264-reward.sample.srs', 'breaking.bad.s01e01.720p.bluray.x264-reward.nfo', 'Breaking.Bad.S01E01.720p.BluRay.X264-REWARD.nzb', 'breaking.bad.s01e01.720p.bluray.x264-reward.sample.mkv', 'breaking.bad.s01e01.720p.bluray.x264-reward.sfv', 'breaking.bad.s01e01.720p.bluray.x264-reward.srr'] [07:59:36] [POSTPROCESS]::SICKBEARD: Processing /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD/breaking.bad.s01e01.720p.bluray.x264-reward.mkv (Breaking.Bad.S01E01.720p.BluRay.X264-REWARD.nzb) [07:59:36] [POSTPROCESS]::SICKBEARD: Found result in history: ('indexerid: 81189\nindexer: 1\nname: Breaking Bad\nlocation: /mnt/media/videos/tvshows/Breaking Bad\nnetwork: AMC\nairs: Sunday 9:00 PM\nstatus: Ended\nstartyear: 2008\ngenre: |Crime|Drama|Suspense|Thriller|\nclassification: Scripted\nruntime: 45\nquality: 31457783\nscene: False\nsports: False\nanime: False\n', 1, [], 128, -1) [07:59:36] [POSTPROCESS]::SICKBEARD: Retrieving episode object for 1x1 [07:59:36] [POSTPROCESS]::SICKBEARD: Snatch history had a quality in it, using that: 720p BluRay [07:59:36] [POSTPROCESS]::SICKBEARD: Is ep a priority download: False [07:59:36] [POSTPROCESS]::SICKBEARD: Snatch history had a version in it, using that: v-1 [07:59:36] [POSTPROCESS]::SICKBEARD: File /mnt/media/videos/tvshows/Breaking Bad/Season 01/Breaking Bad S01E01 720p BluRay REWARD.mkv is the same size as /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD/breaking.bad.s01e01.720p.bluray.x264-reward.mkv [07:59:36] [POSTPROCESS]::SICKBEARD: File exists and new file is same size, marking it unsafe to replace [07:59:36] [POSTPROCESS]::SICKBEARD: Processing failed for /mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD/breaking.bad.s01e01.720p.bluray.x264-reward.mkv: [07:59:36] [POSTPROCESS]::SICKBEARD: Problem(s) during processing, failed the following files/folders: [07:59:36] [POSTPROCESS]::SICKBEARD: [/mnt/media/downloads/sabnzbd/complete/tv/Breaking.Bad.S01E01.720p.BluRay.X264-REWARD/breaking.bad.s01e01.720p.bluray.x264-reward.mkv : Processing failed: ] [07:59:36] [ERROR]::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script. SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

Sickrage doesn't even notice this.. it says nothing in the sickrage log when this happens..
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
"File exists and new file is same size, marking it unsafe to replace"
Looks like you already have the same file in your collection. Not sure why SickRage is trying to download it twice.
 

Joakim Ollila

Dabbler
Joined
Jun 6, 2015
Messages
31
The funny thing is that it dosen't even generate a log in sickrage.. Then it stays as snatched in sickrage..

Then there is this other issue:

[15:34:56] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[15:34:56] [INFO]::MAIN: Checking database structure...
[15:34:56] [INFO]::MAIN: Checking if git needs an update
[15:34:56] [INFO]::MAIN: There is a newer version available (you're 31 commits behind)
[15:34:56] [INFO]::MAIN: nzbToMedia Version:1cd64053b0da1d351bb6af392e1ebb904c6b6ce2 Branch:master (FreeBSD 9.1-RELEASE)
[15:34:56] [WARNING]::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible!
[15:34:56] [ERROR]::MAIN: Failed to connect to Transmission
[15:34:56] [INFO]::MAIN: #########################################################
[15:34:56] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[15:34:56] [INFO]::MAIN: #########################################################
[15:34:56] [INFO]::MAIN: Script triggered from SABnzbd 0.7.17+
/usr/local/share/nzbToMedia/core/nzbToMediaUtil.py:837: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if slot['filename'] in [inputName, cleanName]:
Traceback (most recent call last):
File "/usr/local/share/nzbToMedia/nzbToSickBeard.py", line 252, in <module>
result = nzbToMedia.main(sys.argv, section)
File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 727, in main
download_id='', failureLink=''.join(args[8:]))
File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 529, in process
encoded, inputDirectory1 = CharReplace(inputDirectory)
File "/usr/local/share/nzbToMedia/core/nzbToMediaUtil.py", line 365, in CharReplace
if ((Name[Idx] == '\xC2') | (Name[Idx] == '\xC3')) & ((Name[Idx+1] >= '\xA0') & (Name[Idx+1] <= '\xFF')):
File "/usr/local/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xcc in position 0: unexpected end of data
Exception TypeError: "'NoneType' object is not callable" in <bound method PosixProcess.__del__ of <core.nzbToMediaUtil.PosixProcess instance at 0x807962c20>> ignored
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
The funny thing is that it dosen't even generate a log in sickrage.. Then it stays as snatched in sickrage..

Then there is this other issue:
Looks like there is a unicode issue in there.
Are of you on the latest version of the Sickrage FreeNAS plugin? I mitigated some unicode issues there.
 

Joakim Ollila

Dabbler
Joined
Jun 6, 2015
Messages
31
yeah it seems to be a unicode issue.. But this doesn't generate a log in sickrage either. Yesterday it did generate a log in sickrage and said that it was an unicode issue. Now it says it in sabnzbd..

Edit:
Yes i am on the newest plugin..
 
Last edited:
Status
Not open for further replies.
Top