Skip to content

Commit e430d48

Browse files
committed
fix: update regex patterns in Deezer and Tidal sources
1 parent d03f692 commit e430d48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/sources/deezer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class DeezerSource {
1313
this.searchTerms = ['dzsearch']
1414
this.recommendationTerm = ['dzrec']
1515
this.patterns = [
16-
/^https?:\/\/(?:www\.)?deezer\.com\/(?:[a-z]+(?:-[a-z]+)?\/)?(track|album|playlist|artist)\/(\d+)$/,
16+
/^https?:\/\/(?:www\.)?deezer\.com\/(?:[a-z]+(?:-[a-z]+)?\/)?(track|album|playlist|artist)\/(\d+)(?:\?.*)?$/,
1717
/^https?:\/\/link\.deezer\.com\/s\/([a-zA-Z0-9]+)/
1818
]
1919
this.priority = 80

src/sources/tidal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class TidalSource {
2929
this.searchTerms = ['tdsearch']
3030
this.recommendationTerm = ['tdrec']
3131
this.patterns = [
32-
/^https?:\/\/(?:(?:listen|www)\.)?tidal\.com\/(?:browse\/)?(?<type>album|track|playlist|mix)\/(?<id>[a-zA-Z0-9-]+)/
32+
/^https?:\/\/(?:(?:listen|www)\.)?tidal\.com\/(?:browse\/)?(?<type>album|track|playlist|mix)\/(?<id>[a-zA-Z0-9-]+)(?:\?.*)?$/
3333
]
3434
this.priority = 90
3535
this.token = this.config?.token

0 commit comments

Comments
 (0)