series without episodes

This commit is contained in:
j 2011-10-17 22:53:02 +02:00
parent d76b607363
commit 7a0fad1e03

View file

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