a small CLI to mark items watched on trakt
Project description
trakt-watch
A small CLI to mark items watched on trakt. This lets you:
- Mark movies/episodes as watched
- Rate movies/episodes
- Remove items from your history
- Query your recent history
This uses traktexport internally to authenticate, so follow the steps here to login/setup your credentials.
Installation
Requires python3.11+
To install with pip, run:
pip install git+https://github.com/seanbreckenridge/trakt-watch
Usage
You can set the TRAKT_USERNAME environment variable so you don't have to pass it every time.
Usage: trakt-watch [OPTIONS] COMMAND [ARGS]...
Options:
-u, --username TEXT Trakt username [env var: TRAKT_USERNAME; required]
--help Show this message and exit.
Commands:
rate rate movie/tv show/episode
recent show recent history
unwatch remove recent watched item
watch mark movie/episode as watched
Query recent history:
$ trakt-watch recent
2023-10-21 22:24:59 Stuff Made Here S2023E1 - I sent robot forgeries to a handwriting expert
2023-10-21 22:18:10 Possession
2023-10-21 19:33:15 Stuff Made Here S2023E2 - I made 6 absurd pencil sharpeners
2023-10-20 14:30:00 Killers of the Flower Moon
2023-10-18 23:49:06 RWBY S9E10 - Of Solitude and Self
2023-10-18 17:28:11 RWBY S9E9 - A Tale Involving a Tree
2023-10-17 18:32:29 RWBY S9E8 - Tea Amidst Terrible Trouble
2023-10-17 17:51:30 RWBY S9E7 - The Perils of Paper Houses
2023-10-15 22:39:51 The Wicker Man
2023-10-15 18:54:01 How to Blow Up a Pipeline
Set a movie as watched/rate it:
$ trakt-watch watch --at '10m ago' --url https://trakt.tv/movies/possession-1981
Added count:
Movies: 1
Set rating? [Y/n]:
Rating: 9
Added count:
Movies: 1
Recent history:
1: 2023-10-31 11:35:28 Possession
Search for an TV show and provide a season/episode number:
$ trakt-watch watch
[M]ovie
[S]how
[E]pisode name
Ep[I]sode - Show w/ Season/Episode num
[U]rl
[A]ll
What type of media do you want to search for?
Search for show: barry
Results:
1: Show: Barry (2018) | shows/122709
2: Show: Carrie and Barry (2004) | shows/9085
3: Show: Red Barry (1938) | shows/128828
4: Show: Barry Hilton (1999) | shows/110779
5: Show: Carrie & Barrie (2004) | shows/128392
6: Show: Barry Tales (2013) | shows/100038
7: Show: Todd Barry (2012) | shows/105417
8: Show: Barry Manilow Specials (1977) | shows/67327
9: Show: Barry Welsh is Coming (1996) | shows/13243
10: Show: Britain's Greatest Machines With Chris Barrie (2009) | shows/49775
11: Show: Deception With Keith Barry (2010) | shows/63137
Pick result - enter 1-11, or q to quit [1]:
Season: 1
Episode: 8
Added:
Episodes: 1
Tests
git clone 'https://github.com/seanbreckenridge/trakt-watch'
cd ./trakt_watch
pip install '.[testing]'
pytest
flake8 ./trakt_watch
mypy ./trakt_watch
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 trakt_watch-0.1.0.tar.gz.
File metadata
- Download URL: trakt_watch-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5036ff7c6a06b246420eb54864e6915bc464cc4b694ff3b7dbcf3d66f4639bc
|
|
| MD5 |
5313d441136d3a92a16c3ef9bba6c21d
|
|
| BLAKE2b-256 |
7600e31c5a9dc73f97ff75d2e23a6fbbcfe9db53a72305f495362b820b22c631
|
File details
Details for the file trakt_watch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trakt_watch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665b408b22255d2cf5597c1412da6e4612a6bb5ef56df1b3c759ce8db1fab90c
|
|
| MD5 |
86bfbb89ce23bbb7fb71553b8dcefd08
|
|
| BLAKE2b-256 |
529f7a195d4c8de9d7222aa5c0ece6501fe9301c0230375cea799be484045edf
|