Skip to content

Commit

Permalink
fix: fix youtube api (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Mar 16, 2024
1 parent f507464 commit 4854a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/utils/youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function fetchVideoMetadataRaw(videoId: string): Promise<unknown> {
context: {
client: {
clientName: "ANDROID",
clientVersion: "17.31.35",
clientVersion: "18.11.34",
androidSdkVersion: 30,
hl: "en",
timeZone: "UTC",
Expand All @@ -56,9 +56,9 @@ export async function fetchVideoMetadataRaw(videoId: string): Promise<unknown> {
}),
headers: {
"X-YouTube-Client-Name": "3",
"X-YouTube-Client-Version": "17.31.35",
"X-YouTube-Client-Version": "18.11.34",
"Origin": "https://www.youtube.com",
"User-Agent": "com.google.android.youtube/17.31.35 (Linux; U; Android 11) gzip",
"User-Agent": "com.google.android.youtube/18.11.34 (Linux; U; Android 11) gzip",
"content-type": "application/json",
}
});
Expand Down

0 comments on commit 4854a7f

Please sign in to comment.