Hi everyone,
I just pushed some code changes to Github that introduce some new functionality to Media Rover. Here's a quick overview of the changes:
1) rewrote mediarover.py to be the single point of execution for all MR functionality. From now on, running MR without any arguments will get you the following:
Code: Select all
Usage: mediarover.py [--version] [--help] COMMAND [ARGS]
Description: Media Rover is an automated TV download scheduler and catalogue maintainer
Available commands are:
schedule Process configured sources and schedule nzb's for download
episode-sort Sort downloaded episode
set-quality Register quality of series episodes on disk
write-configs Generate default configuration and logging files
See 'python mediarover.py COMMAND --help' for more information on a specific command.
Each available command has it's own set of command line options. A complete description of a command and it's options can be found by running the following:
Code: Select all
> python mediarover.py COMMAND --help
For example, here is the help documentation for the 'write-configs' command:
Code: Select all
> python mediarover.py write-configs --help
Code: Select all
Usage: mediarover.py write-configs [options]
Description: generate default configuration and logging files
Options:
-c /PATH/TO/CONFIG/DIR, --config=/PATH/TO/CONFIG/DIR
path to application configuration directory
-h, --help show this help message and exit
Examples:
Generate default application config files:
> python mediarover.py write-configs
Generate default application config files, in a specific directory:
> python mediarover.py write-configs --config /path/to/config/dir
2) removed episode_sort.py. Keeping in line with the previous statement, episode sorting is now a function of the mediarover.py script. Along with this change comes the ability to easily sort a downloaded episode manually. Instead of having to provide the 7 arguments usually supplied by SABnzbd, a user can now manually sort a downloaded episode by providing the download path and (optionally) the episode quality. One drawback to this change is that a shell script will now be required by everyone wishing to have SABnzbd automatically sort downloaded episodes (due to the new argument requirement). I suspect most users already use the shell script to invoke MR so I don't think this will be too big of a problem. The various shell script examples (in the scripts/ directory) have been updated to properly invoke MR using the new approach.
3) added ability to populate the metadata database with quality information for your existing episodes. See
Code: Select all
> python mediarover.py set-quality --help
for details
I imagine there will be some bugs with these changes. As always, please post here or create a support ticket in the Github issue tracker
Kierse