Media Rover

Got a program that plays well with SABnzbd? Share it here!
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 avatarr,
avatarr wrote: Is there any way to use the sorting function to batch-rename episodes that reside in the same folder?
Unfortunately no, MR is currently only able to sort single downloaded episodes.  There are other tools out there that do exactly what you want; I would suggest searching the SAB forums for options.  Also, can you edit your last post and delete the image?  I'm pretty sure it violates the SAB forum rules (because it mentions a series name).  You don't want to get in trouble with the forum moderators  :o

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 g1zm0,
g1zm0 wrote: Ive attempted to launch the newly updated episode_sort.sh but am having difficulties getting it to run in windows? Is it possible to make a similar change to the .bat file?
The changes I mentioned in my previous post were to the .bat file not the .sh file (the problem only occurs for Windows users).  I tested the updated .bat in Windows 7 with SAB 0.5.3 so I'm confident it should solve your problem.  Give it a whirl and let me know how it goes!

Kierse

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

Re: Media Rover

Post by g1zm0 »

Hello mate, Ok ive given it a go using the new sort bat file from your download link:

Code: Select all

@ECHO OFF

REM Copyright 2009 Kieran Elliott <[email protected]>
REM
REM Media Rover is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM 
REM Media Rover is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
REM GNU General Public License for more details.
REM 
REM You should have received a copy of the GNU General Public License
REM along with this program.  If not, see <http://www.gnu.org/licenses/>.
REM
REM OSX hack: SABnzbd on Mac OSX comes bundled with all Python libraries
REM necessary for its function.  Because of this, SABnzbd sets PYTHONHOME
REM to point to its own Python libraries.  This causes a problem for Media
REM Rover due to the fact that some of the key Python libraries are not
REM bundled.  Therefore, we delete PYTHONHOME before invoking Media Rover

REM filesystem path where Media Rover is installed
SET ROOT=C:\SCRIPTS\Mediarover

REM filesystem path to python installation
SET PYTHON=C:\Python26\pythonw.exe

REM filesystem path to configuration directory
IF DEFINED LOCALAPPDATA (
	REM Vista and newer
	SET CONFIG=C:\Users\Barry\AppData\Local\Mediarover
) ELSE (
	REM XP
	SET CONFIG=C:\Users\Barry\AppData\Local\Mediarover
)

REM invoke Media Rover episode sorting script
%PYTHON% %ROOT%\mediarover.py episode-sort -c "%CONFIG%" %*

But im still returning an error in SAB:

Code: Select all

Bellamys People S01E01 WS PDTV XviD ORGANiC

2010-07-25 21:03 INFO - --- STARTING --- - __init__.py:622
ERROR: incorrect number of arguments!
Usage: mediarover.py episode-sort [options] result_dir [nzb_name nice_name newzbin_id category newsgroup status] [low|medium|high]

Description: process a recent download and sort episode file in appropriate
series folder

Options:
  -c /PATH/TO/CONFIG/DIR, --config=/PATH/TO/CONFIG/DIR
                        path to application configuration directory
  -d, --dry-run         simulate downloading nzb's from configured sources
  -h, --help            show this help message and exit

Examples:
   Manual use:
   ==========
   Manually sort a downloaded file:
     > python mediarover.py episode-sort /path/to/some.download

   Same as above, but use a non-default config directory:
     > python mediarover.py episode-sort --config /path/to/config/dir /path/to/some.download

   Manually sort a downloaded file, but specify an overriding quality level: (low/medium/high)
     > python mediarover.py episode-sort /path/to/some.download high

   Simulate sorting a downloaded file:
     > python mediarover.py episode-sort --dry-run /path/to/some.download

   From shell script : (called by SABnzbd)
   ==================
   Sort a downloaded file:
     > python mediarover.py episode-sort /path/to/some.download some.download.nzb some.download 12345 tv alt.public.access.tv 0



kierse wrote: Hey g1zm0,
g1zm0 wrote: Ive attempted to launch the newly updated episode_sort.sh but am having difficulties getting it to run in windows? Is it possible to make a similar change to the .bat file?
The changes I mentioned in my previous post were to the .bat file not the .sh file (the problem only occurs for Windows users).  I tested the updated .bat in Windows 7 with SAB 0.5.3 so I'm confident it should solve your problem.  Give it a whirl and let me know how it goes!

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 g1zm0,
g1zm0 wrote: ...im still returning an error in SAB...
I've gone over the code a couple of times now and done a bunch of tests in my Vista virtual machine and I haven't been able to replicate your problem.  As far as I can tell, it should be working.  Can you post the most recent logging output?  You'll find the sorting log file in your config directory, its called sabnzbd_episode_sort.log.  Just post everything after --- STARTING ---

Kierse

Maverick519
Newbie
Newbie
Posts: 15
Joined: January 16th, 2010, 9:59 pm

Re: Media Rover

Post by Maverick519 »

This keeps showing up for a lot of my nbzmatrix rss feeds 2010-07-30 19:30 DEBUG - skipping u'SHOW Name', unsupported category type - __init__.py:44.

Code: Select all

[source]
	[[New XVid TV]]
	provider = nzbmatrix
	url = http://rss.nzbmatrix.com/rss.php?page=download&username=username&apikey=key&subcat=6
	timeout = 60
	[[New Doc]]
	provider = nzbmatrix
	url = http://rss.nzbmatrix.com/rss.php?page=download&username=username&apikey=key&subcat=9
	timeout = 60
	[[New Doc1]]
	provider = nzbmatrix
	url = http://rss.nzbmatrix.com/rss.php?page=download&username=username&apikey=key&subcat=53
	timeout = 60
	[[NewzBin TV]]
	provider = newzbin
	url = http://www.newzbin.com/browse/category/p/tv/?ps_rb_video_format\x3d16\x26feed\x3drss\
	timeout = 60
Above is the source setup so I am just wondering what is generating the error now in proccessing of the rss feeds when the problem hasn't been there before.

Maverick519
Last edited by Maverick519 on July 30th, 2010, 6:59 pm, edited 1 time in total.

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 Maverick519,
Maverick519 wrote: This keeps showing up for a lot of my nbzmatrix rss feeds 2010-07-30 19:30 DEBUG - skipping u'SHOW Name', unsupported category type - __init__.py:44.
My fault, the nzbmatrix source plugin was checking each report to see if it was a TV subcategory.  Categories 9 and 53 (for documentaries) obviously don't meet that requirement.  I'll have a fix out for you shortly.

Kierse

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

Re: Media Rover

Post by g1zm0 »

kierse wrote: Hey g1zm0,
g1zm0 wrote: ...im still returning an error in SAB...
I've gone over the code a couple of times now and done a bunch of tests in my Vista virtual machine and I haven't been able to replicate your problem.  As far as I can tell, it should be working.  Can you post the most recent logging output?  You'll find the sorting log file in your config directory, its called sabnzbd_episode_sort.log.  Just post everything after --- STARTING ---

Kierse

Hello mate,

So sorry for super late reply, ive been moving house only just got everything back up and running.

Here is the log:

Code: Select all

2010-08-07 00:10 INFO - --- STARTING --- - __init__.py:622
2010-08-07 00:10 DEBUG - using config directory: C:\Users\Barry\AppData\Local\Mediarover - __init__.py:623
2010-08-07 00:10 DEBUG - C:\SCRIPTS\Mediarover\mediarover.py episode-sort 'F:\USENET\FINISHED\Futurama.S06E08.That.Darn.Katz.720p.WEB-DL.DD5.1.H.264-HoodBag.3' 'Futurama.S06E08.That.Darn.Katz.720p.WEB-DL.DD5.1.H.264-HoodBag.nzb' 'Futurama.S06E08.That.Darn.Katz.720p.WEB-DL.DD5.1.H.264-HoodBag' 'tvmr' 'alt.binaries.teevee' '0' - __init__.py:625

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

Re: Media Rover

Post by wally007 »

Hi Kierse ,

been using Media Rover for almost a year now and by far very happy with it. Couple of my colleagues asked about it but got scared by config file. Are you mostly concentrating on getting most features you can in or is  GUI anywhere close to being done ?

Thanks !

mike171562
Newbie
Newbie
Posts: 37
Joined: June 5th, 2009, 12:37 pm

Re: Media Rover

Post by mike171562 »

having trouble with Nzbs.org sources, nzbs in the queue fail with the message


URL Fetching failed; Unusable NZB file, Try again

Maverick519
Newbie
Newbie
Posts: 15
Joined: January 16th, 2010, 9:59 pm

Re: Media Rover

Post by Maverick519 »

Since I am not using more then one source for NBZ I just noticed this new problem with Media Rover that I wasn't having in the past. During proccessing Media Rover is not following the .ignore files like in the past.

Here is a section of log:
ignoring the following seasons of TV SHOW: ['1'] - series.py:509

But there are 3 other seasons listed in the ignore file.

Currently I have them listed as
Season 1
Season 2
Season 3

But in all of them it only seems to be picking up season 1 for all of the shows that have ignore files.

Maverick519

mike171562
Newbie
Newbie
Posts: 37
Joined: June 5th, 2009, 12:37 pm

Re: Media Rover

Post by mike171562 »

I have been looking for a solution for this, but cannot find any. I am using the latest version of mediarover, and there is supposed to be support for nzbs.org rss feeds, they do not work. Any suggestions? Thanks.


EDIT: fixed the issue, rss feeds need to have &dl=1 appended to the end.
Last edited by mike171562 on August 18th, 2010, 9:09 am, edited 1 time in total.

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 wally007,
wally007 wrote: Hi Kierse ,

been using Media Rover for almost a year now and by far very happy with it. Couple of my colleagues asked about it but got scared by config file. Are you mostly concentrating on getting most features you can in or is  GUI anywhere close to being done ?

Thanks !
No, the GUI is not near completion.  Lately I've been focusing on implementing as many of the highly requested features as possible and I am aware that a GUI is high on that list.  I've started going over my earlier preliminary work and intend to make it a priority.

Kierse

Maverick519
Newbie
Newbie
Posts: 15
Joined: January 16th, 2010, 9:59 pm

Re: Media Rover

Post by Maverick519 »

Hey Kierse,

Just downloaded the new build of mediarover and it looks like from the log it is now reading the .ignore file properly for all shows.
Thanks for the quick fix.

Maverick519

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 »

Maverick519 wrote: Hey Kierse,

Just downloaded the new build of mediarover and it looks like from the log it is now reading the .ignore file properly for all shows.
Thanks for the quick fix.

Maverick519
Ya it was a minor bug, sorry about that.  Thanks for letting me know.

Kierse

Poag
Newbie
Newbie
Posts: 5
Joined: April 22nd, 2010, 6:02 am

Re: Media Rover

Post by Poag »

This morning i attempted to update to the 0.5.1 version. I've tried both a upgrade and a complete reinstall to no avail.

I am given the following error when trying to run mediarover.

Code: Select all

pogmini:mediarover Pog$ python mediarover.py schedule
2010-08-20 10:45 INFO - created metadata datastore - metadata.py:282
2010-08-20 10:45 INFO - --- STARTING --- - __init__.py:208
2010-08-20 10:45 INFO - begin processing tv directory: /Volumes/USB1 - series.py:464
2010-08-20 10:45 ERROR - invalid literal for int() with base 10: '' - __init__.py:214
Traceback (most recent call last):
  File "/Applications/mediarover/mediarover/__init__.py", line 212, in scheduler
    __scheduler(broker, options)
  File "/Applications/mediarover/mediarover/__init__.py", line 248, in __scheduler
    watched_list = build_watch_list(config)
  File "/Applications/mediarover/mediarover/series.py", line 510, in build_watch_list
    series.ignores = config['tv']['filter'][sanitized_name]['ignore']
  File "/Applications/mediarover/mediarover/series.py", line 394, in _ignores_prop
    self.__ignores = [int(i) for i in ignores]
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "mediarover.py", line 19, in <module>
    mediarover.run()
  File "/Applications/mediarover/mediarover/__init__.py", line 75, in run
    scheduler(broker, args)
  File "/Applications/mediarover/mediarover/__init__.py", line 212, in scheduler
    __scheduler(broker, options)
  File "/Applications/mediarover/mediarover/__init__.py", line 248, in __scheduler
    watched_list = build_watch_list(config)
  File "/Applications/mediarover/mediarover/series.py", line 510, in build_watch_list
    series.ignores = config['tv']['filter'][sanitized_name]['ignore']
  File "/Applications/mediarover/mediarover/series.py", line 394, in _ignores_prop
    self.__ignores = [int(i) for i in ignores]
ValueError: invalid literal for int() with base 10: ''


[edit] Went down a version to .50 and seems to be working perfectly...most confusing!
Last edited by Poag on August 20th, 2010, 5:28 am, edited 1 time in total.

Post Reply