Commit graph

42 commits

Author SHA1 Message Date
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
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
fb6ef08f01 Change remove redundant py2 import futures. 2023-04-27 12:53:49 +01:00
Prinz23
1f7e467e07 Change minimum required Python to version 3.8 2023-04-27 12:52:02 +01:00
JackDandy
8223edb2cf Add config to change media process log message if there is no media to process. 2023-04-27 12:50:24 +01:00
JackDandy
8e8568adb3 Change add jobs to centralise scheduler activities.
Change refactor scene_exceptions.
2023-04-27 12:47:00 +01:00
JackDandy
01045f22de Merge branch 'main' into dev 2023-04-12 10:20:48 +01:00
Prinz23
49f6c99e0a Change handle exceptions thrown from pkg_resources parsing newly extended working set modules not even used by SG.
Fix parsing shows where multiple same names are in SG and show_obj is set for parser.
Change update fallback zoneinfo to 2023c.
Change update gitignore.
2023-04-12 10:17:48 +01:00
JackDandy
41a72bdb4d Change allow Python 3.11.3, 3.10.11
Change fix show id log output.
Remove deprecated var.
2023-04-12 10:16:32 +01:00
JackDandy
ffff95fe34 Change add Rarbg UHD search category. 2023-04-02 23:37:15 +01:00
JackDandy
1e161f376d Fix UI by marking resource as unavailable if cannot determine its free space.
Change replace copyFile placeholder code with copy_file override.
Change replace moveFile placeholder code with move_file override.
Change replace tryInt placeholder code with try_int override.
Change refactor disk free space logic.
Change restore min_output logic.
2023-03-14 01:22:09 +00:00
Prinz23
344fb19575 Fix unavailable paths.
Change catch potential exception because of unmounting of path during finding mount point.
Change add disabled message to webapi for freespace
2023-03-13 11:44:25 +00:00
Prinz23
e239b81a18 Change optionally add disk free space in response to three Web API endpoints.
Change increase API version number to 15.
Add actually use mount points to get disk free space.
Add optional "freespace" parameter to endpoints: sg.getrootdirs, sg.addrootdir, sg.deleterootdir
Change update help of affected endpoints.
Fix explicitly save rootdirs after adding or deleting via Web API.
2023-03-12 02:20:08 +00:00
JackDandy
68b8cbcdde Change deprecate processEpisode used by nzbToMedia to advise how to configure API instead. 2023-03-10 01:52:51 +00:00
JackDandy
48d4b505a3 Change re-add deprecated endpoint used by external scripts. 2023-03-09 13:51:48 +00:00
JackDandy
bd610ca2eb Merge branch 'main' into dev 2023-03-08 23:37:48 +00:00
Prinz23
1955313edc Change meta providers to new TVInfoAPI get_show to make sure language is used. 2023-03-08 23:33:58 +00:00
JackDandy
19f0a951e5 Refactor timestamp_near to SGDatetime.timestamp_near. 2023-03-08 17:36:24 +00:00
JackDandy
ae4173e8c0 Change py2 unicode into f-strings or simple strings where appropriate.
Change use specific logger functions for debug, warning, error.
2023-03-08 14:22:40 +00:00
JackDandy
9d8462f4ef Update Tornado Web Server 6.2.0 (a4f08a3) → 6.3.dev1 (7186b86). 2023-03-08 14:12:37 +00:00
JackDandy
9fe62aa486 Change improve perf by using generators with any. 2023-03-06 23:54:52 +00:00
JackDandy
99aa339bbf Add logging around the restart/shutdown event. 2023-03-06 23:52:43 +00:00
JackDandy
c076c495ee Merge branch 'main' into dev 2023-03-06 23:46:21 +00:00
Prinz23
89cd650b35 Fix "Change File Date" not using timestamp of episode if available. 2023-03-06 23:43:46 +00:00
JackDandy
f91e579f37 Merge branch 'main' into dev 2023-03-05 00:27:01 +00:00
Prinz23
3a5f0537c0 Add UHD Bluray. 2023-03-05 00:22:27 +00:00
JackDandy
ec874504de Change rename db variables/functions. 2023-02-24 15:19:46 +00:00
JackDandy
32987134ba Change codebase cleanups.
Cleanup most init warnings.
Cleanup some vars, pythonic instead of js.
Some typos and python var/func names for Scheduler.
Remove legacy handlers deprecated in 2020.
Remove some legacy tagged stuff.
Cleanup ConfigParser and 23.py
Change cleanup vendored scandir.
Remove redundant pkg_resources.py in favour of the vendor folder.
Remove backports.
Remove trakt checker.
Change remove redundant WindowsSelectorEventLoopPolicy from webserveInit.
Cleanup varnames and providers
Various minor tidy ups to remove ide warnings.
2023-02-24 15:17:56 +00:00
Prinz23
8ddffb7882 Change py2 deprecation cleanups.
Remove py2 part from _23.py
Remove more mapped stuff.
Replace filter_iter with native filter.
Replace map_iter with native map.
Remove unidecode from _23 (empty wrapper on py3).
Remove map_list and replace with native list(map( for performance reasons.
Replace filter_list with list(filter.
Replace list_keys with list(.
Replace list_values with list(...values()).
Replace list_items with list(....items()).
Replace ordered_dict with dict.
Fix tvinfo base type docs.
Remove py2 parts from sg_futures.
Remove scandir lib ...  it's a sub module of os in py3.
Remove PY2 stuff.
Ignore unknown ids for characters/persons.
Fix tvdb image parsing.
Ignore unknown id sources on person page.
2023-02-21 01:01:04 +00:00
JackDandy
7f03b8dd02 Merge branch 'main' into dev 2023-02-18 22:45:39 +00:00
JackDandy
63e998dfc2 Fix using recently updated torrent parser for py3 bytes. 2023-02-18 22:41:52 +00:00
JackDandy
8656c087cd Merge branch 'main' into dev 2023-02-18 20:34:12 +00:00
Prinz23
a0099da56b Fix show view edit language.
Fix reload show data if requested language changes.
Fix broken lang in tvdb api.
Change use language in all get_show tvinfo data calls.
Fix TMDB show language fallback check.
Fix add requested_language to tvinfo show cache.
Fix reset loaded statuses of cached show.
Fix TVDb image parsing.
2023-02-18 20:13:46 +00:00
JackDandy
dac9f2cdff Merge branch 'main' into dev 2023-02-15 14:03:29 +00:00
JackDandy
39f0539439 Fix updating with running virtualenv. 2023-02-15 13:37:20 +00:00
JackDandy
2779c60f42 Change remove calls to legacy py2 fix encoding function.
Change various code cleanups, e.g. replace CamelCase with pythonic casing.
2023-02-10 21:40:19 +00:00
Prinz23
ef4e10d917 Fix revert update. 2023-02-10 19:24:56 +00:00
Prinz23
f85d15651c Change re-enable fetching metadata banners and posters. 2023-02-09 14:46:03 +00:00
SickGear
e56303798c Change bump to major version 3.xx to signal that this branch supports Python3+ only.
Initial SickGear for Python 3.
2023-02-09 13:41:15 +00:00