Forked from sticki
pyautorescene automates the process of returning un-rarred scene releases back into their former glory. It makes use of PyReScene and srrDB to make the whole process has hands off as possible. With this fork, it is possible to log in your srrdb account to bypass the daily download limit of srr. Now it is also possible to add only nfo/sfv/Sample/Proof/Subs if you already have releases in scene format but no longer the unrarred .mkv.
The main requirement is that you have already installed PyReScene from source as per the instructions. This tool does not work with the pre-compiled .exes.
- Clone this repository to your local machine
- Via terminal/command prompt navigate to the folder
- Edit
bin/autorescene.py
, fillusername/password
to login your srrdb account, - Fill
rar_version
with the path that you have the WinRAR executables (you must runpreprardir.py
before) and fillsrr_temp_foder
who is just a temp folder for the recompressing process. (Doesn't work under linux...) - Run
python setup.py install
Currently, the best and most tested method of executing this script is autorescene.py -vaf -o /path/to/output /path/to/input
It is seriously recommended to output to a completely separate folder that you're happy to delete.
If you already have releases in scene format but no longer the unrarred .mkv and you want to search against srrdb if you have missing files like nfo/sfv/Sample/Proof/Subs do autorescene.py -vc /path/to/input
stick$ autorescene.py --help
usage: autorescene.py [--opts] input1 [input2] ...
automated rescening of unrarred/renamed scene files
positional arguments:
input file or directory of files to be parsed
optional arguments:
-h, --help show this help message and exit
-a, --auto-reconstruct
full auto rescene - this will scan directories, locate
files, check srrdb, and a release into a release dir
with original rars and nfo/sfv/etc and sample, if srs
exists - this is the same as -jkx
-j, --rescene recreate rars from extracted file/srr
-k, --resample recreate sample from original file/srs
-f, --find-sample if sample creation fails, look for sample file on disk
-g, --resubs look for sub rar if file is missing
-o OUTPUT, --output OUTPUT
set the directory for all output
-v, --verbose verbose output for debugging purposes
--rename rename scene releases to their original scene
filenames
-x, --extract-stored extract stored files from srr (nfo, sfv, etc)
-e EXTENSION, --extension EXTENSION
list of extensions to check against srrdb (default:
.mkv, .avi, .mp4, .iso)
-c, --check-extras check missing Sample/Proof, this will scan directories,
check srrdb, and add into a release dir with original rars
nfo/sfv/proof and recreate sample
--check-crc check crc in sfv file when using --check-extras
--keep-srr keep srr in output directory
--keep-srs keep srs in output directory
Make a better code for Subs reconstruction/check -> Working but little bugged, I'm not sure that will work with all subbed releases.