A collection of Python scripts for managing movie folders and automatically setting custom icons by downloading movie posters from IMDb.
Automatically sets custom icons for movie folders by downloading movie posters from IMDb and converting them to Windows folder icons.
Extracts clean movie names from folder names and saves them to a text file for easy reference.
- Extracts clean movie names from folder names with various formats:
- Folders with
(Bluray),(BluRay),(DVD)etc. - Folders with ratings like
- 8of10
- Folders with
- Searches IMDb for movie posters
- Downloads high-quality poster images
- Converts images to Windows icon format (.ico)
- Automatically sets folder icons on Windows
- Scans movie folders and extracts clean movie names
- Filters out folders with rating patterns (e.g.,
of10) - Saves alphabetically sorted movie list to
movies.txt - Handles various folder naming conventions
- Windows operating system (for icon setting functionality)
- Python 3.7+
- Required packages (install via
pip install -r requirements.txt):- requests
- Pillow
- Clone or download this repository
- Install dependencies:
pip install -r requirements.txt
-
Run the script:
python movie_icon_manager.py
-
The script will use the configured movies folder path (edit the
MOVIES_FOLDERvariable in the script) -
The script will:
- Scan all folders in the specified directory
- Extract clean movie names
- Search IMDb for each movie
- Download poster images
- Convert them to icon format
- Set the folder icons
-
Run the script:
python movies_to_txt.py
-
The script will:
- Scan the configured movies folder
- Extract clean movie names from folder names
- Save the sorted list to
movies.txt
Both scripts can handle various folder naming conventions:
The Matrix (1999) (Bluray)→The MatrixInception - 9of10→InceptionPulp Fiction (BluRay)→Pulp FictionFight Club (DVD Rip)→Fight Club
- Downloaded images and icons are saved in the
movie_iconsfolder - Each folder gets a
desktop.inifile to display the custom icon - Progress and errors are logged to the console
- Creates
movies.txtwith alphabetically sorted movie names - One movie name per line
- Skips folders with rating patterns
Both scripts have configurable folder paths at the top of their respective files:
- Movie Icon Manager: Edit the
MOVIES_FOLDERvariable inmain()function - Movies to Text: Edit the
folder_pathvariable at the bottom of the script
- The Movie Icon Manager adds a 1-second delay between requests to be respectful to IMDb
- Some movies might not be found on IMDb or might not have poster images
- Administrator privileges might be required for setting folder attributes
- Icons will appear after refreshing the folder view (F5)
- Movies to Text skips folders containing 'of10' to avoid rating-based duplicates
If folder icons don't appear immediately:
- Press F5 to refresh the folder view
- Close and reopen File Explorer
- Check that the
desktop.inifile was created in the folder - Ensure you have write permissions to the movie folders
If movies aren't being extracted properly:
- Check the folder path configuration
- Ensure folder names follow supported patterns
- Verify read permissions for the movies directory