This python script allows to easily rename movies and tv series episodes obtained from OnlineTVRecorder in batch mode.
Usage:
- Movies:
python otr_rename.py "C:\Path\to\file\directory"
python otr_rename.py --method imdb_local "C:\Path\to\file\directory"
(get official (local) movie name from IMDB)python otr_rename.py --method imdb_closest "C:\Path\to\file\directory"
orpython otr_rename.py --method imdb_global "C:\Path\to\file\directory"
(get official (global) movie name from IMDB)
- Series:
python otr_rename.py --series "some TV series title (e.g., 'Die Simpsons')" "C:\Path\to\directory\with\episodes"
→ sets episode title and season/episode ID for each filename by querying the fernsehserien.de database
- Other commands:
- help:
python otr_rename.py -h
- dry-run (no renaming):
python otr_rename.py -n ...
- help:
The filename format can be modified in otr_rename.py
(search for #DEFINE FILENAME FORMAT
comment).
Requirements:
- python>=3.8
- requests
- beautifulsoup4
- IMDbPY (only if
--method
is used)
Installing (only required for tests):
pip install -e .