fix: tidal link detection improvement
This commit is contained in:
parent
7e3a73c9f8
commit
abf1cd8f9a
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ const URL_MATCH_HANDLERS = [
|
||||||
const {
|
const {
|
||||||
groups: { item_type, item_id },
|
groups: { item_type, item_id },
|
||||||
} =
|
} =
|
||||||
/(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:tidalhi.fi\/|tidal.com\/|tidal(?:-nocookie)?\.com\S*?[^\w\s-]).*?(?<item_type>(?:track|album)).*?(?<item_id>[\d]{9,})/gi.exec(
|
/(?<protocol>(?:tidal:track:|https?))?(?::\/\/)?(?<host>(?:(?<subdomain>.+)\.)?(?<domain>tidal\.com|tidalhi\.fi)).*?\/(?<item_type>(?:album|artist|track))\/(?<item_id>[0-9]+)/gi.exec(
|
||||||
original_url,
|
original_url,
|
||||||
) ?? { groups: {} };
|
) ?? { groups: {} };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue