[Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Come up with a useful post-processing script? Share it here!
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

Yes I am using 0.5.3 Final. Here is my Categories setup:

Image

SABnzbd moves all completed downloads to a category folder within /home/tret/Downloads/SABnzbd/Complete. htpc_sort then takes over and moves them to /mnt/disk2/Movies or /mnt/disk2/TV etc.

Is this similar to your setup?

Rob
xtinct101
Release Testers
Release Testers
Posts: 25
Joined: May 24th, 2010, 5:01 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by xtinct101 »

Hey Tret,

I use the "*" in my categories, other then that everything seems the same.
Last edited by xtinct101 on July 8th, 2010, 7:53 pm, edited 1 time in total.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

xtinct101 wrote: Hey Tret,

I use the "*" in my categories, other then that everything seems the same.
hey xtinct,

htpc_sort is designed to take a finished download from say c:\user\Downloads\SABnzbd\Downloads\Movies and move it to another location such as E:\Media\Movies

In your categories configuration you have movies and music being moved by SABnzbd to your media library location on the E: drive. Then in your htpc_sort settings.ini configuration you have it trying to move movies and music from your media library on E: to the same location on E: which I haven't tested but I can tell you isn't how I intended things to work so who knows what funny errors might pop up.

Try setting the Folder/Path in categories to Movies instead of E:\Media Vault\Movies and to Music instead of E:\Media Vault\Music and see how that goes. Let me know!
Last edited by tret on July 11th, 2010, 10:23 am, edited 1 time in total.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

version 2.60 (Use the download link at the bottom of the 1st post in the thread)

Changes:
- Added the ability to hand off a category (Most likely the 'TV' category) to Sick Beard for TV show processing.

I found that TV shows not known to Sick Beard were being ignored and not moved to my TV show library location. This new feature will allow Sick Beard to process known TV shows and HTPC Sort to clean up after it OR process ignored episodes.

tret
Last edited by tret on July 11th, 2010, 10:50 am, edited 1 time in total.
xtinct101
Release Testers
Release Testers
Posts: 25
Joined: May 24th, 2010, 5:01 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by xtinct101 »

Hey Tret,

The only reason i have set like that was because the script was not working anymore so I set it manually. Just in case i just tried it again. same exact error.
Wierd...

Update*
I've even tried to change all the Newzbin/Groups to the actuall names instead the wildcard but still no luck.
Last edited by xtinct101 on July 11th, 2010, 12:12 pm, edited 1 time in total.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

xtinct101 wrote: Hey Tret,

The only reason i have set like that was because the script was not working anymore so I set it manually. Just in case i just tried it again. same exact error.
Wierd...

Update*
I've even tried to change all the Newzbin/Groups to the actuall names instead the wildcard but still no luck.
I'll try running this setup on a win7 machine to see if I can reproduce the issue, I've been unable to observe the problem w/ my ubuntu rig.
Phantisy
Newbie
Newbie
Posts: 2
Joined: August 9th, 2010, 11:24 am

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by Phantisy »

I am getting this when it runs the script

Code: Select all

HTPC Sort v2.60 by tret

Processing: I.Escaped.Real.Prison.Breaks.S01E03.WS.DSR.XviD-OMiCRON  [1.02 GB]
-----------------------------------------------------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/xbmc/.sabnzbd/scripts/htpc_sort.py", line 356, in <module>
    if category.lower() == sbCategory.lower() and sbScript:
AttributeError: 'int' object has no attribute 'lower'
badapples
Newbie
Newbie
Posts: 11
Joined: September 8th, 2009, 9:12 am

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by badapples »

Attempting to run this on a FreeBSD 8.1-Stable with python2.6.

Here is my settings file:

Code: Select all

[SABnzbd]
address = 192.168.1.3:8080
login = danny
password = password
apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[Movies]
destPath = /tank/media/Movies/Feature\ Films\ -\ HD
destPath2 = /tank/media/Movies
failPath = /tank/media/Movies/New\ Downloads 
libraryType = video
I get

Code: Select all

 HTPC Sort v2.60 by tret
Error: The download path couldn't be properly determined

 
when the script runs in SABnzbd 0.5.3.

My categories page in SAB looks like this:
Last edited by badapples on August 10th, 2010, 11:44 pm, edited 1 time in total.
badapples
Newbie
Newbie
Posts: 11
Joined: September 8th, 2009, 9:12 am

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by badapples »

Also, regarding my error on FreeBSD: I can verify my download path that htpc_sort.py is trying to use. I edited the py file to print the vars that is passed to it for debuggin purposes.

Now I get this output

Code: Select all

HTPC Sort v2.60 by tret

debug var 1 /home/danny/.sabnzbd/downloads/complete/Movies
debug var 2 Dirty Harry 5 The Dead Pool 1988 1080p Bluray DTS VC1 Remux SHiTSoNy.nzb
debug var 3 Dirty_Harry_5_The_Dead_Pool_1988_1080p_Bluray_DTS_VC1_Remux_SHiTSoNy
debug var 5 movies

Error: The download path couldn't be properly determined

/home/danny/.sabnzbd/downloads/complete/Movies is indeed a valid path.. not sure why htpc_sort can't find it or validate it.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

Phantisy wrote: I am getting this when it runs the script

Code: Select all

HTPC Sort v2.60 by tret

Processing: I.Escaped.Real.Prison.Breaks.S01E03.WS.DSR.XviD-OMiCRON  [1.02 GB]
-----------------------------------------------------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/xbmc/.sabnzbd/scripts/htpc_sort.py", line 356, in <module>
    if category.lower() == sbCategory.lower() and sbScript:
AttributeError: 'int' object has no attribute 'lower'
I'm also getting this error now and am looking into the cause... Thanks for reporting it.
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

badapples wrote: Also, regarding my error on FreeBSD: I can verify my download path that htpc_sort.py is trying to use. I edited the py file to print the vars that is passed to it for debuggin purposes.

Now I get this output

Code: Select all

HTPC Sort v2.60 by tret

debug var 1 /home/danny/.sabnzbd/downloads/complete/Movies
debug var 2 Dirty Harry 5 The Dead Pool 1988 1080p Bluray DTS VC1 Remux SHiTSoNy.nzb
debug var 3 Dirty_Harry_5_The_Dead_Pool_1988_1080p_Bluray_DTS_VC1_Remux_SHiTSoNy
debug var 5 movies

Error: The download path couldn't be properly determined

/home/danny/.sabnzbd/downloads/complete/Movies is indeed a valid path.. not sure why htpc_sort can't find it or validate it.
I'm not sure what might be causing this but I'll take a look at let you know what I come up with.

Thanks,
Rob
tret
Full Member
Full Member
Posts: 148
Joined: August 2nd, 2008, 2:07 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by tret »

version 2.61 (Use the download link at the bottom of the 1st post in the thread)

Fixes:
- Fixed a bug that was causing the following error

Traceback (most recent call last):
  File "/home/tret/.sabnzbd/scripts/htpc_sort.py", line 356, in
    if category.lower() == sbCategory.lower() and sbScript:
AttributeError: 'int' object has no attribute 'lower'


tret
cman675
Newbie
Newbie
Posts: 19
Joined: July 8th, 2010, 9:32 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by cman675 »

After updating to 0.5.3 Final, it seems the script just keeps giving errors,

"HTPC Sort v2.51 by tret
Error: The 'settings.ini' file does not contain a 'alt.binaries.x264' section" (different group depending where its downlaoding from)

I get this error for anything that it tries to sort. But before the upgrade it was working fine. I'm using nzbmatrix for nzb's just incase that might be the problem. Any ideas?

Update** its not a nzbmatrix issue as i tried it on nzbs.org and it still gives the same error.
I too am having this error that was mentioned before. Win 7.  Ini file and categories look like they should. Any ideas? Thanks
Phantisy
Newbie
Newbie
Posts: 2
Joined: August 9th, 2010, 11:24 am

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by Phantisy »

tret wrote: version 2.61 (Use the download link at the bottom of the 1st post in the thread)

Fixes:
- Fixed a bug that was causing the following error

Traceback (most recent call last):
  File "/home/tret/.sabnzbd/scripts/htpc_sort.py", line 356, in
    if category.lower() == sbCategory.lower() and sbScript:
AttributeError: 'int' object has no attribute 'lower'


tret
Thanks.  Installed and testing it out now.  Hope it works I got tired of manually moving my stuff around :)
fergalom
Newbie
Newbie
Posts: 2
Joined: January 19th, 2010, 4:45 pm

Re: [Linux, MacOSX, Windows] Media Sorting + XBMC Updater

Post by fergalom »

Hi Tret,

Seem to have run into a problem with V2.61. The media sort script gives me the following error on completion of a file (movie) download in SAB.
Tried it on a couple of movies to see -  same result.
Running Sab 0.53 release on a QNAP nas.
Your pre-2.0 scripts worked perfectly.

Code: Select all

Traceback (most recent call last):
  File "/share/Qdownload/sabnzbd/scripts/media_sort.py", line 125, in <module>
    if config.get("misc", "failed_destination"):
  File "/opt/lib/python2.6/ConfigParser.py", line 531, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'misc'

Any ideas?
F
Last edited by fergalom on August 16th, 2010, 7:55 am, edited 1 time in total.
Post Reply