Merge branch 'main' of https://github.com/ciderapp/Cider
This commit is contained in:
commit
448dcba67a
2 changed files with 10 additions and 10 deletions
|
@ -59,9 +59,9 @@ const Events = {
|
||||||
app.mk._services.mediaItemPlayback._currentPlayer.destroy();
|
app.mk._services.mediaItemPlayback._currentPlayer.destroy();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
try {
|
try {
|
||||||
this.radiohls.destroy()
|
this.radiohls.destroy();
|
||||||
this.radiohls = null;
|
this.radiohls = null;
|
||||||
} catch (_){}
|
} catch (_) {}
|
||||||
try {
|
try {
|
||||||
let searchInt = setInterval(function () {
|
let searchInt = setInterval(function () {
|
||||||
if (document.getElementById("apple-music-player")) {
|
if (document.getElementById("apple-music-player")) {
|
||||||
|
|
|
@ -1022,9 +1022,9 @@ const app = new Vue({
|
||||||
} // EVIL EMPTY OBJECTS BE GONE
|
} // EVIL EMPTY OBJECTS BE GONE
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.radiohls.destroy()
|
this.radiohls.destroy();
|
||||||
this.radiohls = null;
|
this.radiohls = null;
|
||||||
} catch (_){}
|
} catch (_) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if ((MusicKit.getInstance().nowPlayingItem["type"] ?? "").includes("ideo")) {
|
if ((MusicKit.getInstance().nowPlayingItem["type"] ?? "").includes("ideo")) {
|
||||||
|
@ -5083,12 +5083,12 @@ const app = new Vue({
|
||||||
appData: { serviceName: "Apple Music" },
|
appData: { serviceName: "Apple Music" },
|
||||||
};
|
};
|
||||||
if (app.radiohls != null && app.radiohls.destroy != null) {
|
if (app.radiohls != null && app.radiohls.destroy != null) {
|
||||||
app.radiohls.destroy();
|
app.radiohls.destroy();
|
||||||
app.radiohls = null;
|
app.radiohls = null;
|
||||||
app.radiohls = new CiderHls();
|
app.radiohls = new CiderHls();
|
||||||
app.radiohls.loadSource(e);
|
app.radiohls.loadSource(e);
|
||||||
app.radiohls.attachMedia(app.mk._services.mediaItemPlayback._currentPlayer._targetElement);
|
app.radiohls.attachMedia(app.mk._services.mediaItemPlayback._currentPlayer._targetElement);
|
||||||
app.mk._services.mediaItemPlayback._currentPlayer._targetElement.play();
|
app.mk._services.mediaItemPlayback._currentPlayer._targetElement.play();
|
||||||
} else {
|
} else {
|
||||||
app.radiohls = null;
|
app.radiohls = null;
|
||||||
app.radiohls = new CiderHls();
|
app.radiohls = new CiderHls();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue