Media Rover

Got a program that plays well with SABnzbd? Share it here!
Maverick519
Newbie
Newbie
Posts: 15
Joined: January 16th, 2010, 9:59 pm

Re: Media Rover

Post by Maverick519 »

Jeebz wrote:

thanks Maverick519

got it all sorted now thanks again

Jeebz
Glad to here that it is working for you.

Maverick519

seriosbrad
Newbie
Newbie
Posts: 2
Joined: December 16th, 2009, 1:59 am

Re: Media Rover

Post by seriosbrad »

Can someone tell me if this is an appropriate way to set up the task?

Windows Task Scheduler:
Image


Because it's cut off in the screenshot, the rest of the "start in" field is this:
C:\Program Files (x86)\SABnzbd\scripts\mediarover

I have it set to start at 7:00 AM (when I'm sleeping), then once it starts, re-run every one hour.  It uses pythonw.exe to run in the background so I don't see it at all.  It seems to work fine when I manually run it.

Unless there's an easier way, this seems to work?







Also, it's displaying some errors in sab using the sabnzb.bat script file.  Can someone take a look?

Code: Select all

Awesome Show - 5x14 - Awesome Episode

           2010-02-22 21:48 INFO - --- STARTING --- - episode.py:105
2010-02-22 21:48 DEBUG - using config directory: C:\Users\Brad\AppData\Local\Mediarover - episode.py:106
2010-02-22 21:48 DEBUG - C:\Program Files (x86)\SABnzbd\scripts\mediarover\episodesort.py 'D:\Usenet\TV\Awesome Show\Season 5' 'Awesome Show - 5x14 - The Perfect Week.nzb' 'Awesome Show - 5x14 - The Perfect Week' '5470579' 'tv' 'alt.binaries.multimedia' '0' - episode.py:137
2010-02-22 21:48 INFO - begin processing tv directory: F:\tv - episode.py:188
2010-02-22 21:48 INFO - 0 alias(es) identified for Awesome Show 'Awesome Show' - episode.py:226
2010-02-22 21:48 DEBUG - watching Awesome Show: Awesome Show => F:\tv\Awesome Show - episode.py:229
2010-02-22 21:48 INFO - watching 1 tv show(s) - episode.py:231
2010-02-22 21:48 DEBUG - finished processing watched tv - episode.py:232
2010-02-22 21:48 DEBUG - identified possible download: filename => Awesome Show - S05E14 - The Perfect Week.avi, size => 182933538 - episode.py:257
2010-02-22 21:48 INFO - found download file at 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.avi' - episode.py:263
2010-02-22 21:48 DEBUG - parsing 'Awesome Show - 5x14 - The Perfect Week' - episode.py:35
2010-02-22 21:48 DEBUG - Awesome Show 'Awesome Show', season 5 found at: F:\tv\Awesome Show\Season 5' - filesystem.py:234
2010-02-22 21:48 INFO - cached data for Awesome Show 'Awesome Show', season 5 is stale.  Updating... - filesystem.py:259
2010-02-22 21:48 DEBUG - create filesystem episode: FilesystemEpisode(Awesome Show='Awesome Show',season=5,daily=False,episode=15,title='',filename='Awesome Show - S05E15 - Awesome Episode',extension='avi') - filesystem.py:197
2010-02-22 21:48 INFO - found 1 episodes on disk - filesystem.py:207
2010-02-22 21:48 INFO - season 5 of Awesome Show 'Awesome Show' FOUND - filesystem.py:39
2010-02-22 21:48 ERROR - episode 'Awesome Show - 5x14' does not exist on disk - error.py:45
2010-02-22 21:48 INFO - moving downloaded episode 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.avi' to 'F:\tv\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.avi' - episode.py:370
2010-02-22 21:48 INFO - cleaning path 'D:\Usenet\TV\Awesome Show\Season 5' of the extensions ['nfo', 'txt', 'sfv', 'srt', 'nzb', 'idx', 'log', 'par', 'par2', 'exe', 'bat', 'com', 'tbn', 'jpg', 'png', 'gif', 'info'] - filesystem.py:98
2010-02-22 21:48 DEBUG - deleting 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.nfo'... - filesystem.py:148
2010-02-22 21:48 DEBUG - deleting 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.sfv'... - filesystem.py:148
2010-02-22 21:48 DEBUG - skipping 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E14 - Awesome Episode.srr'... - filesystem.py:152
2010-02-22 21:48 DEBUG - skipping 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E15 - Awesome Episode.1.srr'... - filesystem.py:152
2010-02-22 21:48 DEBUG - skipping 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show - S05E15 - Awesome Episode.srr'... - filesystem.py:152
2010-02-22 21:48 DEBUG - deleting 'D:\Usenet\TV\Awesome Show\Season 5\Awesome Show.S05E14.HDTV.XviD-2HD.nzb'... - filesystem.py:148
2010-02-22 21:48 DEBUG - deleting 'D:\Usenet\TV\Awesome Show\Season 5\sort.log'... - filesystem.py:148
2010-02-22 21:48 WARNING - unable to delete 'D:\Usenet\TV\Awesome Show\Season 5' - filesystem.py:128
2010-02-22 21:48 ERROR - unable to remove download directory 'D:\Usenet\TV\Awesome Show\Season 5' - episode.py:385
2010-02-22 21:48 ERROR - Destination path 'F:\tv\.trash\Season 5\Season 5' already exists - episode.py:117
Traceback (most recent call last):
  File "C:\Program Files (x86)\SABnzbd\scripts\mediarover\mediarover\scripts\sabnzbd\episode.py", line 114, in sort
    _process_download(config, options, args)
  File "C:\Program Files (x86)\SABnzbd\scripts\mediarover\mediarover\scripts\sabnzbd\episode.py", line 388, in _process_download
    args[0] = _move_to_trash(tv_root[0], path)
  File "C:\Program Files (x86)\SABnzbd\scripts\mediarover\mediarover\scripts\sabnzbd\episode.py", line 450, in _move_to_trash
    shutil.move(path, trash_path)
  File "C:\Python26\lib\shutil.py", line 254, in move
    raise Error, "Destination path '%s' already exists" % real_dst
Error: Destination path 'F:\tv\.trash\Season 5\Season 5' already exists

           
And, how do I make it skip downloading certain episodes that are NOT on my hard drive?  I already watched them before I discovered Mediarover
Last edited by seriosbrad on February 23rd, 2010, 1:00 am, edited 1 time in total.

hayesb2
Newbie
Newbie
Posts: 7
Joined: November 19th, 2009, 10:21 am

Re: Media Rover

Post by hayesb2 »

Ok,
Everything is working, except the sorting script.
When I run it nothing happens? Nothing is generated to the log file...
I'm on windows 7 and took the bat example, and tried modifying it various ways, including hardcoding the absolute folder locations for the python, config files, etc...
I setup sabnzbd to process the script, but its like nothing is happening...
Last edited by hayesb2 on February 27th, 2010, 11:32 pm, edited 1 time in total.

g1zm0
Newbie
Newbie
Posts: 24
Joined: February 7th, 2010, 7:57 am

Re: Media Rover

Post by g1zm0 »

fixed, ignore this
Last edited by g1zm0 on March 6th, 2010, 9:40 pm, edited 1 time in total.

daniel_owen_uk
Release Testers
Release Testers
Posts: 130
Joined: January 24th, 2008, 6:43 am

Re: Media Rover

Post by daniel_owen_uk »

Still using this, love it, would be better with a gui, even if it's just something simple, I would recommend it to friends but it might be too tricky for some.

wally007
Release Testers
Release Testers
Posts: 179
Joined: August 28th, 2009, 5:24 pm

Re: Media Rover

Post by wally007 »

daniel_owen_uk wrote: Still using this, love it, would be better with a gui, even if it's just something simple, I would recommend it to friends but it might be too tricky for some.
Same here. Before i did my first install i also wanted GUI soo bad... but now that i've actually gone through the install i find configuring and installing easy.
Perfect script , only "feature" as far as TV shows go i think Media Rover is missing,  is SD/HD options , which kierse said he's looking into.

Crhis
Newbie
Newbie
Posts: 2
Joined: March 14th, 2010, 11:09 pm

Re: Media Rover

Post by Crhis »

I have the mediarover scheduler working now, but the episode naming still isn't doing anything.

My renaming config is default other than

series_episode = '$(series)s - $(season_episode_2)s$(smart_title)s'

and I pointed the sab TV category at episodesort.py.

I'm on OSX and I did chmod a+x (does this give the right user priveleges?) on the scripts directory.

Did I miss something?

In that sabnzbd log it doesn't mention episodesort.py at all, so it doesn't look as though its even attempting to call it and failing :/
Last edited by Crhis on March 15th, 2010, 12:14 am, edited 1 time in total.

freecru
Newbie
Newbie
Posts: 2
Joined: December 9th, 2009, 12:14 pm

Re: Media Rover

Post by freecru »

Crhis wrote: I have the mediarover scheduler working now, but the episode naming still isn't doing anything.

My renaming config is default other than

series_episode = '$(series)s - $(season_episode_2)s$(smart_title)s'

and I pointed the sab TV category at episodesort.py.

I'm on OSX and I did chmod a+x (does this give the right user priveleges?) on the scripts directory.

Did I miss something?

In that sabnzbd log it doesn't mention episodesort.py at all, so it doesn't look as though its even attempting to call it and failing :/
You need to point Sab to sabnzbd_episode_sort_example.py or .bat in your mediarover/scripts directory. I renamed this file to sabnzbd_episode_sort.py and placed it somewhere else, but that isn't necessary. I believe you're going to need to edit a few of the settings, but if you've gotten this far it shouldn't be too difficult. Hope this helps.
brown chicken, brown cow

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hi notho
notho wrote: After returning from my trip, and while checking out the new items Sabnzbd and Media Rover fetched for me I found myself creating shortcuts (yeah this is a windows machine) by going through the Sabnzbd history and looking up each episode.  I like the shortcuts because as I watch the shows, I can delete the shortcut, it's sort of a bookmark.  I got to thinking this would be a perfect thing to add to the sorting script, creating a shortcut in a central location for each new ep downloaded.  I looked into it briefly but I didn't see a clear path to creating windows shortcuts through Python without adding something like the Python Windows Extensions http://sourceforge.net/projects/pywin32/ which seemed a bit of overkill to me so I am throwing it out as a request for a new feature.
This is something I've considered in the past, though I must admit I've never been thrilled with the idea of using a shortcut/symlink.  One solution that has been discussed would be to update MR to allow the user to put a series folder under multiple root directories.  Currently, MR generates a warning message if the same series is found under more than one root folder.  Changing this would allow you to have new (unwatched) episodes downloaded to one folder and allow you to move them to another once they've been watched.  Thoughts?

Kierse

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hey walley007,
wally007 wrote: Any idea how i'd get sorting script do the following : ( with ignore_series_metadata= True )

"show name","show name (US)" and "show.name.US" go to "/tv/Show name/Season x/showname SxxExx.avi"

and

"show name UK" and "show.name.UK" go to "/tv/Show name UK/Season x/showname SxxExx.avi"

1. create the following folders for the shows in question:
Show Name
Show Name UK

2. create the following filter in the config file

[[ filters ]]
  [[[ show name ]]]
      alias = show name US

3. run MR

Why this should work:
1. with ignore_metadata set to True, MR will ignore (US).  Therefore, "show name" and "show name (US)" will both match to a folder named "show name"
2. the alias tells MR that "show name US" should also match to "show name"
3. "show name UK" and "show.name.UK" already match to the folder "show name UK"

Apparently there is a bug (unconfirmed by me at this point) with the sorting script when aliases are in use so it's possible this will not work, you'll have to give it a whirl.

Hopefully that helps.  Let me know if something doesn't work as expected.

Kierse

Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

Re: Media Rover

Post by Shady »

Kierse there's one feature i'd like and that is the ability to replace 720p releases of x days old with xvid ones.
Also newzbin now has a public search api, why not use that instead of rss? This way you can search through your entire retention for old tv shows rather than just the latest 200 (or whatever ammount is listed in rss)

I really love this program

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hi seriosbrad,
seriosbrad wrote: Unless there's an easier way, this seems to work?
That seems correct, though its been quite a while since I set up a windows task.  Windows users, does anyone see a problem here?
seriosbrad wrote: Also, it's displaying some errors in sab using the sabnzb.bat script file.  Can someone take a look?

Code: Select all

Error: Destination path 'F:\tv\.trash\Season 5\Season 5' already exists
 
I believe this problem was addressed in MR 0.4.1.  Upgrade and let me know if you still see this error
seriosbrad wrote: And, how do I make it skip downloading certain episodes that are NOT on my hard drive?  I already watched them before I discovered Mediarover
MR supports skipping full seasons and does not currently support excluding specific episodes.  An idea that has been put forward by another user is to have a flag in the series filters telling MR to only download new episodes.  My guess is that something like this would meet your needs, thoughts?

Kierse

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hi hayesb2

Are you still having troubles getting the sorting script to work?
hayesb2 wrote: When I run it nothing happens? Nothing is generated to the log file...
I'm on windows 7 and took the bat example, and tried modifying it various ways, including hardcoding the absolute folder locations for the python, config files, etc...
I setup sabnzbd to process the script, but its like nothing is happening...
Unless python is in your path (unlikely unless you added it), you'll need to use the sabnzbd_episode_sort.bat.example file.  Here's what you'll need to do:

1. make a copy of sabnzbd_episode_sort.bat.example and rename its extension to just bat (ie. sabnzbd_episode_sort.bat).  This tells windows the file can be executed

2. populate the file variables with your installation specific values:

ROOT = this is the location of MR on your hard drive.  The default is %PROGRAMFILES%\mediarover (which in most systems will be C:\Program Files\mediarover).  If you installed MR somewhere else, update this value to reflect this (ie. C:\mediarover)

PYTHON = this is the location of the python executable on your hard drive.  The windows installer puts python in C:\Python2X (which is why the default is %HOMEDRIVE%\Python26\pythonw.exe).  Again, you'll need to change this if you installed python somewhere other than the default.

CONFIG = this is the location of the MR config directory.  If you just had MR install the configs to the default location, don't worry about this variable, the script sets the correct location.  If you specified a config path when you setup MR (ie. # python mediarover.py --write-configs -c C:\some\path) you'll need to set this variable to that value (ie. CONFIG = C:\some\path)

3. Try running the script at the command line.  You should get an error message that basically says "Warning: must provide 7 arguments when invoking X".  If you get this, the sorting script is properly configured.

4. Put this shell script in the SABnzbd user scripts directory (SABnzbd config > folders).

5. Select the sorting script for downloads with a category of TV (SABnzbd config > categories).

That should be it.  If all goes well SABnzbd should call the sorting script for TV downloads and MR should sort them properly.

Kierse

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hi Crhis,
Crhis wrote: I have the mediarover scheduler working now, but the episode naming still isn't doing anything.

My renaming config is default other than

series_episode = '$(series)s - $(season_episode_2)s$(smart_title)s'

and I pointed the sab TV category at episodesort.py.

I'm on OSX and I did chmod a+x (does this give the right user priveleges?) on the scripts directory.

Did I miss something?

In that sabnzbd log it doesn't mention episodesort.py at all, so it doesn't look as though its even attempting to call it and failing :/
1. try running the sorting script from the command line:  python episodesort.py.  Do you an error message like the following: "Warning: must provide 7 arguments when invoking X"

2. Are the nzbs being scheduled by MR getting the appropriate category?

Kierse

User avatar
kierse
Sr. Member
Sr. Member
Posts: 254
Joined: March 5th, 2009, 11:59 pm
Location: Canada
Contact:

Re: Media Rover

Post by kierse »

Hey Shady,
Shady wrote: Kierse there's one feature i'd like and that is the ability to replace 720p releases of x days old with xvid ones.
Interesting, I'm in the process of working on the quality management system.  Once it's done something like this shouldn't be too difficult.  I'll create a new feature request in the project tracker.
Shady wrote: Also newzbin now has a public search api, why not use that instead of rss? This way you can search through your entire retention for old tv shows rather than just the latest 200 (or whatever ammount is listed in rss)
I had planned to look at the API when I got back to working on the UI (which will happen once the quality management system is in place).  I don't know if I'll replace RSS entirely (as not all indexing sites provide an API) but it is definitely worth looking at.

Kierse

Post Reply