Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sawaYch committed Aug 24, 2024
1 parent 2199828 commit dacc28b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spotty-parents-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"next-youtube-livechat": patch
---

fix api for live stream finished detection
5 changes: 4 additions & 1 deletion packages/next-youtube-livechat/src/libs/youtubeApiParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export function getOptionsFromLivePage(
if (continuationResult) {
continuation = continuationResult[1];
} else {
throw new Error('Continuation was not found');
//- 24-Aug-2024: if live stream is finished, continuation is not found.
throw new Error(
'Continuation was not found. Probably live stream is finished.'
);
}

let liveThumbnail: string;
Expand Down

0 comments on commit dacc28b

Please sign in to comment.