Commit graph

120 commits

Author SHA1 Message Date
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
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
Prinz23
363cb49348 fix IndentationError(s) 2024-10-07 01:09:34 +01:00
JackDandy
f343765302 Fix indendation. 2024-10-07 00:59:57 +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
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
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
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
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
cda6fb6b2c Fix votes on shows/IMDb cards. 2024-06-26 18:07: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
JackDandy
5f67570632 Merge branch 'main' into dev 2024-06-23 19:22:13 +01:00
Prinz23
d1d06ba914 Fix parsing show names that contain the word "parts" by making parser more restrictive. 2024-06-23 19:20:02 +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
3b922bdeb2 Change growl notifier location for Apprise update refactor. 2024-06-07 21:00:11 +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
JackDandy
386c066ed9 Update UnRar x64 for Windows 7.00 → 7.0.1
Fix FST provider exception raised when no title
2024-05-25 09:37:05 +01:00
Prinz23
794366c967 fix torrent multiresult because of parameter name change 2024-05-12 14:43:56 +02:00
JackDandy
e9653feaa8 Merge branch 'main' into dev 2024-03-24 20:39:53 +00:00
Prinz23
afa9aae744 Change enable legacy double quote support for SQLite when using Python 3.12+ 2024-03-24 20:35:38 +00:00
JackDandy
ec8ee500e4 Fix external site links that used a deprecated config/general/advanced/"Anonymous redirect". 2024-03-24 17:39:58 +00:00
JackDandy
b45689c948 Merge branch 'main' into dev 2024-03-16 23:22:25 +00:00
JackDandy
1c0eb5acb8 Fix properly handle an error condition during process tv 2024-03-11 02:45:17 +00:00
JackDandy
a24720990c Merge branch 'main' into dev 2024-03-03 23:37:29 +00:00
Prinz23
3c639e972a Fix unnecessary conversion of datetime object into str and back 2024-03-03 23:30:13 +00:00
JackDandy
4f5fbbfea9 Fix trending url_path for next_episode cards. 2024-03-03 22:52:05 +00:00
JackDandy
7565d058f9 Merge branch 'main' into dev 2024-03-03 22:30:28 +00:00
JackDandy
6cf137eaf0 Fix menu Shows/"Next Episode Cards" 2024-03-03 22:29:22 +00:00
JackDandy
41e136fca1 Merge branch 'main' into dev 2024-02-13 11:13:45 +00:00
Prinz23
7f51b9ce4d Change prevent git update issue.
Add '--no-rebase' to git pull (update) command to prevent issues with git 2.37+
2024-02-13 11:07:07 +00:00
JackDandy
29dd2e84c6 Merge branch 'main' into dev 2024-01-02 11:14:42 +00:00
JackDandy
f13d2b735b Fix Shows IMDb cards to new layout at IMDb 2024-01-02 11:08:39 +00:00
Prinz23
48664c9de5 fix missing parameter for torrent search caused by new _pick_best_result_helper helper 2023-12-13 21:14:59 +01:00
JackDandy
c30015b136 Merge branch 'main' into dev 2023-12-10 05:14:16 +00:00
Prinz23
dcb4d00b14 new logic use multi episode results as fallback if it's better quality or has a episode that has not a single episode result
fix multiple episode releases apply filters
2023-12-10 05:02:12 +00:00
Prinz23
704ce8d691 fix logging existing quality/status logging 2023-12-01 00:57:15 +01:00
Prinz23
afd696366a don't change episodes to UNKNOWN status when loading data from tvinfo 2023-11-06 21:02:01 +01:00
Prinz23
aeb3f7b0dc use context manager for scandir as recommended since python 3.6 2023-10-31 17:30:58 +01:00
Prinz23
957acb9c69 make sure that scantree is using key words arg 2023-10-28 10:09:36 +02:00
Prinz23
67d73fa401 revert has_media_ext ... since these don't apply to filenames (dirs only) 2023-10-28 02:58:19 +02:00
Prinz23
9c5e71d677 add exclude_dirs parameter to scantree 2023-10-28 02:58:18 +02:00
JackDandy
5e5c5313b5 Fix media process. 2023-10-27 13:02:46 +01:00
JackDandy
cc117e909b Add ignore Plex extras.
https://support.plex.tv/articles/local-files-for-tv-show-trailers-and-extras/
2023-10-25 22:55:43 +01:00