Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drkno/titlecleaner
Cleans and renames the titles of downloaded media files (tv/movies).
https://github.com/drkno/titlecleaner
Last synced: 1 day ago
JSON representation
Cleans and renames the titles of downloaded media files (tv/movies).
- Host: GitHub
- URL: https://github.com/drkno/titlecleaner
- Owner: drkno
- License: mit
- Created: 2014-07-28T08:27:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-28T05:49:37.000Z (almost 9 years ago)
- Last Synced: 2023-08-16T21:33:59.661Z (about 1 year ago)
- Language: C#
- Size: 671 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
TitleCleaner
============Cleans and renames the titles of downloaded media files (tv/movies).
Also incorporates functionality to retrieve missing TV Show titles from the TVDB as well as relocate files to appropriate storage locations (eg rename and move from a downloads folder to some media directory).If there is insufficient information the program will make a best effort approach when trying to find names.
Library:
---
Download latest release [here](https://github.com/mrkno/TitleCleaner/releases/download/v2.0.57.15015/TitleCleanerLib.zip).
Examples of how to use are the tc-cli and tc-gui projects. Also included is XML documentation and a pdb debugging file.
A general overview of the classes in the library can be seen below:
![Overview image of the library class layout.](./Overview.png)GUI:
---
Download latest release [here](https://github.com/mrkno/TitleCleaner/releases/download/v2.0.57.15015/tc-gui.zip). Usage of the GUI is fairly self explanatory however any part that is undocumented works in a similar if not identical way to the CLI interface below. If a feature is undocumented, unexplained or otherwise refer to the CLI options and documentation for more information.CLI:
---
Download latest release [here](https://github.com/mrkno/TitleCleaner/releases/download/v2.0.57.15015/tc-cli.zip)tc-cli.exe [OPTION]...
Usage Examples:
*tc-cli.exe -i -c -v "N - \SS\Ee?( - T).E"
This will ask for confirmation, query the TVDB and output TV files in the formatSeriesName - SXXEXX.ext
orSeriesName - SXXEXX - EpisodeTitle.ext
if EpisodeTitle exists.
*tc-cli.exe -s "C?( Y)?( (P)).E"
This will output files in the default format, optionally appending Year and file part number if they are known.If no options are specified defaults will be used.
-m, --mode
The {MODE} to run this application in (normal/test).
-t, --type
The {TYPE} of media files being input (tv/movie/auto).
-i, --tvdb
Retreives new missing tv episode names from the TVDB.
-c, --confirm
Asks for confirmation on rename/move/test.
-o, --out
Move media files to {DIRECTORY}. In test mode this outputs the outcomes
of the test cases to the specified file.
-s, --format
{FORMAT} to use for output file naming. Supports the following characters:
L: Location
O: Origional Filename
C: Cleaned Filename
E: File Extension
Y: Year (or if year is unknown, current year)
P: Part of File
?: Only return next character group if it is not null/empty/whitespace
\: Return Next Character
-v, --tformat
{FORMAT} to use for output TV file naming. This option overrides the -s option.
Supports the same characters as the -s option as well as:
T: Title of the Episode
N: Name of the Episode
S: Season Number of the Episode (Padded to 2sf)
s: Season Number of the Episode
e: Episode Number of the Episode
-e, --mformat
{FORMAT} to use for output movie file naming. This option overrides the -s option.
Supports the same characters as the -s option.
-h, --help
Display this help.
-w, --tvdir
Sets the output directory subdirectory for tv files.
-r, --movdir
Sets the output directory subdirectory for movie files.
-d, --directory
The {DIRECTORY} to search for files. When used the directory provided will be
searched instead of the current directory for media files.
This option is mutually exclusive with -f.
-f, --file
Cleans an individual {FILE} instead of searching. The behaviour of the application
is otherwise unchanged. This option is mutually exclusive with -d. In test mode
this specifies a test .csv file to run.-p, --copy
Only copy, don't move files. Requires the -o option.A full list of the test cases that TitleCleaner is run against (with default options) can be found [here](https://github.com/mrkno/TitleCleaner/blob/master/MediaFileParser/Tests/tests_paths.csv).
8/5647 Tests are failing as of 18:55:09 NZST 30/11/14.
This list always requires expansion so feel free to contribute them in a similar csv format.This is an improved version of the original mess located here:
https://code.google.com/p/title-cleanerAny contributions/pull requests welcome.
License changed to the MIT Licence.