https://github.com/codewithivy/python-movie-scripts
My python scripts to manage Plex movie server content. Automating tedious tasks like renaming, organizing, and syncing.
https://github.com/codewithivy/python-movie-scripts
Last synced: 3 months ago
JSON representation
My python scripts to manage Plex movie server content. Automating tedious tasks like renaming, organizing, and syncing.
- Host: GitHub
- URL: https://github.com/codewithivy/python-movie-scripts
- Owner: codewithivy
- Created: 2025-01-23T03:50:22.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T04:24:43.000Z (5 months ago)
- Last Synced: 2025-01-23T04:25:20.276Z (5 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-movie-scripts
My python scripts to manage Plex movie server content.
Automating tedious tasks like renaming, organizing, and syncing.Ensure that the script is run in a directory where you have permission to rename files.
### rename-to-conventions.py
Batch Renaming Files (to match Plex naming conventions)
This script batch renames movie files to match the correct Plex naming conventions, which generally follow a format like: MovieName (Year).ext.Example input
``` lua
TheMatrix1999.mkv
Inception2010.mp4
Avatar2009.avi
```Example output
```lua
Renamed: TheMatrix1999.mkv -> TheMatrix (1999).mkv
Renamed: Inception2010.mp4 -> Inception (2010).mp4
Renamed: Avatar2009.avi -> Avatar (2009).avi
```
After running the script, your directory /path/to/your/movies will have the following renamed files```lua
TheMatrix (1999).mkv
Inception (2010).mp4
Avatar (2009).avi
```### moves-movie-files-on-keyword.py
This script moves movie files into different folders based on certain keywords in the filename (e.g., genre or type).### filter-by-year.py
This script filters movies from a directory based on their release year and sorts them accordingly.## imdb-scraping.py
First install the IMDb library
```bash
pip install IMDbPY
```This script scrapes movie metadata from IMDb (e.g., rating, genre, plot) and stores it in a CSV file for organizing and updating Plex content.