fix series that don't have seasons' names

This commit is contained in:
thezero 2018-10-22 19:54:10 +02:00
parent b4a68ae793
commit c57dbf881d

View File

@ -55,7 +55,8 @@ for i in range(last, last + smax):
for j in seasons:
print("Found: {}".format(info['title']))
if not vvvvidb.insert_serie((info['show_id'], info['title'], j['season_id'], j['name'])):
print(j)
if not vvvvidb.insert_serie((info['show_id'], info['title'], j['season_id'], j.get('name'))):
print("Serie already present")
continue