Merge pull request #306 from Supremicus/feature/FixGenresDisplayShow

Fix genre tags on displayShow when imdb is disabled
This commit is contained in:
adam111316 2015-03-26 17:59:45 +08:00
commit b8c1fbad34
3 changed files with 5 additions and 9 deletions

View file

@ -87,6 +87,7 @@
* Change Special link moved from "Season" line to "Specials" line on displayShow * Change Special link moved from "Season" line to "Specials" line on displayShow
* Change code re-factored in readiness for live option switching, clean up and add closures of html tables * Change code re-factored in readiness for live option switching, clean up and add closures of html tables
* Add show overview from indexers to the database * Add show overview from indexers to the database
* Fix genre tags on displayShow when imdb is disabled
[develop changelog] [develop changelog]
* Fix traceback error when using the menu item Manage/Update Kodi * Fix traceback error when using the menu item Manage/Update Kodi

View file

@ -1170,10 +1170,6 @@ body#display-show .back-art .sickbeardTable{
cursor:default cursor:default
} }
.no-labels #details-top{
height:43px
}
#details-top{ #details-top{
height:70px height:70px
} }

View file

@ -62,7 +62,7 @@
//--> //-->
</script> </script>
<div class="displayshow-wrapper reg all#echo ('', ' no-labels')[not $sickbeard.USE_IMDB_INFO]#"> <div class="displayshow-wrapper reg all">
<div class="background-container"> <div class="background-container">
<div style="" class="background"></div> <div style="" class="background"></div>
@ -170,10 +170,9 @@ $displayshowlist.append('\t\t\t<optgroup label="%s">' % $curShowType)
<div id="showtitle" data-showname="$show.name"> <div id="showtitle" data-showname="$show.name">
<h2 class="title" id="scene_exception_$show.indexerid"><span>$show.name</span></h2> <h2 class="title" id="scene_exception_$show.indexerid"><span>$show.name</span></h2>
#if not $sickbeard.USE_IMDB_INFO or not $show.imdbid #if not $sickbeard.USE_IMDB_INFO or not $show.imdbid
## Disabling these trackt tags as they 404 on trakt2.0, remove False to re-enable #if $show.genre:
#if False and $show.genre: #for $genre in $show.genre[1:-1].replace('Science-Fiction','Sci-Fi').split('|')
#for $genre in $show.genre[1:-1].split('|') <span class="label"><a href="<%= anon_url('http://www.imdb.com/search/title?at=0&genres=', genre.lower().replace('-','_'),'&amp;sort=moviemeter,asc&amp;title_type=tv_series') %>" target="_blank" title="View other popular $genre shows on imdb.com">$genre</a></span>
<span class="label"><a href="<%= anon_url('http://trakt.tv/shows/popular/', genre.lower()) %>" target="_blank" title="View other popular $genre shows on trakt.tv">$genre</a></span>
#end for #end for
#end if #end if
#end if #end if