The opening curly brace `{` is a regex reserved [control character](http://stackoverf...
authorcodesparkle <adam.thalhammer@outlook.com>
Fri, 30 Jan 2015 07:41:40 +0000 (18:41 +1100)
committercodesparkle <adam.thalhammer@outlook.com>
Fri, 30 Jan 2015 07:41:40 +0000 (18:41 +1100)
youtube_dl/extractor/generic.py
youtube_dl/extractor/grooveshark.py

index 41884ed7a5b89e021eb6515dc8b8accdd2816136..a6f102a4e8b380bcf9d406f2c02059ab469c502d 100644 (file)
@@ -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:
index fff74a70a891fc163ff488408e4df348564b8a29..848d17beb4d3559cb818f14795655b12912e0f11 100644 (file)
@@ -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):