Closed KurtzPT closed 6 years ago
The same thing happens to The Idolmaster Side M [anidb-12820]
I fixed the problem myself.
On TVDBv2.py:
### TVDB Series Actors JSON ### if not Prefs["GetSingleOne"]: #cache= CACHE_1MONTH, url=API_ACTORS_URL.replace('.com', '.plexapp.com') try: actor_json = GetResultFromNetwork(TVDB_ACTORS_URL % TVDBid, additionalHeaders={'Accept-Language': lang} if lang!='en' else {})['data'] except KeyError: Log("Bad actor data, no update for TVDB id: %s" % TVDBid); actor_json = None else: #JSON format: 'data': [{"seriesId", "name", "image", "lastUpdated", "imageAuthor", "role", "sortOrder", "id", "imageAdded", },...] Log("TheTVDB.GetMetadata() - TVDB_ACTORS_URL: {}, actor_json: {}".format(TVDB_ACTORS_URL % TVDBid, actor_json)) TheTVDB_dict['roles'] = [] for role in actor_json:
When the result of actor_json is None, it will crash at the start of the for loop. I just simply added this line before the for loop:
if actor_json is not None:
This is the following log after it tries to match the anime via refresh metadata: