correct REC _CopyLaRadio url

This commit is contained in:
qo-op 2020-06-25 04:33:07 +02:00
parent cba243cf5f
commit b1c2dee9a0
1 changed files with 4 additions and 3 deletions

View File

@ -154,9 +154,10 @@ var infobar = function() {
}
// ZEEBOX HACK ZONE
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 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>';
zcopylink += ' <a title="RECHERCHE LIBRE" href="./_CopyLaRadio/youtube-dl.php" target="youtube">*</a>';
var host = window.location.hostname;
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';
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;
// ZEEBOX HACK ZONE
return lines;