Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Sep 21, 2022
1 parent 8859df6 commit 85a117a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/videoCodec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ export function parseVideoCodec(title: string): { codec?: VideoCodec; source?: s
return { codec: VideoCodec.H265, source: groups['h265'] };
}

if (groups['x265'] || groups['hevc']) {
if (groups['x265'] ?? groups['hevc']) {
return { codec: VideoCodec.X265, source: groups['x265'] ?? groups['hevc'] };
}

if (groups['x264']) {
return { codec: VideoCodec.X264, source: groups['x264'] };
}

if (groups['xvidhd'] || groups['xvid'] || groups['divx']) {
if (groups['xvidhd'] ?? groups['xvid'] ?? groups['divx']) {
return { codec: VideoCodec.XVID, source: groups['xvidhd'] ?? groups['xvid'] ?? groups['divx'] };
}

Expand Down

0 comments on commit 85a117a

Please sign in to comment.