Commit graph

63 commits

Author SHA1 Message Date
Markus Nyman
ad00347714 Split stuff to own files 2023-01-17 02:04:53 +02:00
Markus Nyman
d236d8d337 Small cleanup 2023-01-17 02:04:53 +02:00
Markus Nyman
52349668d7 Move common logic to base Processor class 2023-01-17 02:04:53 +02:00
Markus Nyman
fc13aa9a78 Process TV Shows and Movies using Processor class 2023-01-17 02:04:53 +02:00
Markus Nyman
e668a6dec5 Make Searcher abstract 2023-01-17 02:04:53 +02:00
Markus Nyman
118e5f8882 Add TVTimeShow class 2023-01-17 02:04:53 +02:00
Markus Nyman
bfc6b171b3 Remove redundant dataclass annotation 2023-01-17 02:04:53 +02:00
Markus Nyman
9082e176fc WIP: Processor class 2023-01-17 02:04:53 +02:00
Markus Nyman
8a5453c8b2 Implement general Searcher to search and handle search results 2023-01-17 02:04:53 +02:00
Markus Nyman
8e92ce7934 Extract finding single result to common function 2023-01-17 02:04:53 +02:00
Markus Nyman
fdc924ee0f Introduce common get_item function 2023-01-17 02:04:53 +02:00
Markus Nyman
076562c106 WIP: refactor 2023-01-17 02:04:53 +02:00
Markus Nyman
5d2143c6f6 Fix TinyDB movie name 2023-01-17 02:04:53 +02:00
Markus Nyman
b03bfab5cb Remove unnecessary param 2023-01-17 02:04:53 +02:00
Markus Nyman
9482979988 Extract getting same name items to common function 2023-01-17 02:04:53 +02:00
Markus Nyman
c2e644fad0 Simple refactor 2023-01-17 02:04:53 +02:00
Markus Nyman
2a78d7ecbe Fix movie query 2023-01-17 02:04:53 +02:00
Markus Nyman
f31879f985 Extract menu selection to own function 2023-01-17 02:04:53 +02:00
Markus Nyman
c58ef45fed Specify TV Shows and Movies as default action 2023-01-17 02:04:53 +02:00
Markus Nyman
2b8c393c6a Remove old Title fields 2023-01-17 02:04:53 +02:00
Markus Nyman
f81be51903 Remove use of Exodus class 2023-01-17 02:04:53 +02:00
Markus Nyman
e9c3d99c53 Naming to snake_case 2023-01-17 02:04:53 +02:00
Markus Nyman
0ab9772b33 Prompt config if it doesn't exist 2023-01-17 02:04:53 +02:00
Markus Nyman
7d8117afba Config to dataclass 2023-01-17 02:04:53 +02:00
7974a2c5d0 Add bell on manual input prompt (suggested by @WeirdAlex03) 2023-01-17 02:04:53 +02:00
134eb720e8 Just use one database 2023-01-17 02:04:53 +02:00
d452f28fee Present menu before authentication. add entries 2023-01-17 02:04:52 +02:00
5ec8c1323e Merged scripts 2023-01-17 02:04:06 +02:00
a858de6a73 Cleanup 2023-01-17 02:03:54 +02:00
37ce993cf1 Initial working 2023-01-17 02:03:52 +02: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