This Python application synchronizes movie and TV show information from Douban RSS feeds to a Trakt list. It's designed to automatically update your Trakt list with items you're interested in watching, based on the RSS feed from Douban.
- RSS Feed Parsing: Fetches and parses RSS feed from Douban for movies and TV shows.
- Trakt Integration: Adds movies, TV shows, seasons, and episodes to your Trakt list based on the RSS feed.
- Token Refresh: Automatically refreshes Trakt access tokens when they expire.
- Duplicate Check: Checks if an item is already added to the database before adding it to Trakt to avoid duplicates.
- Logging: Logs actions and errors for debugging and tracking.
- Python 3.x
- External libraries:
requests,datetime,logging, and any other libraries required byrss,trakt,db, andcommonmodules. - A Douban RSS feed URL.
- Trakt API credentials: Client ID, Client Secret, and an initial Access Token.
- Clone this repository to your local machine.
- Install the required Python libraries by running
pip install -r requirements.txt(ensure you havepipinstalled). - Set up your Trakt API credentials and Douban RSS feed URL in a configuration file or environment variables (refer to the
traktandrssmodule documentation for details). - Ensure the
dbmodule is configured correctly to connect to your database.
To run the synchronizer, execute the following command in your terminal:
python main.py