diff options
author | Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> | 2021-11-18 21:43:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 21:43:39 +0530 |
commit | 11852843e738bfdb01e1c65d3466629dc9645813 (patch) | |
tree | 112bee926c66da221888b302596bf4e3767f069b | |
parent | 525d9e0c7d4e8e1ad121d75f14ae40e8ee023079 (diff) | |
download | hypervideo-pre-11852843e738bfdb01e1c65d3466629dc9645813.tar.lz hypervideo-pre-11852843e738bfdb01e1c65d3466629dc9645813.tar.xz hypervideo-pre-11852843e738bfdb01e1c65d3466629dc9645813.zip |
[AmazonStoreIE] Fix regex to not match vdp urls (#1699)
Closes: #1698
Authored by: Ashish0804
-rw-r--r-- | yt_dlp/extractor/amazon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/amazon.py b/yt_dlp/extractor/amazon.py index 01d6f2a54..7c5d35f47 100644 --- a/yt_dlp/extractor/amazon.py +++ b/yt_dlp/extractor/amazon.py @@ -4,7 +4,7 @@ from ..utils import int_or_none 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/', |