- smaller json structure for xml conv
- fix minor typos and bugs in scripts/
- parallel fetching upto 2 concurrent segments
This commit is contained in:
Shiny Nematoda 2023-09-02 11:21:25 +00:00
parent 62e7cffbc4
commit c7add3708e
15 changed files with 115 additions and 148 deletions

View file

@ -32,7 +32,9 @@ async function getCharts() {
console.log(json);
if (!id.value)
id.value = json.options.all.find(i => store.cc ? i.id == store.cc : i.title == json.options.default).id;
id.value = json.options.all.find(i =>
store.cc ? i.id == store.cc : i.title == json.options.default,
).id;
for (const country of json.options.all) {
const locId = `countries.${country.id}`,

View file

@ -169,7 +169,7 @@ const setProxy = async () => {
format: 'Hyperpipe',
version: 0,
app_version: 0,
subscriptions: JSON.parse( store.subs || '[]' ).map(id => ({
subscriptions: JSON.parse(store.subs || '[]').map(id => ({
url: 'https://www.youtube.com/channel/' + id,
service_id: 0,
})),

View file

@ -75,6 +75,9 @@ async function Stream() {
manifest: {
disableVideo: true,
},
streaming: {
segmentPrefetchLimit: 2,
},
});
window.audioPlayer = audioPlayer;
@ -109,7 +112,7 @@ async function Stream() {
})
.catch(err => {
console.error(err);
useAlert.add('error: ' + e.code)
useAlert.add('error: ' + e.code);
});
}
}