mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-25 01:07:19 +00:00
The opening curly brace {
is a regex reserved [control character](http://stackoverflow.com/a/400316/1106367), so it needs to be escaped.
This commit is contained in:
parent
c03844a4ec
commit
52585fd6dc
2 changed files with 2 additions and 2 deletions
|
@ -1073,7 +1073,7 @@ class GenericIE(InfoExtractor):
|
|||
found = filter_video(re.findall(r'''(?xs)
|
||||
flowplayer\("[^"]+",\s*
|
||||
\{[^}]+?\}\s*,
|
||||
\s*{[^}]+? ["']?clip["']?\s*:\s*\{\s*
|
||||
\s*\{[^}]+? ["']?clip["']?\s*:\s*\{\s*
|
||||
["']?url["']?\s*:\s*["']([^"']+)["']
|
||||
''', webpage))
|
||||
if not found:
|
||||
|
|
|
@ -83,7 +83,7 @@ class GroovesharkIE(InfoExtractor):
|
|||
return compat_urlparse.urlunparse((uri.scheme, uri.netloc, obj['attrs']['data'], None, None, None))
|
||||
|
||||
def _transform_bootstrap(self, js):
|
||||
return re.split('(?m)^\s*try\s*{', js)[0] \
|
||||
return re.split('(?m)^\s*try\s*\{', js)[0] \
|
||||
.split(' = ', 1)[1].strip().rstrip(';')
|
||||
|
||||
def _transform_meta(self, js):
|
||||
|
|
Loading…
Reference in a new issue