From 6ad5ccf9667891a85b6512413146047c42969a28 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Aug 2014 19:58:10 +0800 Subject: [PATCH] HDbits fix --- sickbeard/providers/hdbits.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/providers/hdbits.py b/sickbeard/providers/hdbits.py index ce86e810..8b0c0296 100644 --- a/sickbeard/providers/hdbits.py +++ b/sickbeard/providers/hdbits.py @@ -177,17 +177,17 @@ class HDBitsProvider(generic.TorrentProvider): if show.air_by_date or show.sports: post_data['tvdb'] = { 'id': show.indexerid, - 'season': str(episode.airdate)[:7], + 'season': str(season.airdate)[:7], } elif show.anime: post_data['tvdb'] = { 'id': show.indexerid, - 'season': "%d" % episode.scene_absolute_number, + 'season': "%d" % season.scene_absolute_number, } else: post_data['tvdb'] = { 'id': show.indexerid, - 'season': episode.scene_season, + 'season': season.scene_season, } if search_term: