Commit graph

92 commits

Author SHA1 Message Date
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
Prinz23
5c6e911896 sqlite3.connect positional args are deprecated for more then 1 parameter and will be removed in 3.15
https://docs.python.org/dev/whatsnew/3.13.html#deprecated
2023-10-22 01:53:18 +02:00
Prinz23
73d1ae56a9 Change improve Emby status check.
By preventing exceptions from wrong type comparison in a fetched response
2023-10-21 14:20:41 +01:00
JackDandy
674b17a796 Add metadata source attribution in footer 2023-10-12 11:48:10 +01:00
JackDandy
d5815b4471 Change bad anon redirect service for an open source service. 2023-10-10 07:28:45 +01:00
JackDandy
26e5de33c7 Fix for recent datetime refactor 2023-09-19 13:28:31 +01:00
JackDandy
6bda4d7c8f Merge branch 'main' into dev 2023-09-19 12:58:46 +01:00
JackDandy
6a84f28d69 Fix Metacritic cards and Linux CI tests
Fix updated source
2023-09-19 12:56:14 +01:00
JackDandy
674a2bd755 Merge branch 'main' into dev 2023-09-18 12:56:23 +01:00
JackDandy
879136d00b Fix Emby notifier library update.
Change add server type check (Emby/Jellyfin).
Change add use of media location for update.
Change accept any 2xx code as success.
Change code cleanup
2023-09-17 23:25:50 +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
af37db4aad Merge branch 'main' into dev 2023-09-12 08:12:07 +01:00
JackDandy
45f2ca848f Change omgwtfnzbs domain 2023-09-12 08:10:09 +01:00
Prinz23
a3e351f282 fix datetime refactor issues 2023-09-08 15:09:52 +02:00
JackDandy
b861ccd088 Change migrate use of .utcnow() to .now(timezone.utc). 2023-09-06 15:27:34 +01:00
Prinz23
96fc7d1c9d Change sort episodes when set to wanted on display show page 2023-09-05 23:30:19 +01:00
Prinz23
6d8a209f2a sort backlog and manual segment search results episode number 2023-09-05 23:28:57 +01:00
Prinz23
206c5b7893 Add ignore subfolders that contain a file called '.sickgearignore' 2023-07-13 20:28:19 +01:00
Prinz23
ca6e399ae9 Add config.ini backup
try to validate saved config.ini
try to use backed up config.ini file if saving fails
check config.ini copy before compressing it to backup
2023-07-13 20:24:08 +01:00
Prinz23
e4ca609f72 Change recreate metadata files when renaming episodes.
Add TBC (to be confirmed) as a possible unnamed episode name pattern.
Don't save episode object to DB in rename during meta data creation (redundant, since it's saved after in rename).
2023-06-07 14:37:29 +01:00
Prinz23
6df46175f2 Fix setting airtime timezone for "Wanted" episodes during auto search. 2023-06-07 14:11:26 +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
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
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
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