Commit graph

179 commits

Author SHA1 Message Date
JackDandy
c7937d0891 Update Tornado Web Server 6.4.1 (2a0e1d1) → 6.4.2 (27b3252). 2024-11-25 13:15:12 +00:00
Prinz23
270fef4fdf fix dedupe characters in tvdb api v4 2024-10-07 01:24:46 +01:00
JackDandy
5a11b23121 Change add role deduplication, and tidy up 2024-10-07 01:24:46 +01:00
Prinz23
b59084d27d Add TVDb person search
fix handle tvdb error on browse tvdb page
adjust for datetime import changes in webserve
remove any references to sickgear in tvdb api libs
replace deprecated old method_whitelist with allowed_methods
2024-10-07 01:24:46 +01:00
JackDandy
da9a6a829c Change couple more consistency improvements.
Change undo one simplification too far. Reasoning, the var is used later on in code, the natural eyeline is to look for the variable defined on the left above, and the declaration was hidden mid line due to walrus. Therefore, this makes it take longer to scan over code and slows down readability, i Bet this will be written about in some blog very soon.
Add ranking to scores on card
Change use new refactored overview cleaner
2024-10-07 01:24:45 +01:00
Prinz23
9f875601e4 Fix for caching.
Simplification.
2024-10-07 01:24:45 +01:00
JackDandy
b4a16b40b0 Change simplify get_cache calls.
Change replace double negative "not no_" with singular positive usage.
Change remove unused mock data.
2024-10-07 01:24:45 +01:00
Prinz23
bc1eff8d3b Change add get_cached_or_new to simplify data caching.
Change improve performance, don't fetch cached data if no cache data is wanted.
2024-10-07 01:24:44 +01:00
JackDandy
4b0f437923 Change refactoring, changes for consistency, code style, and improve readability. 2024-10-07 01:24:44 +01:00
Prinz23
7c32dc12e4 Change support languages in show search.
Add display all id links for persons.
Fix ensure overview in search results are type str.
Change pickle_protocol to 5 which is supported by 3.8+
Change update mock data to pickle protocol 5.
Fix for if mock data files are corrupted.
Change add property has_text to Images.
Change set has_text from includesText data field (currently unused on API).
Fix rebase errors.
Change use Walrus for cache keys and get_data.
2024-10-07 01:24:44 +01:00
JackDandy
b55b29732b Fix py2 deprecation cleanups added exclusively by TvdbV4 code.
Refactor `timestamp_near` to `SGDatetime.timestamp_near`
---
Simplify enforce_type + clean_data to clean_str.
Change simplified all but one enforce_type use case.
---
Add tvdb, trakt slug tvinfo search test cases

Change direct tvdb slug search support via new api endpoint

Fix origin_countries in tvdb_api_v4.
---
Add new TV_Maze id to show obj ids in tvdb_api_v4.
Fix a bug parsing social ids for tvshows in tvdb_api_v4.
Change add language support to search API and tvdb_api_v4.
Change add `updated_at` to artwork on tvdb_api_v4.
Change add `finale` type to episodes.

Change add method `get_top_rated` to tvdb_api_v4.
optional params...
- year=... argument to get only top rated of given year, if not it's all time
Change returns result for shows until same day last year.

Add youtube, reddit, fansite, tiktok, linkedin, wikidata to tv.py
Add tiktok to indexer_config.
Add fansite to tvdb_api_v4.
Aadd fansite to TVInfoSocialIDs.
Add source type parsing and add linkein to tvdb_api_v4.
Add linkedin.
Add tiktok parser to tvdb_api_v4.

Change v4 to TVInfoIDs, TVInfoSocialIDs.

Change add new id data.

Add contentrating.

Change fill in new fields to get_person results.
----
Change implement discover endpoint in tvdb_api_v4.

Change filter '0000' year for firstaired field in tvdb_api_v4.

Change use the default_season_type from api for website fallback.

Change remove unneeded _auth_time.

Add backup fetch for episode data.

Change add multiple space remove to clean_data.
Change move _get_tvdb_id to central function.
Change fix minor warnings, code tidy + DRY.
Change remove the show-edit option `Use DVD titles and numbers` until ready with multi TVInfo source.
Add try_date and use to attempt 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.
Fix add data sanitisation of image field.
Change make set_episode code more readable.
Change fix final two warnings in api v4.
Fix an API can return falsy as firstaired which crashes adding a show via load_from_tv_info() (The Andrew Marr Show@tvdbv4).

Add cast, crew type mappings

Only take Main Actors, Hosts, Interviewers, Presenters

Change increase viewagble history menu items from 13 to 15.
2024-10-07 01:24:43 +01:00
Prinz23
79f0c829a7 Add TVDb v4.
Add person search and get_person.
Add id search.
Add show characters.
Add episodes.
Add basic show info.
Add TVDB_API_CONFIG to tvdb_api_v4 and assign it in indexer_config.
Add auth to tvdb_api_v4.
For sorting networks use '0000-00-00' instead of activeDate if not set.
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.
Add episode overview
Add fallback to 'id' field which is str now for search tvdb_id.
Add missing alias parsing.
Filter out episode characters.
Add IMDb and TMDB id search.
Add IMDb search to person search.
Add missing data to person and character objects.
Add include error description if an error is raised in tvdb_api_v4.
Add error handling for creating episode thumbs and nfo's, and on show level.
Add absolute numbering.
Add ids to person data.
new mock data
2024-10-07 01:24:43 +01:00
JackDandy
eef5ddb171 Merge branch 'main' into dev 2024-10-07 00:35:28 +01:00
JackDandy
d2f7bb6104 Fix Fanart.tv and CF data fetch.
Fix TVC images.
Change center the default card background and hide hover text decoration.
Change correct typos
2024-10-07 00:32:58 +01:00
Prinz23
f2f39568dd Change min required Python version to 3.9
Change add support for  Python 3.9.20, 3.10.15, 3.11.10, 3.12.7
Update zoneinfo to 2024b.
Change improve config.ini save failure messages.
Change add '-f' to copy_file command for 'posix' systems.
Change add '.avif' extensions as valid image type (used by tvc cards)
Change hide lazy load animation when loading fails (unsupported image format)
2024-10-07 00:28:05 +01:00
JackDandy
c6bfc9c3d1 Merge branch 'main' into dev 2024-08-10 12:56:58 +01:00
Prinz23
0c0e25e73c Change allow Python 3.12.5
Fix person ids fetching
Fix wrong added death dates (by allowing overwriting deathday with None if birthday is on source)
Fix parsing changes to IMDb bio
Update test data
- Change improve efficiency when saving config.ini
Change prevent saving unchanged config.ini
Change add flushing to config.ini file saving (configobj hack)
Change add ConfigEvents queue for saving the config ini more efficiently
Change catch other errors for saving config
- Change improve efficiency when saving viewshow glide
Change don't call '/home/set-display-show-glide' in the first place if there  is no reason (params) to do so
Change add sanity check for set_display_show_glide, only save changed values
2024-08-10 12:39:12 +01:00
JackDandy
07799f6dd9 Merge branch 'main' into dev 2024-06-26 18:26:57 +01:00
Prinz23
c4d3577ba3 Fix TVmaze parser to only directly map properties in map list
Change add TMDB ratings alias in _convert_show
2024-06-26 18:16:49 +01:00
JackDandy
611097de1a Merge branch 'main' into dev 2024-06-26 01:20:52 +01:00
Prinz23
165144ca5b fix type of self.plays_self 2024-06-26 01:14:16 +01:00
JackDandy
83d2aa32a2 Update package resource API 68.2.2 (8ad627d) → 70.1.1 (222ebf9). 2024-06-26 00:45:48 +01:00
JackDandy
0f7ad2da59 Update filelock 3.14.0 (8556141) → 3.15.4 (9a979df). 2024-06-25 23:24:17 +01:00
JackDandy
de3d29c818 Update urllib3 2.2.1 (54d6edf) → 2.2.2 (27e2a5c). 2024-06-25 23:04:24 +01:00
JackDandy
53cc79ee8c Change popup on browse shows person view to hide on unfocus when long user adjustable scrollable lists of character roles are used, e.g. Evan Peters in AHS.
Change hide ratings on browse shows cards in person view for TVmaze as not provided.
Change replace test code for consistency at "Other shows" for sub title across all sources.
Make overview parser centralised for consistent reusability.
Fix add dynamic fetch to fill show data on person view when a role is non main and the API does not expose.
Add logic for when there are no genres.
Fix mitigate MRU issue where browse default and param person view conflicted.
Change make TMDB person genre lowercase for consistency with other sources.
Filter out TMDB roles that have no actual name.
Add expose `show_type` to TVmaze api for cases where genres are None (e.g. Taylor Swift vs. Scooter Braun).
Fix images on Shows -> MC cards view.
Change ensure genres on NE browse shows view are lowercase consistent with other sources.
Change browse shows view, replace \r\n in show overviews to a single whitespace on cards.
Change TMDB browse shows expose ratings.
Fix TMDB browse shows use alternative term_vote in drop down.
2024-06-25 20:21:44 +01:00
Prinz23
4e52d2da08 Add try to retrieve TVmaze id for persons
Fix person image scaler
Change make a unified generator for the p_chars var in persons search
Change add plays_self to TMDB, TVmaze, Trakt
Fix TMDb person search page for shows without first aired date (future shows for example)
Add also display guest appearances in TVmaze person search
Add parsing of vote_average / rating for main cast
Add genres to person show data
Fix, auto close qTip if mouse is over nav menu
Change add rating, vote_average, vote_count, popularity to TMDB person characters shows
Change TVmaze character name TBA|D to ''
Change add person gender to Trakt
2024-06-25 20:21:25 +01:00
Prinz23
a6122aae66 Add search on TVmaze, TMDb, or Trakt for other shows with the actor that is viewed on Person page. 2024-06-16 17:03:00 +01:00
JackDandy
cd7804df1e Update apprise 1.6.0 (0c0d5da) to 1.8.0 (81caf92). 2024-06-07 20:34:43 +01:00
JackDandy
16bb30029b Update unidecode module 1.3.6 (4141992) → 1.3.8 (dfe397d). 2024-06-07 17:42:01 +01:00
JackDandy
4572ed367c Update package resource API 68.1.2 (1ef36f2) → 68.2.2 (8ad627d). 2024-06-07 17:19:43 +01:00
JackDandy
5ec9926bd4 Update Send2Trash 1.5.0 (66afce7) → 1.8.3 (91d0698). 2024-06-07 16:56:21 +01:00
JackDandy
c8c6ac83e1 Update Rarfile 4.1a1 (8a72967) → 4.2 (db1df33). 2024-06-07 16:43:38 +01:00
JackDandy
1a830f244e Update pytz 2023.3/2023c (488d3eb) → 2024.1/2024a (3680953). 2024-06-07 16:35:14 +01:00
JackDandy
4abcb950a0 Update diskcache 5.6.3 (323787f) → 5.6.3 (ebfa37c). 2024-06-07 15:56:56 +01:00
JackDandy
75392efb97 Update profilehooks module 1.12.1 (c3fc078) → 1.13.0.dev0 (99f8a31). 2024-06-07 15:47:27 +01:00
JackDandy
cf118e92fc Update attr 23.1.0 (67e4ff2) → 23.2.0 (b393d79). 2024-06-07 15:38:19 +01:00
JackDandy
909fd3d24e Update imdbpie 5.6.4 (f695e87) → 5.6.5 (f8ed7a0). 2024-06-07 13:28:03 +01:00
JackDandy
c645ff464f Update dateutil 2.8.2 (296d419) → 2.9.0.post0 (0353b78). 2024-06-07 11:46:29 +01:00
JackDandy
cdeb702232 Update Tornado Web Server 6.4 (b3f2a4b) → 6.4.1 (2a0e1d1). 2024-06-06 21:17:05 +01:00
JackDandy
d8f1102e79 Update certifi 2024.02.02 → 2024.06.02 2024-06-06 21:05:43 +01:00
JackDandy
8b59094cc3 Update feedparser 6.0.10 (9865dec) → 6.0.11 (efcb89b). 2024-06-06 12:23:53 +01:00
JackDandy
2561cda8ce Update Beautiful Soup 4.12.2 (30c58a1) → 4.12.3 (7fb5175). 2024-06-06 12:00:00 +01:00
JackDandy
5715726b22 Update filelock 3.12.4 (c1163ae) → 3.14.0 (8556141). 2024-06-05 09:37:08 +01:00
JackDandy
a40b0cb46f Update CacheControl 0.13.1 (783a338) → 0.14.0 (e2be0c2). 2024-06-05 09:19:49 +01:00
JackDandy
958318491c Update idna library 3.4 (cab054c) → 3.7 (1d365e1). 2024-06-05 09:06:55 +01:00
JackDandy
2a80663c81 Update urllib3 2.0.7 (56f01e0) → 2.2.1 (54d6edf). 2024-06-05 08:55:43 +01:00
JackDandy
c4c6e989c0 Update Requests library 2.31.0 (8812812) → 2.32.3 (0e322af). 2024-06-05 08:47:14 +01:00
JackDandy
3762bfe8f5 Merge branch 'main' into dev 2024-05-26 23:15:58 +01:00
Prinz23
ccc6134c65 Changes for py3.13 compatibility
Bundle telnetlib_313_and_up 3.13.1 as a fallback import
Remove libnotify cgi import (not sure if there is a good escape replacement)
2024-05-26 23:11:00 +01:00
Prinz23
f745fc0779 Change improve handling of invalid person id for get_person in Trakt indexer
Change stop logging internal 404 Trakt API response
2024-05-26 22:57:12 +01:00