Page 8 of 9

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

Posted: July 8th, 2010, 6:29 pm
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

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

Posted: July 8th, 2010, 7:51 pm
by xtinct101
Hey Tret,

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

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

Posted: July 11th, 2010, 10:21 am
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!

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

Posted: July 11th, 2010, 10:49 am
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

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

Posted: July 11th, 2010, 11:23 am
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.

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

Posted: July 13th, 2010, 10:06 am
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.

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

Posted: August 9th, 2010, 11:30 am
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'

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

Posted: August 10th, 2010, 11:40 pm
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:

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

Posted: August 11th, 2010, 2:24 pm
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.

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

Posted: August 11th, 2010, 6:18 pm
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.

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

Posted: August 11th, 2010, 6:19 pm
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

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

Posted: August 11th, 2010, 6:35 pm
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

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

Posted: August 11th, 2010, 8:07 pm
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

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

Posted: August 15th, 2010, 7:29 pm
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 :)

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

Posted: August 16th, 2010, 7:50 am
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