Merge pull request #848 from TiA4f8R/fix_yt_music_website_extraction_eu
[YouTube] Fix extracting YouTube Music client version and key in the EU
This commit is contained in:
commit
1dc80957d8
|
@ -853,7 +853,7 @@ public final class YoutubeParsingHelper {
|
||||||
musicKey = getStringResultFromRegexArray(response, INNERTUBE_API_KEY_REGEXES, 1);
|
musicKey = getStringResultFromRegexArray(response, INNERTUBE_API_KEY_REGEXES, 1);
|
||||||
musicClientName = Parser.matchGroup1(INNERTUBE_CLIENT_NAME_REGEX, response);
|
musicClientName = Parser.matchGroup1(INNERTUBE_CLIENT_NAME_REGEX, response);
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
final String url = "https://music.youtube.com/";
|
final String url = "https://music.youtube.com/?ucbcb=1";
|
||||||
final Map<String, List<String>> headers = new HashMap<>();
|
final Map<String, List<String>> headers = new HashMap<>();
|
||||||
addCookieHeader(headers);
|
addCookieHeader(headers);
|
||||||
final String html = getDownloader().get(url, headers).responseBody();
|
final String html = getDownloader().get(url, headers).responseBody();
|
||||||
|
|
Loading…
Reference in New Issue