fix #1574 (wrong id for non-imdb series episode 0 item)

This commit is contained in:
rolux 2013-06-06 20:37:46 +02:00
parent cca251bc32
commit d79a3c0b95

View file

@ -490,7 +490,7 @@ def get_oxid(title, director=[], year='',
return hashlib.sha1(string.encode('utf-8')).hexdigest().upper() return hashlib.sha1(string.encode('utf-8')).hexdigest().upper()
director = ', '.join(director) director = ', '.join(director)
episode_director = ', '.join(episode_director) episode_director = ', '.join(episode_director)
if not episode and not episode_title: if not season and not episode and not episode_title:
oxid = get_hash(director)[:8] + get_hash('\n'.join([title, str(year)]))[:8] oxid = get_hash(director)[:8] + get_hash('\n'.join([title, str(year)]))[:8]
else: else:
oxid = get_hash('\n'.join([director, title, str(year), str(season)]))[:8] + \ oxid = get_hash('\n'.join([director, title, str(year), str(season)]))[:8] + \