Skip to content

Commit

Permalink
Stop using android client for thumbnail generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Nov 29, 2023
1 parent a94dbc3 commit c88a36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thumbnails/thumbnailData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function fetchVideoMetadata(videoID: VideoID, ignoreCache: boolean)

try {
const result = activeRequests[videoID] ?? (async () => {
let metadata = Math.random() > 0.5 && !onMobile() ? await fetchVideoDataAndroidClient(videoID).catch(() => null) : await fetchVideoDataDesktopClient(videoID).catch(() => null);
let metadata = await fetchVideoDataDesktopClient(videoID).catch(() => null);
if (!onMobile() && (!metadata || metadata.formats.length === 0)) metadata = await fetchVideoDataDesktopClient(videoID).catch(() => null);

if (metadata && metadata.formats.length > 0) {
Expand Down

0 comments on commit c88a36b

Please sign in to comment.