diff options
author | Ashish Gupta <39122144+Ashish0804@users.noreply.github.com> | 2021-11-30 21:44:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 21:44:47 +0530 |
commit | 73f035e1feba7261d719b77e24b9fa3da93b9ecf (patch) | |
tree | 78f1769b7fcf17f64b2865b63c9d4a9d2e8ae8c9 /yt_dlp/extractor/chingari.py | |
parent | 0cbed930c8f5b14500557b689c754b9ad0c0436a (diff) |
[Cleanup] Remove some unnecessary groups in regexes (#1738)
Authored by: Ashish0804
Diffstat (limited to 'yt_dlp/extractor/chingari.py')
-rw-r--r-- | yt_dlp/extractor/chingari.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/chingari.py b/yt_dlp/extractor/chingari.py index 6bdc4f6bb..e6841fb8b 100644 --- a/yt_dlp/extractor/chingari.py +++ b/yt_dlp/extractor/chingari.py @@ -67,7 +67,7 @@ class ChingariBaseIE(InfoExtractor): class ChingariIE(ChingariBaseIE): - _VALID_URL = r'(?:https?://)(?:www\.)?chingari\.io/share/post\?id=(?P<id>[^&/#?]+)' + _VALID_URL = r'https?://(?:www\.)?chingari\.io/share/post\?id=(?P<id>[^&/#?]+)' _TESTS = [{ 'url': 'https://chingari.io/share/post?id=612f8f4ce1dc57090e8a7beb', 'info_dict': { @@ -102,7 +102,7 @@ class ChingariIE(ChingariBaseIE): class ChingariUserIE(ChingariBaseIE): - _VALID_URL = r'(?:https?://)(?:www\.)?chingari\.io/(?!share/post)(?P<id>[^/?]+)' + _VALID_URL = r'https?://(?:www\.)?chingari\.io/(?!share/post)(?P<id>[^/?]+)' _TESTS = [{ 'url': 'https://chingari.io/dada1023', 'playlist_mincount': 3, |