Commit Graph

35 Commits

Author SHA1 Message Date
Thibault Le Cornec d721a28ba4
Update Trakt dependency from trakt==3.4.0 to pytrakt~=3.4.30 (#43)
* Update Trakt dependency from trakt==3.4.0 to pytrakt~=3.4.30

Resolve issue #42

* Fix retrieve of the season number
2024-03-02 15:48:17 +00:00
Markus Nyman 26cd599e45
Movie support and refactoring (#26)
* Initial working

* Cleanup

* Merged scripts

* Present menu before authentication. add entries

* Just use one database

* Add bell on manual input prompt (suggested by @WeirdAlex03)

* Config to dataclass

* Prompt config if it doesn't exist

* Naming to snake_case

* Remove use of Exodus class

* Remove old Title fields

* Specify TV Shows and Movies as default action

* Extract menu selection to own function

* Fix movie query

* Simple refactor

* Extract getting same name items to common function

* Remove unnecessary param

* Fix TinyDB movie name

* WIP: refactor

* Introduce common get_item function

* Extract finding single result to common function

* Implement general Searcher to search and handle search results

* WIP: Processor class

* Remove redundant dataclass annotation

* Add TVTimeShow class

* Make Searcher abstract

* Process TV Shows and Movies using Processor class

* Move common logic to base Processor class

* Small cleanup

* Split stuff to own files

* Fix error

* Fix search bug

* Improve logging

* Change is not to is None

* Handle general exception when processing

* Fix grammar

* Fix typo

* Fix case where nothing is found

* Read release date where possible

* Progress to percentage

Co-authored-by: SinTan1729 <sayantan.santra689@gmail.com>
2023-01-17 11:12:52 +00:00
Luke Arran 197ec19dfa
Update README with contributors graph (#25) 2023-01-15 15:06:30 +00:00
SinTan1729 01ab7897c2
Added support for movies (#17)
* Initial working

* Removed .vscode

* Cleanup

* Merged scripts

* Updated README.md

* Present menu before authentication. add entries

* Just use one database

* Remove irrelevant entries

* Add bell on manual input prompt (suggested by @WeirdAlex03)

* Separate file is no longer used for movies

* Config to dataclass

* Prompt config if it doesn't exist

* Naming to snake_case

* Remove use of Exodus class

* Remove old Title fields

* Specify TV Shows and Movies as default action

* Extract menu selection to own function

* Fix movie query

* Simple refactor

* Extract getting same name items to common function

* Remove unnecessary param

* Fix TinyDB movie name

Co-authored-by: Markus Nyman <markus@nyman.dev>
2023-01-15 15:00:52 +00:00
Luke Arran 0b87de1abb
Merge pull request #24 from WeirdAlex03/patch-1 2023-01-04 06:22:06 +00:00
Alex M 577f7e09b6
Add bell to manual input prompt
A small but significant quality-of-life improvement to get the user's attention when the script stops to wait for them to select a match
2023-01-03 22:52:38 -05:00
Luke Arran d248669ec7
Merge pull request #20 from lukearran/add-license-1
Add LICENCE
2022-11-20 15:53:37 +00:00
Luke Arran d5fdc88992
Add LICENCE 2022-11-20 15:47:14 +00:00
Luke Arran 6a280a3f26
Updated README 2022-03-08 12:07:55 +00:00
Luke Arran 503bc9188c
Merge pull request #9 from koccs/fixes 2022-03-04 08:44:20 +00:00
Ádám Kocsis 91a58e66ad Fixes the filename of the main python script to match what is in the README.
Adds the pytrakt.json to avoid error for first run.
Changes the path of pytrakt.json to the working directory instead of home folder.
2022-03-04 09:12:54 +01:00
Luke Arran 463afb4d43
Merge pull request #7 from BapRx/main 2022-02-19 14:17:06 +00:00
Baptiste Roux f8a37b990b
Set DELAY_BETWEEN_EPISODES_IN_SECONDS to 1s 2022-02-19 14:26:30 +01:00
Baptiste Roux b4e39be46b
Install pip modules using requirements.txt; Switch to 'python -m pip' to use the correct version of pip 2022-02-19 14:22:01 +01:00
Baptiste f33b2bfb2e
Merge pull request #1 from BapRx/fix/tvtime-import
Fix/tvtime import
2022-02-19 14:16:22 +01:00
Baptiste Roux 5c3bda15b7
Don't prompt for authentication if Oauth token is still valid 2022-02-19 14:15:27 +01:00
Baptiste Roux 7af14f2f8f
Debug wrong season returned, fixed by https://github.com/moogar0880/PyTrakt/pull/197 2022-02-19 13:28:12 +01:00
Baptiste Roux 3cd4d93d7f
Reduce rate-limit based on API reference; Configure python logging library 2022-02-19 12:34:54 +01:00
Baptiste Roux 8c58b78b8e
Formatting 2022-02-19 12:07:17 +01:00
Baptiste Roux 9436798e47
Change field selection to named columns instead of indexes. (csv.DictReader)
Allow empty menu input, defaulting to choice #1
Change total line count to reuse already opened CSV file
Use enumerate() to track row ID
2022-02-19 11:58:40 +01:00
Baptiste Roux 6d8818bc14
Add requirements file 2022-02-19 11:58:27 +01:00
Luke Arran 77234f58a9 skip first row - instead of checking column name 2021-11-22 20:51:33 +00:00
Luke Arran 2f22c25b9a updated index numbers of seen_episode 2021-11-22 20:40:26 +00:00
Luke Arran 21edfd9c1a
update tvShowDateWatched index no 2021-11-08 21:43:46 +00:00
Luke Arran 356b8d6c9f fixed changed index on tvShowName 2021-11-04 18:13:07 +00:00
Luke Arran 796b1cc33b remove un-used method 2021-04-10 01:04:06 +01:00
Luke Arran 909341fa2f fixes and refactoring 2021-04-10 00:39:10 +01:00
Luke Arran 53433ad2ed refactoring, and improved comments 2021-04-09 22:05:46 +01:00
Luke Arran 4fd33e1a21 minor changes to variables etc 2021-04-09 17:13:11 +01:00
Luke Arran da00fb8705 updated readme 2021-04-09 16:46:52 +01:00
Luke Arran 3d62a9aa08 updated readme 2021-04-09 16:37:22 +01:00
Luke Arran 8472fa349b added graphic to readme 2021-04-09 16:36:28 +01:00
Luke Arran 1f5ab9d66d updated readme again 2021-04-09 15:35:45 +01:00
Luke Arran 54b1da5f13 updated readme 2021-04-09 15:18:27 +01:00
Luke Arran f0623aac50 removing previous commits to protect private data 2021-04-09 15:13:06 +01:00