Skip to content

Commit

Permalink
Fix innertube videoID check not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Jul 20, 2023
1 parent b77d5fc commit aee6aa0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/thumbnails/thumbnailData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export async function fetchVideoDataAndroidClient(videoID: VideoID): Promise<Inn

if (result.ok) {
const response = await result.json();
const videoID = response?.videoDetails?.videoId ?? null;
if (videoID !== videoID) {
const newVideoID = response?.videoDetails?.videoId ?? null;
if (newVideoID !== videoID) {
return {
formats: [],
duration: null,
Expand Down Expand Up @@ -225,8 +225,8 @@ export async function fetchVideoDataDesktopClient(videoID: VideoID): Promise<Inn

if (result.ok) {
const response = await result.json();
const videoID = response?.videoDetails?.videoId ?? null;
if (videoID !== videoID) {
const newVideoID = response?.videoDetails?.videoId ?? null;
if (newVideoID !== videoID) {
return {
formats: [],
duration: null,
Expand Down

0 comments on commit aee6aa0

Please # to comment.