mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
fix(youtube player): Mixed content issue (#1795)
This commit is contained in:
parent
30836fb8d5
commit
3c0a1d5d00
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ function initMedia(context) {
|
||||||
a.className = 'YTLink';
|
a.className = 'YTLink';
|
||||||
a.innerHTML = '<span title="' + bbl['play_on'] + '" class="YTLinkButton">►</span>';
|
a.innerHTML = '<span title="' + bbl['play_on'] + '" class="YTLinkButton">►</span>';
|
||||||
window.addEvent(a, 'click', function (e) {
|
window.addEvent(a, 'click', function (e) {
|
||||||
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "http://www.youtube.com/embed/$3");
|
var vhref = e.target.nextSibling.href.replace(/^http(?:s|):\/\/www.youtube.com\/watch\?(.*)?(&?v=([a-z0-9\-_]+))(.*)?|http:\/\/youtu.be\//ig, "https://www.youtube.com/embed/$3");
|
||||||
var text = e.target.nextSibling.innerText !== "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
|
var text = e.target.nextSibling.innerText !== "" ? e.target.nextSibling.innerText : e.target.nextSibling.href;
|
||||||
$('#Panel_youtube').remove();
|
$('#Panel_youtube').remove();
|
||||||
ypanel('youtube', {
|
ypanel('youtube', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue