File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff 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' );
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ final currentRecentlyPlayedLength = ValueNotifier<int>(
8383final lyrics = ValueNotifier <String ?>(null );
8484String ? lastFetchedLyrics;
8585
86- final _clients = [customAndroidVr];
86+ final _clients = [customAndroidVr, customAndroidSdkless ];
8787
8888Future <List > fetchSongsList (String searchQuery) async {
8989 try {
You can’t perform that action at this time.
0 commit comments