Created
December 21, 2019 11:34
-
-
Save henryjfry/0328e1ffdba53e306e1080ccfd9cdff2 to your computer and use it in GitHub Desktop.
OPENMETA - Missing Durtation? (/home/osmc/.kodi/addons/plugin.video.openmeta/resources/lib)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TheTVDB.py | |
############################################# | |
def __getitem__(self, key): | |
if key in self: | |
return dict.__getitem__(self, key) | |
if key in self.data: | |
try: | |
return dict.__getitem__(self.data, key) | |
message = '%s not found' % key | |
except: | |
return | |
raise KeyError('%s not found' % key) | |
play_tvshows.py | |
################################################# | |
if show.get('genre') != None and '|' in show.get('genre'): | |
parameters['genres'] = show.get('genre').replace('|',' / ')[3:-3] | |
else: | |
parameters['genres'] = show.get('genre') | |
#####CHANGE HERE!!!! | |
try: | |
parameters['runtime'] = show['runtime'] | |
except: | |
parameters['runtime'] = 60 | |
show['runtime'] = 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment