aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/grooveshark.py
diff options
context:
space:
mode:
authorcodesparkle <adam.thalhammer@outlook.com>2015-01-30 18:41:40 +1100
committercodesparkle <adam.thalhammer@outlook.com>2015-01-30 18:41:40 +1100
commit52585fd6dcd5020f2800d133588d7232419dddc0 (patch)
treeb7b221cf17b780770275ab60595adbda7940ab4d /youtube_dl/extractor/grooveshark.py
parentc03844a4ec0bffef4803394545c7a5cc16dc70e1 (diff)
The opening curly brace `{` is a regex reserved [control character](http://stackoverflow.com/a/400316/1106367), so it needs to be escaped.
Diffstat (limited to 'youtube_dl/extractor/grooveshark.py')
-rw-r--r--youtube_dl/extractor/grooveshark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/grooveshark.py b/youtube_dl/extractor/grooveshark.py
index fff74a70a..848d17beb 100644
--- a/youtube_dl/extractor/grooveshark.py
+++ b/youtube_dl/extractor/grooveshark.py
@@ -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):