mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 06:10:33 +05:30
Add music.youtube.com to link handler
This commit is contained in:
parent
bfa6b4d14b
commit
075e6d51d6
@ -33,7 +33,7 @@ public class YoutubeParsingHelper {
|
|||||||
public static boolean isYoutubeURL(URL url) {
|
public static boolean isYoutubeURL(URL url) {
|
||||||
String host = url.getHost();
|
String host = url.getHost();
|
||||||
return host.equalsIgnoreCase("youtube.com") || host.equalsIgnoreCase("www.youtube.com")
|
return host.equalsIgnoreCase("youtube.com") || host.equalsIgnoreCase("www.youtube.com")
|
||||||
|| host.equalsIgnoreCase("m.youtube.com");
|
|| host.equalsIgnoreCase("m.youtube.com") || host.equalsIgnoreCase("music.youtube.com");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isYoutubeServiceURL(URL url) {
|
public static boolean isYoutubeServiceURL(URL url) {
|
||||||
|
@ -114,7 +114,8 @@ public class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
|
|||||||
|
|
||||||
case "YOUTUBE.COM":
|
case "YOUTUBE.COM":
|
||||||
case "WWW.YOUTUBE.COM":
|
case "WWW.YOUTUBE.COM":
|
||||||
case "M.YOUTUBE.COM": {
|
case "M.YOUTUBE.COM":
|
||||||
|
case "MUSIC.YOUTUBE.COM": {
|
||||||
if (path.equals("attribution_link")) {
|
if (path.equals("attribution_link")) {
|
||||||
String uQueryValue = Utils.getQueryValue(url, "u");
|
String uQueryValue = Utils.getQueryValue(url, "u");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user