https://github.com/gsscoder/normalize-fn
Makes filenames downloaded from sharing services more readable
https://github.com/gsscoder/normalize-fn
Last synced: 2 months ago
JSON representation
Makes filenames downloaded from sharing services more readable
- Host: GitHub
- URL: https://github.com/gsscoder/normalize-fn
- Owner: gsscoder
- License: mit
- Created: 2019-11-04T13:26:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T14:36:17.000Z (almost 6 years ago)
- Last Synced: 2025-05-19T23:08:48.308Z (7 months ago)
- Language: Python
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# normalize-fn
Makes filenames downloaded from sharing services more readable.
[](https://asciinema.org/a/286197)
## Install
**NOTE**: Python 2.7 or higher is required.
```sh
# clone the repository
$ git clone https://github.com/gsscoder/normalize-fn.git
# change the working directory
$ cd normalize-fn
# verify if it runs
$ python normalizefn.py --version
```
## Usage
```
$ python normalizefn.py --help
usage: normalizefn.py [-h] [--version] [--force] [--skip-subtitle]
[--remove-langs] [--remove-noise] [--list-dir]
[DIRECTORY]
normalizefn.py: Normalizes filenames downloaded from sharing services (Version 0.5.0)
positional arguments:
DIRECTORY directory containg the files to rename
optional arguments:
-h, --help show this help message and exit
--version display version information
--force, -f attempt to rename files without prompting for
confirmation
--skip-subtitle, -s skip files with common subtitle extensions
--remove-langs, -l remove language codes from filename
--remove-noise, -n remove excess chars repetition
--list-dir, -d list directory of renamed files
$ python3 normalize-fn.py -sl /somewhere/your/movies/scif-fi
[DVDRip] Star W...) Episode I.avi -> Star Wars Episode I.avi
HD BluRay Star W...Episode II.avi -> Star Wars Episode II.avi
(PERFECT) Alien ... 254] AAC3.mkv -> Alien VS Predator.mkv
Hit 'e' to edit the list.
normalizefn.py: sure you want to rename all 3 files in /somewhere/your/movies/scif-fi [yne]?y
Renaming into '/somewhere/your/movies/scif-fi'...
Renaming files 100% 3/3, done.
```
## Editor
When you're prompted to proceed you could choose to review file names for customizations, hitting **E key**. When running on Windows the editor used is always **Notepad**. In ***nix** systems is the shell one, configured using `VISUAL` environment variable.
### Disclaimer
- You should not download any kind of media illegally.