Skip to content

Commit

Permalink
Rever old logic to hide special episode in search search (#841)
Browse files Browse the repository at this point in the history
Another labrys issue. More time wasted

This it not the same!!
% if manual_search_type != 'season' and 'E00' not in hItem["name"]:
  • Loading branch information
fernandog committed Jul 31, 2016
1 parent d5c71ad commit f1e9a21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gui/slick/views/snatchSelection.mako
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,11 @@
undesired = undesired_words.lower().split(',') if undesired_words else []
%>
% for hItem in provider_results['found_items']:
% if manual_search_type != 'season' and 'E00' not in hItem["name"]:
<%
# Hides special episodes from season search
if manual_search_type == 'season' and 'E00' in hItem["name"]:
continue
hItem = dict(hItem)
release_group = (hItem["release_group"] or 'None')
if ignore_words and release_group in ignored:
Expand Down Expand Up @@ -539,7 +542,6 @@
<td class="col-date">${datetime.fromtimestamp(hItem["time"]).strftime(sickbeard.DATE_PRESET+" "+sickbeard.TIME_PRESET)}</td>
<td class="col-search"><a class="epManualSearch" id="${str(show.indexerid)}x${season}x${episode}" name="${str(show.indexerid)}x${season}x${episode}" href='${srRoot}/home/pickManualSearch?provider=${hItem["provider_id"]}&amp;rowid=${hItem["rowid"]}&amp;manual_search_type=${manual_search_type}'><img src="${srRoot}/images/download.png" width="16" height="16" alt="search" title="Download selected episode" /></a></td>
</tr>
% endif
% endfor
</tbody>
</table>
Expand Down

0 comments on commit f1e9a21

Please sign in to comment.