correct REC _CopyLaRadio url
This commit is contained in:
parent
cba243cf5f
commit
b1c2dee9a0
|
@ -154,9 +154,10 @@ var infobar = function() {
|
||||||
}
|
}
|
||||||
// ZEEBOX HACK ZONE
|
// ZEEBOX HACK ZONE
|
||||||
if ( ! npinfo.Album ) { npinfo.Album = npinfo.stream; }
|
if ( ! npinfo.Album ) { npinfo.Album = npinfo.stream; }
|
||||||
var reclink = 'http://localhost:10010/_CopyLaRadio/youtube-dl.php?q=REC&artist=' + escape(encodeURIComponent(npinfo.Artist)) + '&title=' + escape(encodeURIComponent(npinfo.Title)) + '&radio='+ escape(encodeURIComponent(npinfo.Album)) +'&maxResults=1';
|
var host = window.location.hostname;
|
||||||
var zcopylink = ' <a id="REC" title="Enregistrer sur Youtube" href="#" onclick=\'javascript:event.target.port=10010;window.open("'+ reclink +'","REC","menubar=no, scrollbars=no, top=10, left=10, width=320, height=400");return false;\'>[REC]</a>';
|
var reclink = 'http://' + host + ':10010/_CopyLaRadio/youtube-dl.php?q=REC&artist=' + escape(encodeURIComponent(npinfo.Artist)) + '&title=' + escape(encodeURIComponent(npinfo.Title)) + '&radio='+ escape(encodeURIComponent(npinfo.Album)) +'&maxResults=1';
|
||||||
zcopylink += ' <a title="RECHERCHE LIBRE" href="./_CopyLaRadio/youtube-dl.php" target="youtube">*</a>';
|
var zcopylink = ' <a id="REC" title="Enregistrer sur Youtube" href="#" onclick=\'javascript:window.open("'+ reclink +'","REC","menubar=no, scrollbars=no, top=10, left=10, width=320, height=400");return false;\'>[REC]</a>';
|
||||||
|
zcopylink += ' <a title="RECHERCHE LIBRE" href="'+ reclink +'" target="youtube">*</a>';
|
||||||
lines[0].text += zcopylink;
|
lines[0].text += zcopylink;
|
||||||
// ZEEBOX HACK ZONE
|
// ZEEBOX HACK ZONE
|
||||||
return lines;
|
return lines;
|
||||||
|
|
Loading…
Reference in New Issue