Skip to content

Commit 1dc8095

Browse files
authored
Merge pull request #848 from TiA4f8R/fix_yt_music_website_extraction_eu
[YouTube] Fix extracting YouTube Music client version and key in the EU
2 parents 23fa31a + c34b5e3 commit 1dc8095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public static String[] getYoutubeMusicKey()
853853
musicKey = getStringResultFromRegexArray(response, INNERTUBE_API_KEY_REGEXES, 1);
854854
musicClientName = Parser.matchGroup1(INNERTUBE_CLIENT_NAME_REGEX, response);
855855
} catch (final Exception e) {
856-
final String url = "https://music.youtube.com/";
856+
final String url = "https://music.youtube.com/?ucbcb=1";
857857
final Map<String, List<String>> headers = new HashMap<>();
858858
addCookieHeader(headers);
859859
final String html = getDownloader().get(url, headers).responseBody();

0 commit comments

Comments
 (0)