Skip to main content

A script to let you know when there are new seasons of your TV shows

Project description

Seasonwatch

Introduction

Seasonwatch is an application that helps you keep track of when new seasons of TV show you are following are released.

Dependencies

  • Python >= 3.10
  • libgirepository (Arch Linux, Ubuntu) (for showing notifications)

Installation

Download the wheel from the release page here on GitHub and install it with:

$ pip install seasonwatch-<the version you want to install>-py3-none-any.whl

Alternatively, clone the repository and run the following in it:

$ poetry build
$ pip install dist/<your newly built package>

You can also run it using poetry directly if you just want to try it:

$ poetry run seasonwatch

Usage

Initial configuration

In order to use Seasonwatch, you need to have a TMDB API Read Access Token. Getting one is free, and you get it by registering on https://www.themoviedb.org and then creating an API key according to the documentation. Creating an API key also gives you an API Read Access Token. Once you have it, manually edit your configuration file (usually ~/.config/seasonwatchrc) or run:

$ seasonwatch configure
TMDB API Read Access Token: <your token, then Enter>
Testing token...
Token is valid!
Write new config file, losing all comments? (Y/n): <Y>
Successfully set TMDB token!

Adding new TV show

You can interactively add a new TV show to your database by running the below command. You'll be prompted to fill in the title of the TV show, the ID, and the last season you've seen. For example, if you've just watched season 3 of The Expanse and want to be notified when the next season is released, you'd fill in it like so:

$ seasonwatch tv --add
What the show should be called: The Expanse
ID of the show (after 'tv/' in the URL on TMDB): 63639
Last watched season: 3
title: The Expanse
TMDB ID: 63639
Last watched season: 3
Does this look ok? (Y/n) Y

Add more shows? (y/N)

You can use anything you want as the title. The ID is in the URL of the TV show on TMDB. In this case, the page on TMDB for the TV show is: https://www.themoviedb.org/tv/63639-the-expanse

The ID is the number that comes after tv/ in the URL, and before the title of the TV show. That is, "63639".

You can verify that the TV show is added to the database by running:

$ seasonwatch tv --list
┌────────────────────────────────┬─────────────────────┬──────────────────────────────────────┐
│ Title                          │ Last watched season │ Hyperlink                            │
├────────────────────────────────┼─────────────────────┼──────────────────────────────────────┤
│ The Expanse                    │ 3                   │ https://www.themoviedb.org/tv/63639  │
└────────────────────────────────┴─────────────────────┴──────────────────────────────────────┘

Checking for new seasons

Just run Seasonwatch like so:

$ seasonwatch
Season 4 of The Expanse is out already!

You will be shown notifications for shows that are already out or coming out soon, and the information for all shows in your database will be printed on the command line. It might be a good idea to automate the running of the script with a cron job that runs it regularly. Even when run in the background, Seasonwatch will show you desktop notifications.

Migration to TMDB

The IMDb API is no longer working, so from version 0.3.0 onward, TMDB is used instead. If your database was created before then, you will be asked to migrate when running Seasonwatch for the first time after installing the new version. There is a helper that will suggest corresponding TMDB IDs for your old shows.

Development

Status

Seasonwatch currently supports checking for new TV show seasons only. Version 0.3.0 has been released and is ready to be used for this purpose.

Bugs

Report bugs under the issues tab here on GitHub.

Release process

The release process is automated and happens through the Release workflow. It just needs to be triggered by pushing a tag. Instructions for creating a release:

  1. Create a pull request toward the dev branch with a step-up commit that bumps the version and updates the changelog if necessary. Merge it.
  2. Create a pull request from the dev branch toward the main branch and merge that.
  3. Create an annotated tag on the main branch: git tag -am "Step up Seasonwatch to version X.Y.Z" vX.Y.Z.
  4. Push the tag: git push --tags origin vX.Y.Z.
  5. Verify that the Release workflow is triggered and succeeds.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seasonwatch-0.3.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

seasonwatch-0.3.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file seasonwatch-0.3.0.tar.gz.

File metadata

  • Download URL: seasonwatch-0.3.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for seasonwatch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2091f0c360e39b3ebb6445ca20bf20f5351b5228d2c850b263f17da4961c9d40
MD5 9e83dcd5db679b8cdaa845000bd7ee44
BLAKE2b-256 1ff463d8b4d7fbee5d109a6db5f71a8376637ca4211d795b4ed28c4d188578a4

See more details on using hashes here.

File details

Details for the file seasonwatch-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: seasonwatch-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for seasonwatch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d337bba81a429daa1208507b7f37492b8d1849090d6616331526238f2b11cb
MD5 7761d4650eab7639b69bfbd708114163
BLAKE2b-256 73ae01d2547bccd938347a37e86311acc5d2692155e2d99e3617ac033cdd046c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page