This repository was archived by the owner on Dec 13, 2025. It is now read-only.
Conversation
- Add Bazarr episode API client with series enrichment and episode upload - Implement SubSource TV show downloader with intelligent episode matching - Add multi-pattern episode search (S01E01, episode title, scene names) - Extend main workflow to process both movies and TV episodes - Add configurable processing for movies and episodes via config settings - Implement episode tracking with composite keys for series/season/episode - Add comprehensive test suite (24 new tests, 105 total passing) - Update documentation with TV show features and troubleshooting guide - Maintain backward compatibility with existing movie-only functionality
7fe2444 to
96fb5f8
Compare
- Migrated TV episode functionality from separate modules into main Bazarr client - Removed api/bazarr_episodes.py and api/tv_shows.py (consolidated into api/bazarr.py) - Added automatic subtitle synchronization using Bazarr's SubSync - Added Sub-Zero subtitle modification support - Implemented configurable sync parameters (max_offset, framerate fix, GSS) - Replaced Black, isort, and flake8 with Ruff for faster, unified linting - Updated documentation with sync/Sub-Zero feature details and processing flow - Improved terminology consistency (TV shows → TV series) - Updated all tests to reflect consolidated architecture
- Fixed episode info extraction regex priority (S01E01 pattern now checked first) - Added year display support in format_movie_info for multiple year fields - Updated episode subtitle tests to match current API structure - Fixed _is_subtitle_match to support both episode_number and episode fields - Removed obsolete _generate_episode_search_queries tests (method removed) - All 113 tests now passing
- Added comprehensive browser-like headers for Cloudflare protection bypass - Included all required sec-fetch-* and sec-ch-ua-* headers - Added support for cf_clearance cookie via SUBSOURCE_CF_CLEARANCE env variable - Updated User-Agent to match modern Chrome/Edge browser - Added Origin and Referer headers for CORS compliance - Fixes 403 Forbidden errors from SubSource API Tested with successful subtitle download, upload, Sub-Zero mods, and sync.
- Added cf_clearance field to subsource config section - Cookie can now be stored in config file instead of environment variable - Priority: environment variable > config file - Updated SubSourceDownloader to accept cf_clearance parameter - Added helpful comments in config template for getting the cookie - Updated all tests to handle new parameter - All 113 tests passing Users can now set the cookie once in config file and don't need to export the environment variable every time they run the application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key Features
api/bazarr.py(removed separate modules)Addresses Issue
Closes #2
Test plan