This is an updated version of the subdl.py
file for the Bazarr project. It introduces additional functionality and optimizations to improve subtitle handling, particularly for full-season packs, caching, and error handling during API queries.
- Adds support for full-season subtitle packs.
- Extracts specific episodes from season packs using:
- Episode numbers.
- Season numbers.
- Release name matches.
- Caches season packs to avoid repeated downloads.
- Implements caching for:
- Season packs: Stores downloaded full-season subtitles for reuse.
- Search results: Reduces API calls by saving query responses temporarily.
- Caching is time-limited (default: 15 minutes) and size-controlled for optimal performance.
- Adds support for additional API parameters.
- Matches subtitles more accurately to videos using metadata.
- Download the
subdl.py
File:- Clone this repository or download the subdl.py file directly.
- Replace the Existing File:
- Navigate to your Bazarr installation directory.
- Locate the
custom_libs/subliminal_patch/providers/
folder. - Replace the existing
subdl.py
file with this version.
- Restart Bazarr:
- Restart your Bazarr service to apply the changes.