Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Moving to wrong directory #68

Closed
noobydp opened this issue Nov 29, 2013 · 4 comments
Closed

File Moving to wrong directory #68

noobydp opened this issue Nov 29, 2013 · 4 comments

Comments

@noobydp
Copy link

noobydp commented Nov 29, 2013

Hi, Sorry if this is a stupid post...

I have a problem where the converted mp4 is being moved straight from the SABnzbd completed dir (which is where the mkv->mp4 conversion is done), straight into the sick beard tv show directory.

This would normally be ok but I'm trying to use the import to iTunes folder.

I've tried a few things, sorting in SAB is disabled and post processing is disabled in Sickbeard. At the moment I'm only calling the SABtoSickbeardwithConvert.py script from SAB, I have not enabled the extra_script in sick beard.

Let me know what info you need me to post, here's an extract from my autoprocess.ini.

[MP4]
ffmpeg=ffmpeg
ffprobe=ffprobe
output_directory=
copy_to=
move_to=/mnt/iTunes/
output_extension=mp4
delete_original=True
relocate_moov=False
audio-codec=ac3
ios-audio=True
audio-language=eng
audio-default-language=eng
subtitle-language=eng
subtitle-default-language=eng
fullpathguess=True
convert-mp4=False
tagfile=True

@noobydp
Copy link
Author

noobydp commented Nov 29, 2013

Here's the SAB log from a download which has this problem. I can't figure out where it gets the folder path from in "Destination folder for this episode: /mnt/iTunes/TV Shows/American Dad!"

Starting sabToSickBeardwithConverter.py
Loading config from /usr/share/mp4_automator/autoProcess.ini
Opening URL: http://localhost:8081/home/postprocess/processEpisode?nzbName=American.Dad.S09E02.HDTV.x264-LOL.nzb.nzb&quiet=1&dir=%2Fdownloads%2Fcomplete%2FAmerican.Dad.S09E02.HDTV.x264-LOL.nzb
Processing folder /downloads/complete/American.Dad.S09E02.HDTV.x264-LOL.nzb

Processing /downloads/complete/American.Dad.S09E02.HDTV.x264-LOL.nzb/american.dad.902.hdtv-lol.mp4 (American.Dad.S09E02.HDTV.x264-LOL.nzb.nzb)

Parsed American.Dad.S09E02.HDTV.x264-LOL.nzb.nzb into American Dad - S9E2 - HDTV.x264 (LOL.nzb) [ABD: False]

Checking scene exceptions for a match on American Dad

Looking up American Dad in the DB

Looking up name American Dad on TVDB

Lookup successful, using tvdb id 73141

Loading show object for tvdb_id 73141

Retrieving episode object for 9x2

Looking up quality for name American.Dad.S09E02.HDTV.x264-LOL.nzb.nzb, got SD TV

Is ep a priority download: False

There is no existing file so there's no worries about replacing it

Found release name American.Dad.S09E02.HDTV.x264-LOL.nzb

Destination folder for this episode: /mnt/iTunes/TV Shows/American Dad!

Moving file from /downloads/complete/American.Dad.S09E02.HDTV.x264-LOL.nzb/american.dad.902.hdtv-lol.mp4 to /mnt/iTunes/TV Shows/American Dad!/american.dad.902.hdtv-lol.mp4

Deleting folder /downloads/complete/American.Dad.S09E02.HDTV.x264-LOL.nzb

Processing succeeded for /downloads/complete/American.Dad.S09E02.HDTV.x264-LOL.nzb/american.dad.902.hdtv-lol.mp4

@noobydp
Copy link
Author

noobydp commented Nov 29, 2013

Ok another issue now - Let me know if you want me to move to a new issue.
I stopped worrying about where the mp4 file is moved to just to test everything else works. I now get an error when trying to process the tvdb data.

I'm running CentOS6.4

Executing command ['python', '/usr/share/mp4_automator/postConversion.py', u'/mnt/iTunes/TV Shows/The Simpsons/The.Simpsons.S16E02.BDRip.x264-SPRiNTER.mp4', u'/downloads/complete/The.Simpsons.S16E02.BDRip.x264-SPRiNTER.nzb.1/The.Simpsons.S16E02.BDRip.x264-SPRiNTER.mp4', '71663', '16', '2', '2004-11-14']

Absolute path to script: /usr/share/sickbeard/python

Script result: Failed to connect to TVDB, trying again in 20 seconds

encode() takes no keyword arguments

Failed to connect to TVDB, trying again in 20 seconds

encode() takes no keyword arguments

Failed to connect to TVDB, trying again in 20 seconds

encode() takes no keyword arguments

Tagging file :/mnt/iTunes/TV Shows/The Simpsons/The.Simpsons.S16E02.BDRip.x264-SPRiNTER.mp4

Traceback (most recent call last):

File "/usr/share/mp4_automator/postConversion.py", line 25, in

tagmp4.writeTags(output['output'])

File "/usr/share/mp4_automator/tvdb_mp4.py", line 77, in writeTags

video["----:com.apple.iTunes:iTunMOVI"] = self.xml  # XML - see xmlTags method

AttributeError: Tvdb_mp4 instance has no attribute 'xml'

@mdhiggins
Copy link
Owner

For your first issue everything is working as intended, the script has made the file into an mp4 before passing it to sickbeard and I can see from the log output that the conversion was done within the download directory. Your final destination folder is being made by sickbeard and moved there after the processing is completed.

As for you TVDB connection issue, I'm not sure what's causing that. Everything is working on my end but it's possible there was a TVDB outage when you tried. Does this error occur with other tv shows?

@noobydp
Copy link
Author

noobydp commented Nov 29, 2013

Hey Michael,
Thanks for the info.

I reinstalled everything onto a windows pc and it all seems to work, including the tvdb lookup for that show.
Not sure what went wrong on my CentOS box. If I figure it out I will send the info.

@noobydp noobydp closed this as completed Nov 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants