Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
core: fix default values of opensubtitles-skip-wrong-fps, use_https; fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pannal committed Sep 20, 2019
1 parent c23b3e9 commit f4e82c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contents/Code/support/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,10 @@ def get_providers(self, media_type="series"):

def get_provider_settings(self):
os_use_https = self.advanced.providers.opensubtitles.use_https \
if self.advanced.providers.opensubtitles.use_https is not None else True
if self.advanced.providers.opensubtitles.has("use_https") else True

os_skip_wrong_fps = self.advanced.providers.opensubtitles.skip_wrong_fps \
if self.advanced.providers.opensubtitles.skip_wrong_fps is not None else True
if self.advanced.providers.opensubtitles.has("skip_wrong_fps") else True

provider_settings = {'addic7ed': {'username': Prefs['provider.addic7ed.username'],
'password': Prefs['provider.addic7ed.password'],
Expand Down
3 changes: 3 additions & 0 deletions Contents/Libraries/Shared/subzero/lib/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def __init__(self, **entries):
for key, value in entries.iteritems():
self.__dict__[key] = (Dicked(**value) if isinstance(value, dict) else value)

def has(self, key):
return self._entries is not None and key in self._entries

def __repr__(self):
return str(self)

Expand Down

0 comments on commit f4e82c5

Please sign in to comment.