mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
Cleanup:
- smaller json structure for xml conv - fix minor typos and bugs in scripts/ - parallel fetching upto 2 concurrent segments
This commit is contained in:
parent
62e7cffbc4
commit
c7add3708e
15 changed files with 115 additions and 148 deletions
|
@ -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}`,
|
||||
|
|
|
@ -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,
|
||||
})),
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue