Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mass refactor tv.py #8706

Merged
merged 31 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
83e529a
refactor: lowercase and typo function, parameter, and variable names …
miigotu Feb 3, 2024
a3055a7
fix: use property decorators instead of accessors to avoid type check…
miigotu Feb 3, 2024
e36b6fb
black
miigotu Feb 3, 2024
8a67418
chore: update release workflow
miigotu Feb 3, 2024
89546f4
refactor: missed changes
miigotu Feb 3, 2024
6989d8c
additional time error capture
BKSteve Feb 3, 2024
7ba09ac
refactor: more renaming and fixing types
miigotu Feb 3, 2024
0bcd73f
fix: can't add init to tornado base class? causes PageTemplate initia…
miigotu Feb 3, 2024
6850259
fix: try to fix airdate modify timestamp, remove some unneded mako co…
miigotu Feb 4, 2024
846aa4a
chore:black formatting
miigotu Feb 4, 2024
754e34f
air date tm_isdst
BKSteve Feb 4, 2024
c20da34
air date tm_isdst clean
BKSteve Feb 4, 2024
ae3e0ff
Merge branch 'develop' into wtf-is-wrong-with-me-lol
miigotu Feb 6, 2024
cb4c31b
backlog page variables - log reduction
BKSteve Feb 11, 2024
2a6deff
backlog page variables lowercase 2
BKSteve Feb 11, 2024
4735005
trending add - redirectable
BKSteve Feb 11, 2024
9614388
searchBacklog needs int
BKSteve Feb 11, 2024
0ac7c4c
subtitles remove legendastv
BKSteve Feb 11, 2024
7b58831
add shows redirect allowed
BKSteve Feb 12, 2024
18c4a7d
regex single char alternation - Qodana
BKSteve Feb 12, 2024
b44dc29
docstring parameters - Qodana
BKSteve Feb 12, 2024
6340a58
fstring logs
BKSteve Feb 12, 2024
212444f
fstring logs 2
BKSteve Feb 12, 2024
dacdd68
wordle
BKSteve Feb 12, 2024
140482a
remove show get*
BKSteve Feb 12, 2024
8e44069
snaking vars
BKSteve Feb 12, 2024
735ea0a
home unused var removal
BKSteve Feb 12, 2024
0fb6c6b
t.render layout
BKSteve Feb 12, 2024
bae210c
Failed download + params
BKSteve Feb 12, 2024
a6ed3a4
revert (_(f
BKSteve Feb 12, 2024
b96ea86
Merge branch 'develop' into wtf-is-wrong-with-me-lol
miigotu Feb 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sickchill/gui/slick/views/config_subtitles.mako
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@
<fieldset class="component-group-list">
<%
providerLoginDict = {
'legendastv': {'user': settings.LEGENDASTV_USER, 'pass': settings.LEGENDASTV_PASS},
'addic7ed': {'user': settings.ADDIC7ED_USER, 'pass': settings.ADDIC7ED_PASS},
'itasa': {'user': settings.ITASA_USER, 'pass': settings.ITASA_PASS},
'opensubtitles': {'user': settings.OPENSUBTITLES_USER, 'pass': settings.OPENSUBTITLES_PASS},
Expand Down
11 changes: 3 additions & 8 deletions sickchill/oldbeard/subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

# https://github.com/Diaoul/subliminal/issues/536
# provider_manager.register('napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider')
# if 'legendastv' not in subliminal.provider_manager.names():
# subliminal.provider_manager.register('legendastv = subliminal.providers.legendastv:LegendasTVProvider')
# 'legendastv' closed down
if "itasa" not in subliminal.provider_manager.names():
subliminal.provider_manager.register("itasa = sickchill.providers.subtitle.itasa:ItaSAProvider")
if "wizdom" not in subliminal.provider_manager.names():
Expand All @@ -38,16 +37,13 @@
subliminal.region.configure("dogpile.cache.memory")

PROVIDER_URLS = {
"addic7ed": "http://www.addic7ed.com",
"addic7ed": "https://www.addic7ed.com",
"bsplayer": "http://bsplayer-subtitles.com",
"itasa": "http://www.italiansubs.net/",
"legendastv": "http://www.legendas.tv",
"napiprojekt": "http://www.napiprojekt.pl",
"opensubtitles": "https://www.opensubtitles.com",
"podnapisi": "http://www.podnapisi.net",
"subscenter": "http://www.subscenter.info",
"subtitulamos": "https://www.subtitulamos.tv",
"thesubdb": "http://www.thesubdb.com",
"wizdom": "http://wizdom.xyz",
"tvsubtitles": "http://www.tvsubtitles.net",
}
Expand Down Expand Up @@ -78,7 +74,6 @@ def __init_instance():
provider_configs = {
"addic7ed": {"username": settings.ADDIC7ED_USER, "password": settings.ADDIC7ED_PASS},
"itasa": {"username": settings.ITASA_USER, "password": settings.ITASA_PASS},
"legendastv": {"username": settings.LEGENDASTV_USER, "password": settings.LEGENDASTV_PASS},
"opensubtitles": {"username": settings.OPENSUBTITLES_USER, "password": settings.OPENSUBTITLES_PASS},
"subscenter": {"username": settings.SUBSCENTER_USER, "password": settings.SUBSCENTER_PASS},
}
Expand Down Expand Up @@ -106,7 +101,7 @@ def __getattr__(self, attr):

def sorted_service_list():
new_list = []
lmgtfy = "https://lmgtfy.com/?q=%s"
lmgtfy = "https://blog.lmgtfy.com/?q=%s"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as lmgtfy is dead changed but not sure right or not.


current_index = 0
for current_service in settings.SUBTITLES_SERVICES_LIST:
Expand Down
5 changes: 0 additions & 5 deletions sickchill/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,6 @@ def path_leaf(path):
settings.ITASA_USER = check_setting_str(settings.CFG, "Subtitles", "itasa_username", censor_log=True)
settings.ITASA_PASS = check_setting_str(settings.CFG, "Subtitles", "itasa_password", censor_log=True)

settings.LEGENDASTV_USER = check_setting_str(settings.CFG, "Subtitles", "legendastv_username", censor_log=True)
settings.LEGENDASTV_PASS = check_setting_str(settings.CFG, "Subtitles", "legendastv_password", censor_log=True)

settings.OPENSUBTITLES_USER = check_setting_str(settings.CFG, "Subtitles", "opensubtitles_username", censor_log=True)
settings.OPENSUBTITLES_PASS = check_setting_str(settings.CFG, "Subtitles", "opensubtitles_password", censor_log=True)

Expand Down Expand Up @@ -1661,8 +1658,6 @@ def save_config():
"addic7ed_password": helpers.encrypt(settings.ADDIC7ED_PASS, settings.ENCRYPTION_VERSION),
"itasa_username": settings.ITASA_USER,
"itasa_password": helpers.encrypt(settings.ITASA_PASS, settings.ENCRYPTION_VERSION),
"legendastv_username": settings.LEGENDASTV_USER,
"legendastv_password": helpers.encrypt(settings.LEGENDASTV_PASS, settings.ENCRYPTION_VERSION),
"opensubtitles_username": settings.OPENSUBTITLES_USER,
"opensubtitles_password": helpers.encrypt(settings.OPENSUBTITLES_PASS, settings.ENCRYPTION_VERSION),
"subscenter_username": settings.SUBSCENTER_USER,
Expand Down
4 changes: 0 additions & 4 deletions sickchill/views/config/subtitles.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def saveSubtitles(
addic7ed_pass=None,
itasa_user=None,
itasa_pass=None,
legendastv_user=None,
legendastv_pass=None,
opensubtitles_user=None,
opensubtitles_pass=None,
subscenter_user=None,
Expand Down Expand Up @@ -80,8 +78,6 @@ def saveSubtitles(
settings.ADDIC7ED_PASS = filters.unhide(settings.ADDIC7ED_PASS, addic7ed_pass) or ""
settings.ITASA_USER = itasa_user or ""
settings.ITASA_PASS = filters.unhide(settings.ITASA_PASS, itasa_pass) or ""
settings.LEGENDASTV_USER = legendastv_user or ""
settings.LEGENDASTV_PASS = filters.unhide(settings.LEGENDASTV_PASS, legendastv_pass) or ""
settings.OPENSUBTITLES_USER = opensubtitles_user or ""
settings.OPENSUBTITLES_PASS = filters.unhide(settings.OPENSUBTITLES_PASS, opensubtitles_pass) or ""
settings.SUBSCENTER_USER = subscenter_user or ""
Expand Down
Loading