movie-file-fixer
Given a directory of poorly formatted movie files, movie-file-fixer will create a beautifully formatted directory of films folders, complete with posters, subtitles, and IMDb metadata.
Algorithm
Given a directory string,
-
folderize()- Prepare the directory space.-
Place all single files (except
contents.jsonanderrors.json) into folders using the file name. - [Folderizer] -
Pull all subtitle files out of
subsfolders if they exist.
-
-
cleanup()- Folder cleanup.- Remove non-movie files, based on a list of "bad" extensions (i.e., .nfo, .txt, etc.) - [
FileRemover]
- Remove non-movie files, based on a list of "bad" extensions (i.e., .nfo, .txt, etc.) - [
-
format()- Format folders, movie files, and relevant metafiles based on IMDb movie titles.-
Rename the movie file and folder (i.e.,
<movie_title> [<year_of_release>]) - [Formatter] -
Create a
contents.jsonfile to store the metadata, including poster URLs. -
Create an
errors.jsonfile to contain any files or folders that had issues being formatted.
-
-
get_posters()- Download the movie poster and name the fileposter.<extension>(where<extension>is the original extension of the poster file) - [PosterFinder] -
get_subtitles()- Download the subtitles using SubDb (http://thesubdb.com/) and an md5 hash of the movie file and name the file<movie_title> [<year_of_release>].srt- [SubtitleFinder]
Release files for movie-file-fixer 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| movie-file-fixer-0.3.0.tar.gz | 32.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| movie_file_fixer-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 70.9 kB
Release files / movie-file-fixer-0.3.0.tar.gz
| Download URL | movie-file-fixer-0.3.0.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd288c77426e2d5211044352b2bd49548e06c9e1c7d2ea0de994d77d714024ca
|
|
BLAKE2b-256 checksum How to use checksums |
fd13aecbda00bde6e21836892f49d22292d4a84198b9336e2fc8cc3de9ee144e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
|
Release files / movie_file_fixer-0.3.0-py2.py3-none-any.whl
| Download URL | movie_file_fixer-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 38.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1f2b207e06264913f34ebb890f6923e16c729dfbe327881d62895e4b20063e6b
|
|
BLAKE2b-256 checksum How to use checksums |
3e70688b68181627bf0c0e5894484539cffa422b0fe17653cbdae42df0a18f99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4
|