diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 84aaa90..199a8ce 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -149,6 +149,10 @@ def Update(self, metadata, media, lang, force, movie): if year: metadata.year = int(year) + collections = [] + if series['localsize'] > 1: + collections.append(series['name']) + else: series = HttpReq("api/serie?id=%s&level=3&allpics=1&tagfilter=%d" % (aid, flags)) @@ -156,6 +160,13 @@ def Update(self, metadata, media, lang, force, movie): metadata.title = series['name'] metadata.rating = float(series['rating']) + groupinfo = HttpReq("api/serie/groups?id=%s&level=2" % aid); + collections = [] + for group in groupinfo: + if (len(group['series']) > 1): + collections.append(group['name']) + + metadata.collections = collections tags = [] for tag in try_get(series, 'tags', []): @@ -167,15 +178,6 @@ def Update(self, metadata, media, lang, force, movie): self.metadata_add(metadata.posters, try_get(series['art'], 'thumb', [])) self.metadata_add(metadata.art, try_get(series['art'], 'fanart', [])) - groupinfo = HttpReq("api/serie/groups?id=%s&level=2" % aid); - collections = [] - for group in groupinfo: - if (len(group['series']) > 1): - collections.append(group['name']) - - metadata.collections = collections - - ### Generate general content ratings. ### VERY rough approximation to: https://www.healthychildren.org/English/family-life/Media/Pages/TV-Ratings-A-Guide-for-Parents.aspx diff --git a/Contents/Resources/Series/Shoko Series Scanner.py b/Contents/Resources/Series/Shoko Series Scanner.py index 3757671..a38e357 100644 --- a/Contents/Resources/Series/Shoko Series Scanner.py +++ b/Contents/Resources/Series/Shoko Series Scanner.py @@ -9,7 +9,7 @@ 'Username': 'Default', 'Password': '', 'IncludeSpecials': True, - 'IncludeOther': True, + 'IncludeOther': False, 'SingleSeasonOrdering': False }