diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-04 17:54:02 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-04 17:54:02 +0600 |
commit | 536b94e56fdf0fd2dd1c6d6d92112866949505c4 (patch) | |
tree | 2a89f800c78fdb399b71fbe8d727cec1b8df016b /youtube_dl/utils.py | |
parent | e9f65f87496d740fbb61e036c710bf2c174f1cc0 (diff) | |
parent | 5c29dbd0c76083eaf596f623fabb612575f71861 (diff) | |
download | youtube-dl-536b94e56fdf0fd2dd1c6d6d92112866949505c4.tar.xz |
Merge branch 'snipem-gamersyde'
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 90e0ed9ab..e1761265c 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1577,7 +1577,7 @@ def js_to_json(code): '(?:[^'\\]*(?:\\\\|\\['"nu]))*[^'\\]*'| [a-zA-Z_][.a-zA-Z_0-9]* ''', fix_kv, code) - res = re.sub(r',(\s*\])', lambda m: m.group(1), res) + res = re.sub(r',(\s*[\]}])', lambda m: m.group(1), res) return res |