Skip to content

Commit

Permalink
TVDB Api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelinas1 committed Jan 2, 2023
1 parent 08426eb commit f70303e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.thetvdb"
name="The TVDB API v2"
version="1.0.32"
version="1.0.33"
provider-name="marcelveldt and others">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
Expand Down
11 changes: 1 addition & 10 deletions lib/thetvdb.py
Expand Up @@ -265,16 +265,7 @@ def get_series_episodes_by_query(self, seriesid, query=""):
imdbid=X --> IMDB id of the series
Note: output is only summary of episode details (non kodi formatted)
'''
all_episodes = []
page = 1
while True:
# get all episodes by iterating over the pages
data = self.get_data("series/%s/episodes/query?%s&page=%s" % (seriesid, query, page))
if not data:
break
else:
all_episodes += data
page += 1
all_episodes = self.get_data("series/%s/episodes/query?%s&page=1" % (seriesid, query))
return all_episodes

@use_cache(7)
Expand Down

0 comments on commit f70303e

Please sign in to comment.