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

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

Postby Freakeao » Thu Aug 13, 2015 5:35 pm

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") ?>")});
AfghanistanFreakeao
Junior
 
Posts: 22
Joined: Sat Dec 27, 2014 5:05 pm

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

Postby dekarl » Fri Aug 14, 2015 12:38 pm

Please file a ticket, so this does not get overlooked.
User avatar
Germanydekarl
Developer
 
Posts: 228
Joined: Thu Feb 06, 2014 11:01 pm

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

Postby Freakeao » Sat Aug 15, 2015 4:01 pm

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.
AfghanistanFreakeao
Junior
 
Posts: 22
Joined: Sat Dec 27, 2014 5:05 pm


Return to General Development



Who is online

Users browsing this forum: No registered users and 1 guest