Skip to content

Commit

Permalink
[AmazonStoreIE] Fix regex to not match vdp urls (yt-dlp#1699)
Browse files Browse the repository at this point in the history
Closes: yt-dlp#1698 
Authored by: Ashish0804
  • Loading branch information
Ashish0804 authored Nov 18, 2021
1 parent 525d9e0 commit 1185284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class AmazonStoreIE(InfoExtractor):
_VALID_URL = r'(?:https?://)(?:www\.)?amazon\.(?:[a-z]{2,3})(?:\.[a-z]{2})?/[^/]*/?(?:dp|gp/product)/(?P<id>[^/&#$?]+)'
_VALID_URL = r'(?:https?://)(?:www\.)?amazon\.(?:[a-z]{2,3})(?:\.[a-z]{2})?/(?:[^/]+/)?(?:dp|gp/product)/(?P<id>[^/&#$?]+)'

_TESTS = [{
'url': 'https://www.amazon.co.uk/dp/B098XNCHLD/',
Expand Down

0 comments on commit 1185284

Please sign in to comment.