Commit 73f1042d authored by echel0n's avatar echel0n
Browse files

Fixed issue with manage backlog overview page and overview classes

parent d098ae9f
......@@ -382,8 +382,7 @@ class TVShow(object):
if not self._episodes:
with sickrage.app.main_db.session() as session:
for x in session.query(MainDB.TVEpisode).filter_by(series_id=self.series_id, series_provider_id=self.series_provider_id):
self._episodes[x.episode_id] = TVEpisode(series_id=x.series_id, series_provider_id=x.series_provider_id, season=x.season,
episode=x.episode)
self._episodes[x.episode_id] = TVEpisode(series_id=x.series_id, series_provider_id=x.series_provider_id, season=x.season, episode=x.episode)
return list(self._episodes.values())
@property
......
......@@ -215,7 +215,7 @@ class NewShowHandler(BaseHandler, ABC):
provided_show_dir=show_dir,
provided_series_id=provided_series_id,
provided_series_name=provided_series_name,
provided_series_provider_id=provided_series_provider_id.name,
provided_series_provider_id=provided_series_provider_id,
series_providers=SeriesProviderID,
quality=sickrage.app.config.general.quality_default,
whitelist=[],
......
......@@ -48,7 +48,7 @@
<input type="hidden" id="whichSeries" name="whichSeries"
value="${provided_series_id}"/>
<input type="hidden" id="providedSeriesProviderID" name="providedSeriesProviderID"
value="${provided_series_provider_id}"/>
value="${provided_series_provider_id.name}"/>
<input type="hidden" id="providedSeriesName" name="providedSeriesName"
value="${provided_series_name}"/>
% endif
......
......@@ -97,7 +97,7 @@
<% whichStr = '{}x{}'.format(curResult.season, curResult.episode) %>
<% overview = showCats[curShow.series_id][whichStr] %>
% if overview in (Overview.LOW_QUALITY, Overview.WANTED):
<tr class="seasonstyle ${Overview.overviewStrings[showCats[curShow.series_id][whichStr]]}">
<tr class="seasonstyle ${overview.css_name}">
<td class="tableleft" align="center">${whichStr}</td>
<td class="tableright" align="center" class="text-nowrap">
${curResult.name}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment