1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

regex group not needed

This commit is contained in:
kr4ssi@tuta.io 2020-01-20 08:35:47 +01:00
parent b0377d0014
commit 1ed5038a0f

View File

@ -162,7 +162,7 @@ class XFileShareIE(InfoExtractor):
if not formats:
urls = []
for regex in (
r'(?:file|src)\s*:\s*(["\']|(?:\\\'))(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1',
r'(?:file|src)\s*:\s*(["\']|\\\')(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1',
r'file_link\s*=\s*(["\'])(?P<url>http(?:(?!\1).)+)\1',
r'addVariable\((\\?["\'])file\1\s*,\s*(\\?["\'])(?P<url>http(?:(?!\2).)+)\2\)',
r'<embed[^>]+src=(["\'])(?P<url>http(?:(?!\1).)+\.(?:m3u8|mp4|flv)(?:(?!\1).)*)\1'):