Page 2 of 9
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 12th, 2009, 7:45 pm
by revelation_22
tret wrote:
For those of you who are having imdb and thetvdb matching issues:
I am planning to rework some of the imdb and thetvdb scraping code. Currently if there are special characters in the titles (' " ( & etc.) the matching can get messed up. I am planning to have the script temporarily remove all non alpha and numeric characters from the titles before comparing them. I think this should help things out a bit, we'll see.
I should have an update in a few days.
Thanks
Tret, I have been having no luck with the IMDB portion of the script. Not a single match so far. I'll provide a list of titles if you would like. Also, the XBMC library update feature only updates the first machine in the settings file, the others do not update. The TV portion of the script is working flawlessly for me so far.
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 12th, 2009, 11:23 pm
by tret
revelation_22 wrote:
tret wrote:
For those of you who are having imdb and thetvdb matching issues:
I am planning to rework some of the imdb and thetvdb scraping code. Currently if there are special characters in the titles (' " ( & etc.) the matching can get messed up. I am planning to have the script temporarily remove all non alpha and numeric characters from the titles before comparing them. I think this should help things out a bit, we'll see.
I should have an update in a few days.
Thanks
Tret, I have been having no luck with the IMDB portion of the script. Not a single match so far. I'll provide a list of titles if you would like. Also, the XBMC library update feature only updates the first machine in the settings file, the others do not update. The TV portion of the script is working flawlessly for me so far.
Hey Rev, Yeah give me a list of titles if you could, that'll help me with fixing the matching. I'll also test out the xbmc update issue.
Thanks for the feedback
tret
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 16th, 2009, 4:58 pm
by n3n
Hi Tret,
Looks like a great script. I'm trying to run it on a LinkstationPro, but SAB gives me an error; "/opt/bin/sabnzbd/postprocess/media_process.py: No such file or directory"
I think this is related to moving the files from the unpacked dir to the completed dir. Is there any way to put the script in Debug mode, so it could give some more info on the error ? I got some error output once, but can't seem to find the log.
How does the script handle the categories. In my sab config i have subdirectories for my TV/Movies/Music. I have specified the same category (or folder) names in the script config. Does the script know that sab has moved the files to the category subdirectory, or should i specify in sab to just leave it in the main complete dir and let the script move the files to a subdirectory.
Tnx for the hard work.
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 17th, 2009, 9:51 pm
by klash
Hi - complete n00b when it comes to using scripts on SABnzbd and of course got an issue as i tried this....
I'm running SABnzbd 0.4.7 on Qnap TS-409 (Linux) with Python 2.5.2 enabled.
I installed the script and made it available in the script folder; made the tweaks on the .conf files as needed - once the download had completed the history tab in SABnzbd says its running the script; but it has said this for the last 3hrs without anything really happening.
Stage: UserScript
[USER-SCRIPT]: => Running user script /share/Qdownload/sabnzbd/Scripts/media_process.py
Any idea on how I can error-seek where its get stucked??
Thanks
Klas
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 18th, 2009, 9:58 am
by tret
n3n wrote:
Hi Tret,
Looks like a great script. I'm trying to run it on a LinkstationPro, but SAB gives me an error; "/opt/bin/sabnzbd/postprocess/media_process.py: No such file or directory"
I think this is related to moving the files from the unpacked dir to the completed dir. Is there any way to put the script in Debug mode, so it could give some more info on the error ? I got some error output once, but can't seem to find the log.
How does the script handle the categories. In my sab config i have subdirectories for my TV/Movies/Music. I have specified the same category (or folder) names in the script config. Does the script know that sab has moved the files to the category subdirectory, or should i specify in sab to just leave it in the main complete dir and let the script move the files to a subdirectory.
Tnx for the hard work.
I am not too familiar with that device and how sab runs on it, have you run other scripts with it?
The way the script is set up, each category should download to a folder in the root level of the downloads directory.
This is ok:
/downloads/movies
/downloads/tv
/downloads/music
This is not ok:
/downloads/videos/movies
/downloads/videos/tv
/downloads/music
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 18th, 2009, 10:01 am
by tret
klash wrote:
Hi - complete n00b when it comes to using scripts on SABnzbd and of course got an issue as i tried this....
I'm running SABnzbd 0.4.7 on Qnap TS-409 (Linux) with Python 2.5.2 enabled.
I installed the script and made it available in the script folder; made the tweaks on the .conf files as needed - once the download had completed the history tab in SABnzbd says its running the script; but it has said this for the last 3hrs without anything really happening.
Stage: UserScript
[USER-SCRIPT]: => Running user script /share/Qdownload/sabnzbd/Scripts/media_process.py
Any idea on how I can error-seek where its get stucked??
Thanks
Klas
An easy way to test it and get some error output is too place a download in one of your download category locations and run the script via command line. The script does not rely on any input from sab so it can be run at any time manually and you can view output via the command line.
in case you are not familiar with running via the command line: /home/user/.sabnzbd/scripts/./media_process.py
That should do it, use the correct path of course and be sure that something to be processed is in your sab download directory and is in one of your configured category directories
tret
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 18th, 2009, 8:42 pm
by revelation_22
tret, here is the contents of my settings.conf:
Code: Select all
## Media Process v1.10 settings
SABNZBD Download Path = "/media/shared/Downloads/complete"
Failed Downloads Destination Path = "/media/shared/Downloads/Failed"
XBMC IP address and port = "192.168.0.10:80"
XBMC IP address and port = "192.168.0.11:80"
Also, I was doing some more testing and here are some movie titles that failed the IMDB lookup also:
Inkheart
Marley And Me
Doubt
Killshot
Mulholland Dr
These are the exact titles pasted to the script. Hope you can make use of this info. Thanks for all of your efforts.
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 19th, 2009, 4:02 am
by klash
so i tried to execute from terminal; it worked by changing out the top line in the script
#!/usr/bin/python2.5 - but this is not the right path as addressed or used within my NAS (which tries to run the script) - anyone here who can confirm what the path would be as what shows up in the installer/absolute path doesn't work: /share/MD0_DATA/.qpkg/Python
BTW - couple of questions regarding this script and its usage/output....will the script help me with the following as i use Plex and not XBMC:
When a download of a movie is completed - there are two scenarios of things i need to do myself to enable automated scraping in PLEX....
Get right folder/file name to match IMDB:
Dark Knight (2008) Proper hd1080p [NZBMatrix] > Dark knight (2008) (any : to be replaced with - to not corrupt filesystem)
If a VIDEO_TS rip; the final structure of the file should be:
Folder renamed to IMDB name: Dark knight (2008)
>VIDEO_TS
>AUDIO_TS
(Sometimes the unpacked file has extra/padding folder between Top and VIDEO_TS - these needs to be deleted automatically)
If the unpacked content is a single file; e.g. mkv, AVI etc - all of the folders should be deleted and the file should be renamed to
Dark knight (2008).mkv and be put in the end-destination directory without a "padding" folder
Does the script resolve this or will i still have to do these things manually?
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 22nd, 2009, 1:50 pm
by tret
klash wrote:
so i tried to execute from terminal; it worked by changing out the top line in the script
#!/usr/bin/python2.5 - but this is not the right path as addressed or used within my NAS (which tries to run the script) - anyone here who can confirm what the path would be as what shows up in the installer/absolute path doesn't work: /share/MD0_DATA/.qpkg/Python
BTW - couple of questions regarding this script and its usage/output....will the script help me with the following as i use Plex and not XBMC:
When a download of a movie is completed - there are two scenarios of things i need to do myself to enable automated scraping in PLEX....
Get right folder/file name to match IMDB:
Dark Knight (2008) Proper hd1080p [NZBMatrix] > Dark knight (2008) (any : to be replaced with - to not corrupt filesystem)
If a VIDEO_TS rip; the final structure of the file should be:
Folder renamed to IMDB name: Dark knight (2008)
>VIDEO_TS
>AUDIO_TS
(Sometimes the unpacked file has extra/padding folder between Top and VIDEO_TS - these needs to be deleted automatically)
If the unpacked content is a single file; e.g. mkv, AVI etc - all of the folders should be deleted and the file should be renamed to
Dark knight (2008).mkv and be put in the end-destination directory without a "padding" folder
Does the script resolve this or will i still have to do these things manually?
Currently it does not do any sort of renaming or folder cleanup within the download folder. I plan to add these features in the near future.. Glad to hear that you figured out the python issue though.
Rob
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 22nd, 2009, 7:14 pm
by tret
version 1.20 (Use the link in the first post)
changes:
- improvement: reworked scraper matching, quite a few movies weren't matching properly
I still need to work on a couple of things w/ these scrapers. I'll work on getting these resolved soon
1. Renaming the movie or tv show folder to the name provided by imdb and thetvdb once a match is found
2. Matching movies or tv shows w/ extra garbage in the download folder name (Casino.Royale.DVDRip.blah.blah.blah won't match right now)
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 31st, 2009, 1:30 am
by bnb
Linux noob here. What folder is Sabnzbd located in, so I can add this script to the scripts folder??
Thanks.
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 31st, 2009, 1:42 pm
by tret
bnb wrote:
Linux noob here. What folder is Sabnzbd located in, so I can add this script to the scripts folder??
Thanks.
The scripts directory should be located at
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: March 31st, 2009, 2:43 pm
by bnb
Gracias.
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: April 1st, 2009, 10:24 am
by tret
For those of you that are interested in the imdb scraper for creating movie.nfo files, it still isn't working quite right and I do plan on reworking that part of the code. Also a friend of mine let me know that the script isn't working right on windows xp when the destination locations are on a mapped network drive. Can anyone confirm this?
Thanks,
Rob
Re: [Linux, MacOSX, Windows] Media Processing + XBMC Updater
Posted: April 2nd, 2009, 11:31 am
by BennyHogan
SABnzbd noob here: Curious on the 1st steps to get this running on my Mac?? How do I start the renaming process of my files so they are in the right format to be recognized by the script as needing to be downloaded??
Really would like to experiment with this if someone could lay out a lil step by step guide for me I would be very appreciative.
Thanks