Skip to content

Commit

Permalink
Update src/parser/youtube/History.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Roger <[email protected]>
  • Loading branch information
dnicolson and rogerpadilla authored Aug 29, 2024
1 parent f80ba60 commit 0bd18a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parser/youtube/History.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ export default class History extends Feed<IBrowseResponse> {
for (const section of this.sections) {
for (const content of section.contents) {
const video = content as Video;
if (video.id === video_id) {
if (video.menu) {
if (video.id === video_id && video.menu) {
feedbackToken = video.menu.top_level_buttons[0].endpoint.payload.feedbackToken;

Check failure on line 40 in src/parser/youtube/History.ts

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 12
}
break;

Check failure on line 41 in src/parser/youtube/History.ts

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 12
}
}
}
Expand Down

0 comments on commit 0bd18a3

Please sign in to comment.