Commit graph

167 commits

Author SHA1 Message Date
JackDandy
3ee5ce8ba8 Update Tornado Web Server 6.3.3 (e4d6984) → 6.4 (b3f2a4b). 2023-12-10 05:31:11 +00:00
Prinz23
aeb3f7b0dc use context manager for scandir as recommended since python 3.6 2023-10-31 17:30:58 +01:00
Prinz23
3ed0d5ed52 more optimization of scantree 2023-10-28 15:10:41 +02:00
Prinz23
54765a5432 optimize scantree 2023-10-28 10:02:01 +02:00
Prinz23
9c5e71d677 add exclude_dirs parameter to scantree 2023-10-28 02:58:18 +02:00
JackDandy
b6e66cbc41 Update pytz 2022.7.1/2022g (d38ff47) → 2023.3/2023c (488d3eb). 2023-10-22 17:20:39 +01:00
JackDandy
e20c80369e Update dateutil 2.8.2 (28da62d) → 2.8.2 (296d419). 2023-10-22 16:45:32 +01:00
JackDandy
f36bb0b179 Update Apprise 1.3.0 (6458ab0) → 1.6.0 (0c0d5da). 2023-10-21 12:47:10 +01:00
JackDandy
3c251294f2 Update urllib3 2.0.5 (d9f85a7) → 2.0.7 (56f01e0). 2023-10-21 11:39:09 +01:00
JackDandy
3d861c7b96 Merge branch 'main' into dev 2023-10-08 02:05:38 +01:00
JackDandy
d58ad2633d Update UnRar x64 for Windows 6.23 → 6.24 2023-10-08 02:04:14 +01:00
Prinz23
ddb6beceb5 add support for Brotli compression if supported lib (by urllib3) is installed 2023-10-08 01:57:02 +01:00
JackDandy
82a503792a Update thefuzz 0.19.0 (c2cd4f4) → 0.21.0 (0b49e4a). 2023-10-08 01:46:16 +01:00
JackDandy
f3de633e4c Update Rarfile 4.1a1 (8a72967) → 4.1 (c9140d8). 2023-10-08 01:04:53 +01:00
Prinz23
71fda2ad08 Update Pytvmaze library 2.0.8 (81888a5) → 2.0.8 (b451391). 2023-10-08 00:37:31 +01:00
JackDandy
43725d8427 Update diskcache 5.6.1 (4d30686) → 5.6.3 (323787f). 2023-10-08 00:30:34 +01:00
JackDandy
0b0c8827a2 Update attr 22.2.0 (683d056) → 23.1.0 (67e4ff2). 2023-10-08 00:21:06 +01:00
JackDandy
cbde47c95c Update hachoir 3.1.2 (f739b43) → 3.2.0 (38d759f). 2023-10-08 00:04:41 +01:00
JackDandy
63632b0d28 Update soupsieve 2.4.1 (2e66beb) → 2.5.0 (dc71495). 2023-10-07 21:04:22 +01:00
JackDandy
0bbbb724a9 Update Beautiful Soup 4.12.2 → 4.12.2 (30c58a1). 2023-10-07 20:56:26 +01:00
JackDandy
d0a5e1d60b Merge branch 'main' into dev 2023-09-22 23:09:45 +01:00
JackDandy
b7d5f4587c Tweak 2023-09-22 23:04:40 +01:00
Prinz23
150a7c9919 fix bug in pytvmaze NetworkBase 2023-09-22 16:33:12 +01:00
JackDandy
4bd61e91d6 Update urllib3 2.0.4 (af7c78f) → 2.0.5 (d9f85a7). 2023-09-20 17:53:00 +01:00
JackDandy
6e6f1e232a Update Requests library 2.29.0 (87d63de) → 2.31.0 (8812812). 2023-09-18 13:13:31 +01:00
JackDandy
07935763df Update urllib3 1.26.15 (25cca389) → 2.0.4 (af7c78fa). 2023-09-18 13:13:31 +01:00
JackDandy
4bb3ba0a15 Update idna library 3.4 (37c7d9b) → 3.4 (cab054c). 2023-09-18 13:13:30 +01:00
JackDandy
85f196d600 Update filelock 3.12.0 (b4713c9) → 3.12.4 (c1163ae). 2023-09-18 13:13:28 +01:00
JackDandy
d25653b06b Update Msgpack 1.0.5 (0516c2c) → 1.0.6 (e1d3d5d). 2023-09-18 13:13:27 +01:00
JackDandy
6846c6cf8a Update CacheControl 0.12.11 (c05ef9e) → 0.13.1 (783a338). 2023-09-18 13:13:27 +01:00
Prinz23
2a73990c82 Add thefuzz 0.19.0 (c2cd4f4) as a replacement with fallback to fuzzywuzzy 0.18.0 (2188520)
Removes Levenshtein requirement with direct use of rapidfuzz instead
Fallback to old fuzzywuzzy for pure python implementation
2023-09-12 14:53:50 +01:00
JackDandy
b68ce0378a Update package resource API 67.5.1 (f51eccd) → 68.1.2 (1ef36f2). 2023-09-06 12:50:19 +01:00
JackDandy
2ea74f3cce Merge branch 'main' into dev 2023-09-06 10:25:56 +01:00
JackDandy
6a819f0730 Fix view show to handle "unknown name" on cast.
Update UnRar x64 for Windows 6.22 → 6.23
2023-09-06 10:24:08 +01:00
JackDandy
dbdcc3c52a Update feedparser 6.0.10 (859ac57) → 6.0.10 (9865dec) 2023-09-06 09:18:26 +01:00
JackDandy
7298cd15ff Update certifi 2023.05.07 → 2023.07.22 2023-09-06 01:34:20 +01:00
JackDandy
48beb0954a Update Tornado Web Server 6.3.2 (e3aa6c5) → 6.3.3 (e4d6984). 2023-09-06 01:26:12 +01:00
Prinz23
7ce28b454b Fix banner url validation for TheTVDb api v3 lib. 2023-09-06 00:55:40 +01:00
Prinz23
da669703b1 Fix banner url validation for TheTVDb api v3 lib. 2023-09-05 23:32:48 +01:00
Prinz23
81a76461b2 py3 fix: guessit return list instead of range object 2023-09-05 23:26:41 +01:00
Prinz23
206c5b7893 Add ignore subfolders that contain a file called '.sickgearignore' 2023-07-13 20:28:19 +01:00
JackDandy
c88b808ab8 Merge branch 'main' into dev 2023-05-31 13:37:15 +01:00
JackDandy
b9bcf6df6b Update UnRar x64 for Windows 6.21 → 6.22
Change allow Python 3.11.4
Change minimum required Python to version 3.8.2
Change remove Python 2 references from init scripts.
Remove provider Rarbg.
2023-05-31 13:31:35 +01:00
JackDandy
997e6955b2 Update Beautiful Soup 4.11.1 (r642) → 4.12.2 and soupsieve 2.3.2.post1 (792d566) → 2.4.1 (2e66beb). 2023-05-28 14:36:55 +01:00
Prinz23
41e4519dbc Fix IMDB fetch from TheTVDb API. 2023-05-26 06:08:40 +01:00
Prinz23
2c1c76885a Fix detect broken api episode endpoint and use fallback.
Fix detect correct old api endpoint pagination and use it.
2023-05-22 00:23:10 +01:00
Prinz23
51d10fc245 fix episode loading bugs in tvdb lib 2023-05-22 00:21:27 +01:00
JackDandy
e08156ce61 Remove singledispatch. 2023-05-16 14:11:34 +01:00
JackDandy
b9f558e7ba Update Tornado Web Server 6.3.1 (419838b) → 6.3.2 (e3aa6c5). 2023-05-16 11:49:53 +01:00
JackDandy
eb2a7c405b Update Send2Trash 1.8.1b0 (0ef9b32) → 1.8.2 (0244f53). 2023-05-08 21:10:41 +01:00
JackDandy
4dffb5dad0 Update certifi 2022.12.07 → 2023.05.07 2023-05-08 20:58:55 +01:00
JackDandy
a97955ed94 Update filelock 3.11.0 (d3241b9) → 3.12.0 (b4713c9). 2023-05-05 15:08:05 +01:00
JackDandy
9009cc7a7b Add langcodes 3.3.0 and language-data 1.1 (vendor'd from pip install langcodes[data])
Add a Select2 drop-down to `add-shows` and `edit-show`.
The Select2 enables displaying inline language flag images, this feature deprecated by the native `select` drop-down element on some browsers.
Change run existing TVInfo source language lists through validation (removes ~4 bad items), de-dupe list, get the native names, English names, and three letter abbr.
Change remove marisa-trie requirement from language_data/names.py because nothing in SG calls a function that requires it.
Change update some flags.
2023-05-03 00:44:00 +01:00
JackDandy
fce8878fa9 Add menu Shows/"TMDB Cards".
Add top rated, popular, trending today, trending this week, to TMDB cards.
Change Shows/Add show... Trakt and IMDb card descriptions to be dynamic.
Add network data to trakt cards.
Add fallback for show cast when no suitable items are found in tvdb_api.
Change refactor for trakt lib update.
Change sanitise api response dates for cards (an invalid trakt date caused a UI glitch).
Fix issue where trakt can return no tvdb id causing a card to not display.
Change view-show TVDb genre links to use anon link setting.
Change remove displayShow.tmpl code for '|' sep as it is a fixed list string at data source.
Change add TVINFO_FANSITE placeholder icon.
Change refactor api sg.`CMD_SickGearShowsBrowseTrakt`.
---
Refactor date handling to make it's usage consistent from indexerapi
Split when_past out to to started_past and return_past for UI.
Fix trakt returning dates.
Change bring properly into use, the proper new season returning date.
Change remove PY2 unused import statements.
---
Fix issue with Trakt cards where an incorrect cache image obscures the default card placeholder image.
Simplify airtime for cards.
Remove nonsense TMDB api overview text.
Rearrange cards order on top menu.
---
Remove unused vars and simplify regex use cases.
Fix tv cards issue with Trakt and Tvmaze where show_info does not carry a first episode_info.
Instantiate with TVInfoEpisode() instead of None, so that expected properties exist without a need for Nonetype tests.
Change simplify `overview` and `airtime` use after lib output type is made trustable.
Change cards view to not allow items with no seriesname.
2023-05-03 00:43:59 +01:00
Prinz23
7a6936823e Change improve tmdb_api, trakt_api, and TVInfoShow object.
Add `spoken_languages` to tmdb API and TVInfoShow object.
Add `trailers`, `homepage` to trakt API and TVInfoShow object.
Add trakt episode data if returned from api.
Add trakt API methods.
- get_most_played
- get_most_watched
- get_most_collected
- get_anticipated
- get_recommended
- get_trending
- get_popular
- get_recommended_for_account
- get_new_shows
- get_new_seasons
- get_watchlisted_for_account
- get_similar
- hide_recommended_for_account (to hide/remove recommended shows for account)
- unhide_recommended_for_account
- list_hidden_recommended_for_account

Fix caching tmdb language list over different runtime instances.
Add episode_count and fix ti_show in tmdb_api person object.
Change set additional properties in get_person trakt_api.

Add tmdb API methods and tvinfo_base.
- get_recommended_for_show
- get_similar
---
fix supported language caching
improve print output (source name) of tvinfo_api_tests
fix tvinfo_api_tests data creation
---
Add code so that it runs with all_test

use mock today() and now() dates
add option to only get new urls mock data
try also to make object creation only when needed
fix person parser in tmdb_api
add search_person test in tvinfo_api_tests
restore mocked methods at the end of the tvinfo_api_tests to prevent other tests to fail when called via all_tests
switch gzip with better lzma compression for mock files (default lib in py3)
move mock files in test unit sub folder
---
Fix trakt method `get_recommended`.
Fix browse trakt tests in tvinfo_api_tests.
Change set episode id in trakt api.
---
Add test_browse_endpoints to tvinfo_api_tests.
---
Add enforce_type to sg_helpers.
Change use enforce str for overviews.
Change remove `if PY2` code sections
Add support for  datetime.time in _make_airtime in tv.py
Refactor tvmaze_api show data setter.
Change test to not allow None for seriesname.
Add additional missing showdata with caller load_data().
Add load_data() to TVInfoShow.
Add guestcast, guestcrew to episodes in pytvmaze lib.
---
Change make seriesid of TVInfoShow a alias property of id.

Add tvinfo tests.
Add search tests.
Add show, person tests.
Change add trakt tests.
Change add tmdb search tests.
tvmaze_api exclude rating from mapping.
Allow None for seriesname.
Fix origin_countries in trakt_api search.
Fix show_type in tvmaze_api.
Fix airtime for episodes in tvmaze_api.
---
Change switch to property instead of legacy dict-like use for trakt search results.
Change optimize speed of get() function.
Fix make BaseTVinfoSeasonnotfound and BaseTVinfoAttributenotfound also a subclass of AttributeError and KeyError.
Change mock get() to work with and without default args just like dict get().
Change add language to tmdb_api search results.
Change improve person search by remote id, by getting the complete persons data when there is only 1 result.
Change trakt API search results to tvinfoshow.
Change search results to TVInfoShow objs in tvmaze_api.
Change simplify poster URL generation for search results.
Change search results to TVInfoShow objs.

Change add tvdb genre links to displayShow.

Change workaround for missing data in person data (series set to None).

Fix add show to characters of person if there is no name on IMDb (set to 'unknown name').

Change add config and icons for linkedin, reddit, wikidata, youtube.

Add TVInfoIDs, TVInfoSocialIDs to Trakt.
Add TVInfoIDs to tmdb_api.
Add TVInfoIDs to tvmaze_api.
add TVInfoIDs to imdb_api.

Change make character name '' if None.

Fix for 'unknown name' persons and characters.

Add contentrating.

Change fill in new fields to get_person results.

----

Change set new in/active dates to network.

Change add active_date, inactive_date to TVInfoNetwork class.

Change add default kwargs to tmdb discover method if no kwargs are set.
Change default: English language shows with first air date greater then today.

Change add slug field to returned data from discover.

Change add 'score' mapped to rating to discover returned results.

Fix valid_data for discover method.

Change add result_count to discover.

Change add _sanitise_image_uri to discover method.

Fix convert_person.

Change add missing  _sanitise_image_uri for images in some places.

Fix crew.

Change return type of tvinfo base: discover to list tvinfoshow.

Fix people remote id search.
Change add tmdb person id search.

Change fix people endpoint fieldname changes.

Change add biography to person object.

Change move 401 expired token handling into TvdbAuth class.

Change get new token if old token is expired.

Change add raise error if episodes fallback fails to load data.
Change add break if no valid_data to absolute and alternative numberings.
Change add filter only networks.
Change add new required parameter meta=translations to get translated (includes the original language) show overviews.
Change add check if show is set for person compare.
Fix person update properties with no show set.
Change add person image.

Change add alternative episode orders.
Change add alt_ep_numbering to TVINFO_Show.
Change add old interface for dvd order.

Change add trakt slug tvinfo search test cases.

Change add mock for old tvdb get new token.

Change old lib to newer tvinfo data.

Fix person id (not available on old api).

Change more places to new TVInfoAPI interface.
2023-05-03 00:43:59 +01:00
JackDandy
5ff18a8652 Add try_date for use in attempting conversion of unspecified date format types birthdate, deathdate, aired.
Change tweaks, remove one warn, order imports.
Change tidy up of other warnings, mismatched types, typos, a strange arg issue with deepcopy, and PEP8.
Bug fix, bad key in get_item for TVInfoSocialIDs.

Fix ambiguities of `show` used in sg versus external uses.

Change add cast, crew type mappings
Change only take Main Actors, Hosts, Interviewers, Presenters.
2023-05-03 00:43:58 +01:00
Prinz23
0fbf88651d Add language support.
Add new get_languages TVInfo Interface method that returns a list of dicts by the indexer supported languages and the sg_lang map code [{'id': 'lang code', 'name': 'english name', 'nativeName': 'native name', 'sg_lang': 'sg lang code'}].
Add all returned languages to webserve method.
Use new interface parameter language for get_show.
2023-05-03 00:41:08 +01:00
JackDandy
b6b362845d Update Pytvmaze library 2.0.8 (16ed096) → 2.0.8 (81888a5). 2023-04-30 09:15:38 +01:00
JackDandy
fb6ef08f01 Change remove redundant py2 import futures. 2023-04-27 12:53:49 +01:00
JackDandy
73158c9ab8 Update Apprise 1.2.1 (3d07004) → 1.3.0 (6458ab0). 2023-04-27 12:45:24 +01:00
JackDandy
864d8fffac Update feedparser 6.0.10 (6d032b8) → 6.0.10 (859ac57). 2023-04-27 12:35:11 +01:00
JackDandy
ef2d45c4ca Update attr 22.2.0 (a9960de) → 22.2.0 (683d056). 2023-04-27 12:26:44 +01:00
JackDandy
6bdb463147 Update diskcache 5.4.0 (1cb1425) → 5.6.1 (4d30686). 2023-04-27 12:24:16 +01:00
JackDandy
7ea6a684bf Update urllib3 1.26.14 (a06c05c) → 1.26.15 (25cca389). 2023-04-27 12:23:12 +01:00
JackDandy
de209c9acf Update Requests library 2.28.1 (ec553c2) → 2.29.0 (87d63de). 2023-04-27 11:37:11 +01:00
JackDandy
e037e4b53b Update filelock 3.9.0 (ce3e891) → 3.11.0 (d3241b9). 2023-04-27 11:31:45 +01:00
JackDandy
59fba38600 Update Msgpack 1.0.4 (b5acfd5) → 1.0.5 (0516c2c). 2023-04-27 11:30:22 +01:00
JackDandy
1c6a5bb59a Update Tornado Web Server 6.3.0 (7186b86) → 6.3.1 (419838b). 2023-04-27 11:28:07 +01:00
JackDandy
c0adcf5933 Update SimpleJSON 3.18.1 (c891b95) → 3.19.1 (aeb63ee). 2023-04-12 13:38:43 +01:00
JackDandy
01045f22de Merge branch 'main' into dev 2023-04-12 10:20:48 +01:00
Prinz23
49f6c99e0a Change handle exceptions thrown from pkg_resources parsing newly extended working set modules not even used by SG.
Fix parsing shows where multiple same names are in SG and show_obj is set for parser.
Change update fallback zoneinfo to 2023c.
Change update gitignore.
2023-04-12 10:17:48 +01:00
JackDandy
ae4173e8c0 Change py2 unicode into f-strings or simple strings where appropriate.
Change use specific logger functions for debug, warning, error.
2023-03-08 14:22:40 +00:00
JackDandy
9d8462f4ef Update Tornado Web Server 6.2.0 (a4f08a3) → 6.3.dev1 (7186b86). 2023-03-08 14:12:37 +00:00
JackDandy
71a0203c02 Update package resource API 67.3.2 (b9bf2ec) → 67.5.1 (f51eccd). 2023-03-08 14:07:48 +00:00
JackDandy
664d9b0129 Update urllib3 1.26.13 (25fbd5f) → 1.26.14 (a06c05c) 2023-03-07 00:57:33 +00:00
JackDandy
e08baa4f0b Update html5lib 1.1 (f87487a) → 1.2-dev (3e500bb). 2023-03-06 23:55:41 +00:00
JackDandy
9fe62aa486 Change improve perf by using generators with any. 2023-03-06 23:54:52 +00:00
JackDandy
ec874504de Change rename db variables/functions. 2023-02-24 15:19:46 +00:00
JackDandy
32987134ba Change codebase cleanups.
Cleanup most init warnings.
Cleanup some vars, pythonic instead of js.
Some typos and python var/func names for Scheduler.
Remove legacy handlers deprecated in 2020.
Remove some legacy tagged stuff.
Cleanup ConfigParser and 23.py
Change cleanup vendored scandir.
Remove redundant pkg_resources.py in favour of the vendor folder.
Remove backports.
Remove trakt checker.
Change remove redundant WindowsSelectorEventLoopPolicy from webserveInit.
Cleanup varnames and providers
Various minor tidy ups to remove ide warnings.
2023-02-24 15:17:56 +00:00
Prinz23
8ddffb7882 Change py2 deprecation cleanups.
Remove py2 part from _23.py
Remove more mapped stuff.
Replace filter_iter with native filter.
Replace map_iter with native map.
Remove unidecode from _23 (empty wrapper on py3).
Remove map_list and replace with native list(map( for performance reasons.
Replace filter_list with list(filter.
Replace list_keys with list(.
Replace list_values with list(...values()).
Replace list_items with list(....items()).
Replace ordered_dict with dict.
Fix tvinfo base type docs.
Remove py2 parts from sg_futures.
Remove scandir lib ...  it's a sub module of os in py3.
Remove PY2 stuff.
Ignore unknown ids for characters/persons.
Fix tvdb image parsing.
Ignore unknown id sources on person page.
2023-02-21 01:01:04 +00:00
JackDandy
0989a51e85 Merge branch 'main' into dev 2023-02-20 23:35:13 +00:00
JackDandy
8698c9b2df Update UnRar x64 for Windows 6.20 → 6.21 2023-02-20 23:31:44 +00:00
JackDandy
8656c087cd Merge branch 'main' into dev 2023-02-18 20:34:12 +00:00
Prinz23
a0099da56b Fix show view edit language.
Fix reload show data if requested language changes.
Fix broken lang in tvdb api.
Change use language in all get_show tvinfo data calls.
Fix TMDB show language fallback check.
Fix add requested_language to tvinfo show cache.
Fix reset loaded statuses of cached show.
Fix TVDb image parsing.
2023-02-18 20:13:46 +00:00
JackDandy
6e859f6f0c Update package resource API 63.2.0 (3ae44cd) → 67.3.2 (b9bf2ec). 2023-02-17 01:24:35 +00:00
JackDandy
9ce86f915c Merge branch 'main' into dev 2023-02-16 18:32:22 +00:00
Prinz23
93f79c116a Fix network for persons. 2023-02-16 18:30:10 +00:00
JackDandy
dac9f2cdff Merge branch 'main' into dev 2023-02-15 14:03:29 +00:00
JackDandy
39f0539439 Fix updating with running virtualenv. 2023-02-15 13:37:20 +00:00
JackDandy
2779c60f42 Change remove calls to legacy py2 fix encoding function.
Change various code cleanups, e.g. replace CamelCase with pythonic casing.
2023-02-10 21:40:19 +00:00
Prinz23
c521792c3d Fix TMDB language caching. 2023-02-10 15:45:11 +00:00
JackDandy
1cdba12ac6 Update Apprise 0.8.5 (55a2edc) to 1.2.1 (3d07004). 2023-02-09 14:44:30 +00:00
JackDandy
75136bc08e Update pytz 2016.6.1/2016f → 2022.7.1/2022g (d38ff47). 2023-02-09 14:43:49 +00:00
JackDandy
6daffc36de Update dateutil 2.8.1 (c496b4f) → 2.8.2 (28da62d). 2023-02-09 14:42:53 +00:00
JackDandy
7768ec9d59 Update package resource API 49.6.0 (3d404fd) → 63.2.0 (3ae44cd). 2023-02-09 14:42:16 +00:00
JackDandy
5ea3ea8556 Update soupsieve 2.0.2.dev (05086ef) → 2.3.2.post1 (792d566). 2023-02-09 14:41:52 +00:00
JackDandy
53c403876d Update functools_lru_cache 1.6.1 (2dc65b5) → 1.6.2 (2405ed1). 2023-02-09 14:41:22 +00:00
JackDandy
682c6dae7a Update Beautiful Soup 4.9.3 (r593) → 4.11.1 (r642). 2023-02-09 14:38:56 +00:00
JackDandy
ec0205fc47 Update chardet packages 4.0.0 (b3d867a) → 5.1.0 (8087f00). 2023-02-09 14:38:23 +00:00
JackDandy
bd0c014bcd Update pyjsparser 2.7.1 (5465d03) → 2.7.1 (cbd1e05). 2023-02-09 14:37:52 +00:00