Added open in YouTube button on search, and setting start/endtime of YouTube video.

- Opening for further development with userset end/starttime
This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-29 22:20:05 +02:00
parent c10477f4e0
commit 7678ce5dbe
7 changed files with 33 additions and 14 deletions

View File

@@ -93,6 +93,7 @@ var Search = {
songs.find("#temp-results").attr("data-video-id", id);
songs.find("#temp-results").attr("data-video-title", enc_title);
songs.find("#temp-results").attr("data-video-length", secs);
songs.find(".open-externally").attr("href", "https://www.youtube.com/watch?v=" + id);
//$($(songs).find("div")[0]).attr("id", id)
//output += undefined;
if(songs.html() != undefined) {