aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tlc.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-09-07 17:29:06 +0100
committerRemita Amine <remitamine@gmail.com>2016-09-07 17:33:22 +0100
commitd7e794928d1b1386a8f5960ce6ece3ae88d975a1 (patch)
tree53f8aafba9649bd9c6a550904e96f619d98bc9f5 /youtube_dl/extractor/tlc.py
parent9c2718898891678038dffcb683c3948722c6b47d (diff)
[tlc] fix query string parsing
Diffstat (limited to 'youtube_dl/extractor/tlc.py')
-rw-r--r--youtube_dl/extractor/tlc.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tlc.py b/youtube_dl/extractor/tlc.py
index abad3ff64..88eb83d74 100644
--- a/youtube_dl/extractor/tlc.py
+++ b/youtube_dl/extractor/tlc.py
@@ -1,10 +1,14 @@
# encoding: utf-8
from __future__ import unicode_literals
+
import re
from .common import InfoExtractor
from .brightcove import BrightcoveLegacyIE
-from ..compat import compat_parse_qs
+from ..compat import (
+ compat_parse_qs,
+ compat_urlparse,
+)
class TlcDeIE(InfoExtractor):
@@ -35,5 +39,5 @@ class TlcDeIE(InfoExtractor):
title = mobj.group('title')
webpage = self._download_webpage(url, title)
brightcove_legacy_url = BrightcoveLegacyIE._extract_brightcove_url(webpage)
- brightcove_id = compat_parse_qs(brightcove_legacy_url)['@videoPlayer'][0]
+ brightcove_id = compat_parse_qs(compat_urlparse.urlparse(brightcove_legacy_url).query)['@videoPlayer'][0]
return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)