New: Trakt links on series details

pull/6/head
Mark McDowall 9 years ago
parent ef3d508b31
commit f2784d3ec2

@ -20,7 +20,7 @@ Handlebars.registerHelper('poster', function() {
}); });
Handlebars.registerHelper('traktUrl', function() { Handlebars.registerHelper('traktUrl', function() {
return 'http://trakt.tv/show/' + this.titleSlug; return 'http://trakt.tv/search/tvdb/' + this.tvdbId + '?id_type=show';
}); });
Handlebars.registerHelper('imdbUrl', function() { Handlebars.registerHelper('imdbUrl', function() {

@ -29,7 +29,7 @@
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<span class="series-info-links"> <span class="series-info-links">
<!--<a href="{{traktUrl}}" class="label label-info">Trakt</a>--> <a href="{{traktUrl}}" class="label label-info">Trakt</a>
<a href="{{tvdbUrl}}" class="label label-info">The TVDB</a> <a href="{{tvdbUrl}}" class="label label-info">The TVDB</a>

Loading…
Cancel
Save