mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
Minor fixes
- Avoid queue when fetching lyrics id - Better error handling for logout
This commit is contained in:
parent
08da12fa67
commit
580c1b7b46
4 changed files with 17 additions and 9 deletions
|
@ -27,11 +27,11 @@ function get() {
|
|||
if (data.state.lyrics && data.state.urls === data.state.url) {
|
||||
set(data.state.lyrics);
|
||||
} else if (data.state.url) {
|
||||
getJsonHyp('/next/' + data.state.url.replace('/watch?v=', '')).then(
|
||||
({ lyricsId }) => {
|
||||
if (lyricsId) set(lyricsId);
|
||||
},
|
||||
);
|
||||
getJsonHyp(
|
||||
'/next/' + data.state.url.replace('/watch?v=', '') + '?queue=avoid',
|
||||
).then(({ lyricsId }) => {
|
||||
if (lyricsId) set(lyricsId);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue