mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 06:10:33 +05:30
Merge pull request #483 from XiangRongLin/cleanup-mix-pl
Cleanup mix pl
This commit is contained in:
commit
e8cc302d5f
@ -65,12 +65,6 @@ public class YoutubeParsingHelper {
|
|||||||
private YoutubeParsingHelper() {
|
private YoutubeParsingHelper() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The official youtube app supports intents in this format, where after the ':' is the videoId.
|
|
||||||
* Accordingly there are other apps sharing streams in this format.
|
|
||||||
*/
|
|
||||||
public final static String BASE_YOUTUBE_INTENT_URL = "vnd.youtube";
|
|
||||||
|
|
||||||
private static final String HARDCODED_CLIENT_VERSION = "2.20200214.04.00";
|
private static final String HARDCODED_CLIENT_VERSION = "2.20200214.04.00";
|
||||||
private static String clientVersion;
|
private static String clientVersion;
|
||||||
|
|
||||||
@ -591,7 +585,7 @@ public class YoutubeParsingHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String extractCookieValue(final String cookieName, final Response response) {
|
public static String extractCookieValue(final String cookieName, final Response response) {
|
||||||
final List<String> cookies = response.responseHeaders().get("Set-Cookie");
|
final List<String> cookies = response.responseHeaders().get("set-cookie");
|
||||||
int startIndex;
|
int startIndex;
|
||||||
String result = "";
|
String result = "";
|
||||||
for (final String cookie : cookies) {
|
for (final String cookie : cookies) {
|
||||||
|
@ -41,10 +41,10 @@ public class YoutubeMixPlaylistExtractorTest {
|
|||||||
private static final String VIDEO_ID = "_AzeUSL9lZc";
|
private static final String VIDEO_ID = "_AzeUSL9lZc";
|
||||||
private static final String VIDEO_TITLE =
|
private static final String VIDEO_TITLE =
|
||||||
"Most Beautiful And Emotional Piano: Anime Music Shigatsu wa Kimi no Uso OST IMO";
|
"Most Beautiful And Emotional Piano: Anime Music Shigatsu wa Kimi no Uso OST IMO";
|
||||||
|
private static final Map<String, String> dummyCookie
|
||||||
|
= Collections.singletonMap(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever");
|
||||||
|
|
||||||
private static YoutubeMixPlaylistExtractor extractor;
|
private static YoutubeMixPlaylistExtractor extractor;
|
||||||
private static Map<String, String> dummyCookie
|
|
||||||
= Collections.singletonMap(YoutubeMixPlaylistExtractor.COOKIE_NAME, "whatever");
|
|
||||||
|
|
||||||
public static class Mix {
|
public static class Mix {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user