Skip to content

Commit 075e6d5

Browse files
committed
Add music.youtube.com to link handler
1 parent bfa6b4d commit 075e6d5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private YoutubeParsingHelper() {
3333
public static boolean isYoutubeURL(URL url) {
3434
String host = url.getHost();
3535
return host.equalsIgnoreCase("youtube.com") || host.equalsIgnoreCase("www.youtube.com")
36-
|| host.equalsIgnoreCase("m.youtube.com");
36+
|| host.equalsIgnoreCase("m.youtube.com") || host.equalsIgnoreCase("music.youtube.com");
3737
}
3838

3939
public static boolean isYoutubeServiceURL(URL url) {

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
114114

115115
case "YOUTUBE.COM":
116116
case "WWW.YOUTUBE.COM":
117-
case "M.YOUTUBE.COM": {
117+
case "M.YOUTUBE.COM":
118+
case "MUSIC.YOUTUBE.COM": {
118119
if (path.equals("attribution_link")) {
119120
String uQueryValue = Utils.getQueryValue(url, "u");
120121

0 commit comments

Comments
 (0)