From 3ae5b10bd44ec6514fb8a833215837d43267d3f8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 7 Dec 2010 19:35:55 +0100 Subject: [PATCH] year, episode, season can be ints --- pandora/item/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/item/utils.py b/pandora/item/utils.py index 7ee60e3..ca002be 100644 --- a/pandora/item/utils.py +++ b/pandora/item/utils.py @@ -37,10 +37,10 @@ def oxdb_id(title, directors=[], year='', season='', episode='', episode_title=' director = ', '.join(directors) episode_director = ', '.join(episode_directors) if not episode: - oxdb_id = get_hash(director)[:8] + get_hash('\n'.join([title, year]))[:8] + oxdb_id = get_hash(director)[:8] + get_hash('\n'.join([title, str(year)]))[:8] else: - oxdb_id = get_hash('\n'.join([director, title, year, season]))[:8] + \ - get_hash('\n'.join([episode, episode_director, episode_title, episode_year]))[:8] + oxdb_id = get_hash('\n'.join([director, title, str(year), str(season)]))[:8] + \ + get_hash('\n'.join([str(episode), episode_director, episode_title, str(episode_year)]))[:8] return u'0x' + oxdb_id def oxdb_directors(director):