Commit graph

551 commits

Author SHA1 Message Date
JackDandy
891b0d2d0f Merge branch 'feature/FixNoCharacterName' into dev
Some checks failed
Python Unit Tests / windows (windows-latest, 3.10) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.11) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.12) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.8) (push) Has been cancelled
Python Unit Tests / windows (windows-latest, 3.9) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.8) (push) Has been cancelled
Python Unit Tests / linux (ubuntu-latest, 3.9) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.10) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.11) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.12) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.8) (push) Has been cancelled
Python Unit Tests / macos (macos-latest, 3.9) (push) Has been cancelled
2024-10-07 11:24:41 +01:00
Prinz23
1b08ec8c67 if add and update cast that has no character name 2024-10-07 04:14:44 +02:00
JackDandy
29047e44d3 Merge branch 'feature/AddTvdbV4' into dev
Some checks are pending
Python Unit Tests / windows (windows-latest, 3.10) (push) Waiting to run
Python Unit Tests / windows (windows-latest, 3.11) (push) Waiting to run
Python Unit Tests / windows (windows-latest, 3.12) (push) Waiting to run
Python Unit Tests / windows (windows-latest, 3.8) (push) Waiting to run
Python Unit Tests / windows (windows-latest, 3.9) (push) Waiting to run
Python Unit Tests / linux (ubuntu-latest, 3.10) (push) Waiting to run
Python Unit Tests / linux (ubuntu-latest, 3.11) (push) Waiting to run
Python Unit Tests / linux (ubuntu-latest, 3.12) (push) Waiting to run
Python Unit Tests / linux (ubuntu-latest, 3.8) (push) Waiting to run
Python Unit Tests / linux (ubuntu-latest, 3.9) (push) Waiting to run
Python Unit Tests / macos (macos-latest, 3.10) (push) Waiting to run
Python Unit Tests / macos (macos-latest, 3.11) (push) Waiting to run
Python Unit Tests / macos (macos-latest, 3.12) (push) Waiting to run
Python Unit Tests / macos (macos-latest, 3.8) (push) Waiting to run
Python Unit Tests / macos (macos-latest, 3.9) (push) Waiting to run
2024-10-07 01:24:59 +01:00
JackDandy
33c3c9efcd Change highlight main UI changes with TVDBv4. 2024-10-07 01:24:47 +01: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
9410f3f219 Merge branch 'main' into dev 2024-10-07 01:12:04 +01:00
JackDandy
5b830af8b9 Merge branch 'hotfix/3.32.10' 2024-10-07 01:11:45 +01:00
Prinz23
363cb49348 fix IndentationError(s) 2024-10-07 01:09:34 +01:00
JackDandy
c05ccd3b51 Merge branch 'main' into dev 2024-10-07 01:01:05 +01:00
JackDandy
f91ceb5e4b Merge branch 'hotfix/3.32.9' 2024-10-07 01:00:15 +01:00
JackDandy
f343765302 Fix indendation. 2024-10-07 00:59:57 +01:00
JackDandy
eef5ddb171 Merge branch 'main' into dev 2024-10-07 00:35:28 +01:00
JackDandy
c0e8505eca Merge branch 'hotfix/3.32.8' 2024-10-07 00:33:40 +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
176abcdd4d Merge branch 'main' into dev 2024-08-13 12:29:15 +01:00
JackDandy
fcf5ccf236 Merge branch 'hotfix/3.32.7' 2024-08-13 12:28:31 +01:00
Prinz23
69eea899ef Change add CONFIG_LOADED var to prevent saving config.ini before it's fully loaded
Change providers to save config.ini if needed at the end of init stage 1
2024-08-13 12:28:06 +01:00
JackDandy
e67f74a262 Change password manager friendly login form. 2024-08-13 12:23:10 +01:00
JackDandy
76871e8628 Merge branch 'main' into dev 2024-08-12 18:11:02 +01:00
JackDandy
66c715115c Merge branch 'hotfix/3.32.6' 2024-08-12 18:09:59 +01:00
Prinz23
2dcf1854eb Fix saving config.ini after restart and startup
make save_config fallback to single threaded save use
2024-08-12 18:09:12 +01:00
JackDandy
3cabf3f9d7 Merge branch 'main' into dev 2024-08-12 00:19:37 +01:00
JackDandy
689296c4ac Merge branch 'hotfix/3.32.5' 2024-08-12 00:17:33 +01:00
Prinz23
6a65cebc06 Fix to create initial config.ini when one doesn't exist
Fix saving config.ini during startup (update or creating)
2024-08-12 00:16:52 +01:00
JackDandy
c6bfc9c3d1 Merge branch 'main' into dev 2024-08-10 12:56:58 +01:00
JackDandy
c37a753c6a Merge branch 'hotfix/3.32.4' 2024-08-10 12:39:49 +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
Prinz23
80cffd7cef Change add Gitlab tests 2024-08-10 12:36:48 +01:00
JackDandy
13763cab4b Change person cards to not display "eps" when number of eps is unknown 2024-06-27 00:00:16 +01:00
JackDandy
07799f6dd9 Merge branch 'main' into dev 2024-06-26 18:26:57 +01:00
JackDandy
d5c0fa3c07 Merge branch 'hotfix/3.32.3' 2024-06-26 18:25:47 +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
cda6fb6b2c Fix votes on shows/IMDb cards. 2024-06-26 18:07:24 +01:00
JackDandy
47cf0f5eca Merge branch 'main' into dev 2024-06-26 07:21:40 +01:00
JackDandy
fd87f18ab0 Merge branch 'hotfix/3.32.2' 2024-06-26 07:20:57 +01:00
JackDandy
552e4f74b1 Fix systemd linefeed typo. 2024-06-26 07:20:42 +01:00
JackDandy
611097de1a Merge branch 'main' into dev 2024-06-26 01:20:52 +01:00
JackDandy
fada1cf299 Merge branch 'hotfix/3.32.1' 2024-06-26 01:18:13 +01:00
Prinz23
bfd9f50d76 Fix update tvinfo test data 2024-06-26 01:17:25 +01:00