Sync theTVDB id for TV shows from Plex to Kodi
This commit is contained in:
parent
35bba8e581
commit
09f0295e1c
2 changed files with 5 additions and 2 deletions
|
@ -1686,7 +1686,7 @@ class API():
|
|||
|
||||
def getProvider(self, providername=None):
|
||||
"""
|
||||
providername: e.g. 'imdb'
|
||||
providername: e.g. 'imdb', 'tvdb'
|
||||
|
||||
Return IMDB, e.g. "tt0903624". Returns None if not found
|
||||
"""
|
||||
|
@ -1698,6 +1698,9 @@ class API():
|
|||
|
||||
if providername == 'imdb':
|
||||
regex = re.compile(r'''/(tt\d+)''')
|
||||
elif providername == 'tvdb':
|
||||
# originally e.g. com.plexapp.agents.thetvdb://276564?lang=en
|
||||
regex = re.compile(r'''tvdb://(\d+)''')
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
|
@ -992,7 +992,7 @@ class TVShows(Items):
|
|||
plot = API.getPlot()
|
||||
rating = API.getAudienceRating()
|
||||
premieredate = API.getPremiereDate()
|
||||
tvdb = API.getProvider('Tvdb')
|
||||
tvdb = API.getProvider('tvdb')
|
||||
mpaa = API.getMpaa()
|
||||
genre = API.joinList(genres)
|
||||
studios = API.getStudios()
|
||||
|
|
Loading…
Reference in a new issue