From d79a3c0b95d903f2ae19a2bf3270494fd1fa3a79 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 6 Jun 2013 20:37:46 +0200 Subject: [PATCH] fix #1574 (wrong id for non-imdb series episode 0 item) --- ox/movie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index 6c1f431..0b05236 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -490,7 +490,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 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] else: oxid = get_hash('\n'.join([director, title, str(year), str(season)]))[:8] + \