Fix casting mixes, add "Open in YouTube" button
This commit is contained in:
1 parent
1047a7882a
commit
6ac29a5bbb
11 files changed
+77
-12
No files matched your search
@@ -128,11 +128,15 @@ export class PlayletApi {
|
||||
await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
||||
}
|
||||
|
||||
static async openPlaylist(playlistId) {
|
||||
static async openPlaylist(playlistId, continuationVideoId) {
|
||||
if (!playlistId) {
|
||||
return;
|
||||
}
|
||||
await fetch(`${PlayletApi.host()}/api/view/open?playlistId=${playlistId}`);
|
||||
let url = `${PlayletApi.host()}/api/view/open?playlistId=${playlistId}`;
|
||||
if (continuationVideoId) {
|
||||
url += `&videoId=${continuationVideoId}`;
|
||||
}
|
||||
await fetch(url);
|
||||
}
|
||||
|
||||
static async openChannel(authorId) {
|
||||
|
||||
Reference in new issue
Block a user