mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Added Sync for Playlists
This commit is contained in:
parent
a88c9081f1
commit
e867ab25e9
11 changed files with 287 additions and 41 deletions
14
src/App.vue
14
src/App.vue
|
@ -220,6 +220,17 @@ async function getNext(hash) {
|
|||
!data.urls.filter(s => s.url == data.url)[0] ||
|
||||
data.urls.length == 1
|
||||
) {
|
||||
if (useStore().getItem('next') == 'false') {
|
||||
data.urls = [
|
||||
{
|
||||
title: data.nowtitle,
|
||||
url: '/watch?v=' + hash,
|
||||
},
|
||||
];
|
||||
setMetadata();
|
||||
return;
|
||||
}
|
||||
|
||||
const json = await getJson(
|
||||
'https://hyperpipeapi.onrender.com/next/' + hash,
|
||||
);
|
||||
|
@ -347,9 +358,8 @@ onBeforeMount(() => {
|
|||
});
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
if (window.hls) {
|
||||
window.hls.destroy()
|
||||
window.hls.destroy();
|
||||
}
|
||||
|
||||
useLazyLoad();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue