Skip to content

Commit

Permalink
fix: use isShort instead of isShorts.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaoxing committed Nov 13, 2024
1 parent 7bf72a5 commit f3d2d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/youtube/VideoCompact/VideoCompact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class VideoCompact extends Base implements VideoCompactProperties {
/** Whether this video is a live now or not */
isLive!: boolean;
/** Whether this video is a shorts or not */
isShorts!: boolean;
isShort!: boolean;
/** The channel who uploads this video */
channel?: BaseChannel;
/** The date this video is uploaded at */
Expand Down
2 changes: 1 addition & 1 deletion src/youtube/VideoCompact/VideoCompactParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class VideoCompactParser {
!!(badges?.[0].metadataBadgeRenderer.style === "BADGE_STYLE_TYPE_LIVE_NOW") ||
thumbnailOverlays?.[0].thumbnailOverlayTimeStatusRenderer?.style === "LIVE";

target.isShorts =
target.isShort =
thumbnailOverlays?.[0].thumbnailOverlayTimeStatusRenderer?.style === "SHORTS" || false;

// Channel
Expand Down

0 comments on commit f3d2d92

Please sign in to comment.