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.
Metadata
Release files for seasontracker 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seasontracker-0.2.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seasontracker-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / seasontracker-0.2.0.tar.gz
| Download URL | seasontracker-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98b1bac7de0c49d7384946156be3805ab91f5f6d6e90f30f5999950d885d3bc0
|
|
BLAKE2b-256 checksum How to use checksums |
7ce11b4e57ebc98496ea6631c437dd50e0e2417d6f98fafea60a1f0c06c9dfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / seasontracker-0.2.0-py3-none-any.whl
| Download URL | seasontracker-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df2c7d87eca22c92f968a8cb9eb5e0e10ddfa7c145c9d55c3d72538f6b12ad8c
|
|
BLAKE2b-256 checksum How to use checksums |
963e37b79c857fbd070bdb1c80a5e23e34fc278b691057757d27f6d66d79282a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|