Skip to content

Commit

Permalink
fix apple music regex not matching non latin tracks
Browse files Browse the repository at this point in the history
# Conflicts:
#	main/src/main/java/com/github/topi314/lavasrc/applemusic/AppleMusicSourceManager.java
  • Loading branch information
topi314 committed Oct 17, 2023
1 parent d4e5a97 commit 934a1a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public class AppleMusicSourceManager extends MirroringAudioSourceManager implements HttpConfigurable {

public static final Pattern URL_PATTERN = Pattern.compile("(https?://)?(www\\.)?music\\.apple\\.com/(?<countrycode>[a-zA-Z]{2}/)?(?<type>album|playlist|artist|song)(/[a-zA-Z\\d\\-]+)?/(?<identifier>[a-zA-Z\\d\\-.]+)(\\?i=(?<identifier2>\\d+))?");
public static final Pattern URL_PATTERN = Pattern.compile("(https?://)?(www\\.)?music\\.apple\\.com/(?<countrycode>[a-zA-Z]{2}/)?(?<type>album|playlist|artist|song)(/[a-zA-Z\\p{L}\\d\\-]+)?/(?<identifier>[a-zA-Z\\d\\-.]+)(\\?i=(?<identifier2>\\d+))?");
public static final String SEARCH_PREFIX = "amsearch:";
public static final int MAX_PAGE_ITEMS = 300;
public static final String API_BASE = "https://api.music.apple.com/v1/";
Expand Down

0 comments on commit 934a1a5

Please sign in to comment.