Page 6 of 9

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

Posted: November 5th, 2009, 8:35 am
by sixones
i've been using this script for a while whilst running SABnzbd+ from source, recently though i switched to using the beta build and the pre processing fails with;

Code: Select all

           'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Users/Shared/Scripts/media_process.py", line 3, in <module>
    import os
zipimport.ZipImportError: can't decompress data; zlib not available
Im running on Mac OSX, iv tried making a new python install (via macports) with the zlib library compiled in but it has the same results.

Any ideas on how to fix?

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

Posted: November 8th, 2009, 4:53 am
by medyaye
Hi,

I've just discovered your script. Sounds great ! I'm planning using it, but before i start a long process of setting up all my system, i have question :

i'm running SABnzbplus on a synology DS207+ NAS. The NAS is only used to store photos and to download. I'd like to send to my media center (pc running visa) the files downloaded once they're done. How can i send the file  using your script. I was thinking about creating samba share folder on my htpc but i don't know what king of path i'll have to specify in the config file of the script.

Thank for your help

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

Posted: November 30th, 2009, 5:14 pm
by weldon
Is there a log / a way to view python commands on windows? I just got this to work, and by work I mean delete a 1/3 of my library. Just want to see what I need to rerip. Thanks

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

Posted: December 6th, 2009, 4:06 am
by kulprit
Are you able to provide the just update xbmc part of this script for windows. The other thread doesn't contain anything that works with sabnzbd running on a windows server. Thanks

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

Posted: December 10th, 2009, 8:19 am
by JohnSCS
kulprit wrote: Are you able to provide the just update xbmc part of this script for windows. The other thread doesn't contain anything that works with sabnzbd running on a windows server. Thanks
Have a look here http://forums.sabnzbd.org/http://forums ... 147#p22147

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

Posted: January 15th, 2010, 6:54 pm
by tret
Well it's been a long time coming but I've completely re-written the script, fixed a lot of annoying bugs and added a few new tricks/features. Stay tuned as I'll be posting the new version and all the important usage details sometime tonight or early tomorrow. Just need a bit more testing and code commenting.

Once released I'll need some feedback from Mac OS X and Windows users as I have only tested under Linux thus far.

Rob

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

Posted: January 17th, 2010, 2:44 pm
by tret
version 2.00 (Use the download link at the bottom of the 1st post in the thread)

- The code has been completely re-written
- Re-designed failed download handling
- Faster download moving (files will be moved rather than copied when source and destination are located on the same partition)
- Storage use and availability information is written to script output
- Moved to an ini type settings file to allow unlimited categories and XBMC library updating
- Removed imdb and thetvdb.com scraping (XBMC scrapers are now working well and this was no longer needed)

There are many more improvements and changes and I believe the script will perform better and more reliably than previous versions. I have not had time to test this fully with Windows and Mac OS X machines and will appreciate any feedback good or bad.

Need to do:
- handle password protected downloads as failed

tret

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

Posted: January 24th, 2010, 4:52 pm
by Smoke
I am completely new to both SABnzbd+ and this script ( and I know next to nothing about programming ), so I apologize in advance if my issue is a stupid mistake on my part, but I get the following error when I attempt to use this script which causes it to fail to move the file(s):

Code: Select all

Traceback (most recent call last):
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 328, in <module>
    if verifySpaceAvailable(categorySource, categoryDestination) == 0:
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 106, in verifySpaceAvailable
    if getStorageAvailable(source) != getStorageAvailable(dest):
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 84, in getStorageAvailable
    disk = os.statvfs(path)
AttributeError: 'module' object has no attribute 'statvfs'
To provide more information, I am running Windows 7, have plenty of free space on all drives, and my Movie category settings look like:

Code: Select all

[Movies]
source = F:\Downloads\SABnzbd\Movies
destination = H:\Movies
min_download_size = 500MB
min_file_size = 200MB
xbmc_library = video
Is the problem with the source and destination paths in the settings.ini? Any help would be greatly appreciated!

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

Posted: January 26th, 2010, 10:39 am
by tret
Smoke wrote: I am completely new to both SABnzbd+ and this script ( and I know next to nothing about programming ), so I apologize in advance if my issue is a stupid mistake on my part, but I get the following error when I attempt to use this script which causes it to fail to move the file(s):

Code: Select all

Traceback (most recent call last):
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 328, in <module>
    if verifySpaceAvailable(categorySource, categoryDestination) == 0:
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 106, in verifySpaceAvailable
    if getStorageAvailable(source) != getStorageAvailable(dest):
  File "C:\PROGRA~2\SABnzbd\Scripts\media_sort.py", line 84, in getStorageAvailable
    disk = os.statvfs(path)
AttributeError: 'module' object has no attribute 'statvfs'
To provide more information, I am running Windows 7, have plenty of free space on all drives, and my Movie category settings look like:

Code: Select all

[Movies]
source = F:\Downloads\SABnzbd\Movies
destination = H:\Movies
min_download_size = 500MB
min_file_size = 200MB
xbmc_library = video
Is the problem with the source and destination paths in the settings.ini? Any help would be greatly appreciated!
You category settings look fine. What type of storage is at drive H? Is it a network share mapped to that drive letter? External drive?

Also what version of Python did you install on your Windows7 machine?

Rob

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

Posted: January 26th, 2010, 12:44 pm
by Smoke
tret wrote:
You category settings look fine. What type of storage is at drive H? Is it a network share mapped to that drive letter? External drive?

Also what version of Python did you install on your Windows7 machine?

Rob
Both F: and H: are local internal drives on the same computer that is running SABnzbd+. And I installed the Python 2.6.1 that is linked in the first post.

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

Posted: January 29th, 2010, 10:56 am
by Briam
Hi

I use your script for my movies and it does an awesome job at that. Is it currently possible to get an artisk/album/song.mp3 structure? and if yes how? if no would you consider implementing it ? :)

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

Posted: February 2nd, 2010, 6:07 pm
by fergalom
Hi,

Using your script and it works like a dream except for one issue.
My setup:
QNAP NAS with sabnzbd, all movies etc also stored on the nas
Ubuntu XBMC box attached to TV

Basically when I go to update XBMC library to find the movies your script has just moved, they are not found.
I have traced this back to the fact that they are being moved and becoming "hidden" files as a result of your script.
"ctrl+h" shows them in ubuntu but XBMC can't find them.

My settings have the permissions set as 0777

Any ideas how to solve?

Brilliant script otherwise.
F

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

Posted: February 8th, 2010, 12:16 pm
by tret
Hey guys, due to a busy work schedule and many personal obligations I'm not able to actively develop this script. I may at some point work on fixing issues here and there but who knows when. If anyone would like to go ahead and pick this up and develop it further that's cool with me.

Rob

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

Posted: March 27th, 2010, 10:03 pm
by rahduke
I ran this script and it deleted my entire media collection  :'( :'( :'(

WTF Happened?

http://pastebin.org/126409

Can someone take a look at this pastebin? Its the output from the script......

Every time I download something it deletes itself and everything else script related. I'm really heated right now. I'm sure it's my own fault for screwing something up but there should be a warning in 1st post if its possible to delete your entire collection.

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

Posted: March 29th, 2010, 2:06 pm
by tret
rahduke wrote: I ran this script and it deleted my entire media collection  :'( :'( :'(

WTF Happened?

http://pastebin.org/126409

Can someone take a look at this pastebin? Its the output from the script......

Every time I download something it deletes itself and everything else script related. I'm really heated right now. I'm sure it's my own fault for screwing something up but there should be a warning in 1st post if its possible to delete your entire collection.
Hey rahduke, Sorry to hear about this man. Can you post your settings and categories files?