fix trakt links for movies (like sonarr for shows) (#690)

geogolem 8 years ago committed by Devin Buhl
parent 1aae3ae2b5
commit 6dc9f90a8b

@ -1,5 +1,5 @@
<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>
{{#if website}} {{#if website}}
<a href="{{homepage}}" class="label label-info">Homepage</a> <a href="{{homepage}}" class="label label-info">Homepage</a>
{{/if}} {{/if}}

@ -36,7 +36,7 @@ Handlebars.registerHelper('remotePoster', function() {
}); });
Handlebars.registerHelper('traktUrl', function() { Handlebars.registerHelper('traktUrl', function() {
return 'http://trakt.tv/search/tvdb/' + this.tvdbId + '?id_type=show'; return 'http://trakt.tv/search/tmdb/' + this.tmdbId + '?id_type=movie';
}); });
Handlebars.registerHelper('imdbUrl', function() { Handlebars.registerHelper('imdbUrl', function() {

@ -27,7 +27,7 @@
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<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>
{{#if website}} {{#if website}}
<a href="{{homepage}}" class="label label-info">Homepage</a> <a href="{{homepage}}" class="label label-info">Homepage</a>
{{/if}} {{/if}}

@ -45,7 +45,7 @@
</div> </div>
<div class="col-md-4 col-xs-4"> <div class="col-md-4 col-xs-4">
<span class="movie-info-links"> <span class="movie-info-links">
<!--<a href="{{traktUrl}}" class="label label-info">Trakt</a>--> <a href="{{traktUrl}}" class="label label-info">Trakt</a>
{{#if website}} {{#if website}}
<a href="{{homepage}}" class="label label-info">Homepage</a> <a href="{{homepage}}" class="label label-info">Homepage</a>
{{/if}} {{/if}}

@ -19,6 +19,7 @@
<div class="center"> <div class="center">
<div class="labels"> <div class="labels">
<span class="label label-{{DownloadedStatusColor}}" title="{{DownloadedQuality}}">{{DownloadedStatus}}</span> <span class="label label-{{DownloadedStatusColor}}" title="{{DownloadedQuality}}">{{DownloadedStatus}}</span>
<a href="{{traktUrl}}" class="label label-info">Trakt</a>
{{#if website}} {{#if website}}
<a href="{{homepage}}" class="label label-info">Homepage</a> <a href="{{homepage}}" class="label label-info">Homepage</a>
{{/if}} {{/if}}

Loading…
Cancel
Save