Tracks new season releases of TV shows using TMDB.
Project description
seasontracker
CLI tool that tracks new season releases of TV shows using TMDB. It prints or sends an email if new seasons are available.
Installation
This package can be installed from source using:
git clone git@github.com:MarcSerraPeralta/seasontracker.git
cd seasontracker/
pip install .
Configuration
To configure season tracker, first store your TMDB API Read Access token in a .env file
# ~/.seasontracker
TMDB_TOKEN=...
and if you want to use the Gmail notification, also store:
# ~/.seasontracker
GMAIL_ACCOUNT=...
GMAIL_APP_PASSWORD=...
Tip: use chmod 600 ~/.seasontracker so that only your user can read the file.
To specify the seasons to keep track of, create the following YAML:
# yaml_example.yaml
- user: marc
email: marcserraperalta@gmail.com # Optional, status will be sent through email
37854: # TMDBid from www.themoviedb.org/tv/37854
name: One Piece
last_watched_season: 1
79141:
name: Scissor Seven
last_watched_season: 2
- user: someone else # if 'email' is not specified, status will be printed
1:
name: some name
last_watched_season: 0
Execution
To check if the Gmail notifications work, run to send a test email to GMAIL_ACCOUNT:
seasontracker
If the .env file is not stored in ~/.seasontracker, specify its path with --env.
To print/send email with the status of new seasons, run:
seasontracker yaml_example.yaml
If the user has an email, the status will be sent by email, otherwise it will be printed.
To stay up to date with new releases, it is recommended to set up a cron job for seasontracker.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seasontracker-0.2.0.tar.gz.
File metadata
- Download URL: seasontracker-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b1bac7de0c49d7384946156be3805ab91f5f6d6e90f30f5999950d885d3bc0
|
|
| MD5 |
db2478dba038cda5a15a0fb941cb71b1
|
|
| BLAKE2b-256 |
7ce11b4e57ebc98496ea6631c437dd50e0e2417d6f98fafea60a1f0c06c9dfb9
|
File details
Details for the file seasontracker-0.2.0-py3-none-any.whl.
File metadata
- Download URL: seasontracker-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df2c7d87eca22c92f968a8cb9eb5e0e10ddfa7c145c9d55c3d72538f6b12ad8c
|
|
| MD5 |
8bedf690f77e2813b4b98002b64d0b02
|
|
| BLAKE2b-256 |
963e37b79c857fbd070bdb1c80a5e23e34fc278b691057757d27f6d66d79282a
|