Commit graph

327 commits

Author SHA1 Message Date
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
b4c3af19b8 Merge branch 'feature/UpdateBSoup' into dev 2023-05-28 14:38:31 +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
JackDandy
18370cebab Merge branch 'main' into dev 2023-05-28 08:28:13 +01:00
JackDandy
db58a3c26c Merge branch 'hotfix/3.29.2' 2023-05-28 08:27:17 +01:00
JackDandy
59f83064b9 Fix find show results returned as newest/oldest that are then sorted z to a. 2023-05-28 08:22:26 +01:00
Prinz23
d797d30704 Fix add show "TheTVDB via Trakt" 2023-05-28 07:52:05 +01:00
JackDandy
4cddd40921 Merge branch 'main' into dev 2023-05-27 18:31:41 +01:00
JackDandy
41bd893de9 Merge branch 'feature/ChangeReadme' 2023-05-27 18:21:51 +01:00
JackDandy
5d4920b271 Change editshow imagery. 2023-05-27 18:21:42 +01:00
JackDandy
bf15e092f5 Merge branch 'main' into dev 2023-05-27 16:14:43 +01:00
JackDandy
bcd8c18dad Merge branch 'feature/ChangeReadme' 2023-05-27 16:13:44 +01:00
JackDandy
225968cd0f Change remove deprecated screenie from readme.md 2023-05-27 16:13:31 +01:00
JackDandy
42653df996 Merge branch 'main' into dev 2023-05-26 06:16:57 +01:00
JackDandy
c4dc3ea78c Merge branch 'feature/FixTVDbApiIMDB' 2023-05-26 06:11:01 +01:00
Prinz23
41e4519dbc Fix IMDB fetch from TheTVDb API. 2023-05-26 06:08:40 +01:00
JackDandy
43f64d716e Merge branch 'main' into dev 2023-05-22 00:30:09 +01:00
JackDandy
930b5ed533 Merge branch 'release/3.29.0' 2023-05-22 00:28:06 +01:00
JackDandy
b9cd35357f Prepare release, bump date. 2023-05-22 00:27:20 +01:00
JackDandy
db21bec63d Merge branch 'feature/ChangeFixTvdbApi' into dev 2023-05-22 00:23:23 +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
f0951cd87d Merge branch 'feature/RemoveSingleDispatch' into dev 2023-05-16 14:12:06 +01:00
JackDandy
e08156ce61 Remove singledispatch. 2023-05-16 14:11:34 +01:00
JackDandy
8ac3d82c12 Merge branch 'feature/UpdateTornado' into dev 2023-05-16 11:50:27 +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
d335de1bbb Merge branch 'feature/UpdateSend2trash' into dev 2023-05-08 21:11:08 +01:00
JackDandy
eb2a7c405b Update Send2Trash 1.8.1b0 (0ef9b32) → 1.8.2 (0244f53). 2023-05-08 21:10:41 +01:00
JackDandy
435d6cb39c Merge branch 'feature/UpdateCertifi' into dev 2023-05-08 20:59:28 +01:00
JackDandy
4dffb5dad0 Update certifi 2022.12.07 → 2023.05.07 2023-05-08 20:58:55 +01:00
JackDandy
cc007da2ee Merge branch 'feature/UpdateFilelock' into dev 2023-05-05 15:08:35 +01:00
JackDandy
a97955ed94 Update filelock 3.11.0 (d3241b9) → 3.12.0 (b4713c9). 2023-05-05 15:08:05 +01:00
JackDandy
bb9d47026a Merge branch 'feature/FixTests' into dev 2023-05-04 23:33:32 +01:00
Prinz23
ec0dd62865 Fix name_parser_tests and webapi_tests. 2023-05-04 23:33:07 +01:00
JackDandy
c75ef36cfe Fix tv test to init recently added ReleaseMap.
Fix double use of var `result` overwrites the return value and causes an error in _parse_custom_exceptions.
Change remove Python 3.7 from CI
2023-05-04 22:57:16 +01:00
JackDandy
2c784e215c Merge branch 'feature/AddTmdbCards' into dev 2023-05-03 14:12:30 +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
7acddd88b2 Merge branch 'feature/ChangeRenameEpisodes' into dev 2023-05-03 00:38:25 +01:00
JackDandy
d649d49990 Change improve tba regex and logic readability. 2023-05-02 23:46:03 +01:00
Prinz23
2ef0f92d84 Change conditional logic simplification.
Change no need to rename if there is no file.
Change don't rename if basename is unchanged.
Change check if episode filename has changed.
2023-05-02 22:49:39 +01:00
JackDandy
1eec1e7492 Add to config/media-process/File Handling, "Rename TBA" and "Rename any".
Change exclude Trakt notifier from redundant library updates when renaming files.
Change filename checker regex to be less strict.
Change remove naming pattern code duplication.
2023-05-02 22:47:52 +01:00
Prinz23
a323eed822 Add rename "TBA" files to actual episode name from TV info source changes.
Add setting vars to rename episodes when tba type default or on any change.
2023-05-02 09:39:09 +01:00
JackDandy
a7cbf9e574 Merge branch 'feature/UpdatePytvmaze' into dev 2023-04-30 09:16:10 +01:00
JackDandy
b6b362845d Update Pytvmaze library 2.0.8 (16ed096) → 2.0.8 (81888a5). 2023-04-30 09:15:38 +01:00
JackDandy
1f3e1416d4 Merge branch 'feature/ChangeShowTime' into dev 2023-04-27 12:56:27 +01:00
JackDandy
8561e5ac0c Change view-show text "invalid timeformat" to "time unknown". 2023-04-27 12:56:12 +01:00