[Cleanup] Remove some unnecessary groups in regexes (#1738)
Authored by: Ashish0804
This commit is contained in:
parent
0cbed930c8
commit
73f035e1fe
22 changed files with 31 additions and 30 deletions
|
|
@ -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/',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue