https://github.com/geektimus/movie-ranker
Repo created to check my movie collection and know which movies I can delete (rating < 6.0)
https://github.com/geektimus/movie-ranker
Last synced: 25 days ago
JSON representation
Repo created to check my movie collection and know which movies I can delete (rating < 6.0)
- Host: GitHub
- URL: https://github.com/geektimus/movie-ranker
- Owner: geektimus
- License: mit
- Created: 2022-11-06T05:02:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T16:38:36.000Z (about 1 month ago)
- Last Synced: 2025-03-19T17:36:58.511Z (about 1 month ago)
- Language: Jupyter Notebook
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Movie Ranker
Repo created to check my movie collection and know which movies I can delete (rating < 6.0)
## Movie File Scanner
This script scans a local folder for movie files (.mp4) and saves their information to a text file.
### Usage
The script supports the following command-line arguments:
- `--input` or `-i`: (Required) Input folder containing movie files
- `--output` or `-o`: (Optional) Output file path (default: data/movies.local.txt)#### Examples
```bash
# Using default output location (data/movies.local.txt)
python get_movies_from_local.py --input /path/to/movies# Specifying custom output file
python get_movies_from_local.py --input /path/to/movies --output /path/to/output.txt# Using short form arguments
python get_movies_from_local.py -i /path/to/movies -o /path/to/output.txt
```### Output Format
The script generates a text file with each line containing:
- File size (in bytes)
- Movie name (without extension)## Useful commands
### Generate the movie list with its size in kb
```bash
find ./ -mindepth 2 -type d -not -iname "*subs" -not -iname "*spanish*" -exec du -hk {} \; | grep -Evi "(subs|spanish)" | awk -F"/" '{print substr($1, 1, length($1)-1) $3}' > $HOME/Downloads/movies.txt
```