Added Sync for Playlists

This commit is contained in:
Shiny Nematoda 2022-06-05 20:35:58 +05:30
parent a88c9081f1
commit e867ab25e9
11 changed files with 287 additions and 41 deletions

View file

@ -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();