Skip to content

Commit d29728c

Browse files
committed
feat: add customAndroidSdkless client
1 parent c00c949 commit d29728c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

lib/API/clients.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,22 @@ const customAndroidVr = YoutubeApiClient({
1616
'timeZone': 'UTC',
1717
'utcOffsetMinutes': 0,
1818
},
19+
'contextClientName': 28,
20+
'requireJsPlayer': false,
1921
},
2022
}, 'https://www.youtube.com/youtubei/v1/player?prettyPrint=false');
23+
24+
const customAndroidSdkless = YoutubeApiClient({
25+
'context': {
26+
'client': {
27+
'clientName': 'ANDROID',
28+
'clientVersion': '20.10.38',
29+
'userAgent':
30+
'com.google.android.youtube/20.10.38 (Linux; U; Android 11) gzip',
31+
'osName': 'Android',
32+
'osVersion': '11',
33+
},
34+
},
35+
'contextClientName': 3,
36+
'requireJsPlayer': false,
37+
}, 'https://www.youtube.com/youtubei/v1/player?prettyPrint=false');

lib/API/musify.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ final currentRecentlyPlayedLength = ValueNotifier<int>(
8383
final lyrics = ValueNotifier<String?>(null);
8484
String? lastFetchedLyrics;
8585

86-
final _clients = [customAndroidVr];
86+
final _clients = [customAndroidVr, customAndroidSdkless];
8787

8888
Future<List> fetchSongsList(String searchQuery) async {
8989
try {

0 commit comments

Comments
 (0)