Trakt.tv episode link on detail mythweb page [Implemented]

Post Reply
Freakeao
Junior
Posts: 28
Joined: Sat Dec 27, 2014 5:05 pm
Afghanistan

Trakt.tv episode link on detail mythweb page [Implemented]

Post by Freakeao »

I added a link to trakt.tv for a tv episode, just like linking off to the metadata homepage on thetvdb.com. I'm not on github so I didn't submit it there, and I'm not sure how to properply update the language files to it currently yells that there is no translation...

Here's the diff of mythweb/modules/tv/tmpl/default/detail.php

Code: Select all

140d139
<          var traktPage = $("trakt-page");
147d145
<              traktPage && Element.remove(traktPage);
149,162d146
<          }
<
<       var episodeID = item.HomePage.match(/.*&id=(\d+)/)[1];
<       var traktHREF = "http://trakt.tv//search/tvdb/" + episodeID + "?id_type=episode"
<
<          // update the link or create it if this item does have a trakt page
<          if (traktPage) {
<               traktPage.href = traktHREF;
<          } else {
<               $($$(".x-links")[0].children[1]).insert({top:
<                   new Element("a",
<                       {href: traktHREF,
<                        target: "mythtwebtrakt", id: "trakt-page"}).
<                       update(item.Title + " " + "<?php echo t("Trakt.tv Home Page") ?>")});
User avatar
dekarl
Developer
Posts: 228
Joined: Thu Feb 06, 2014 11:01 pm
Germany

Re: Trakt.tv episode link on detail mythweb page [Implemente

Post by dekarl »

Please file a ticket, so this does not get overlooked.
Freakeao
Junior
Posts: 28
Joined: Sat Dec 27, 2014 5:05 pm
Afghanistan

Re: Trakt.tv episode link on detail mythweb page [Implemente

Post by Freakeao »

Ticket entered. The description is a bit messy since I put the diff in there first and couldn't figure out how to edit that out. Diff is now in an attachment.
Post Reply