aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/playvid.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/playvid.py')
-rw-r--r--hypervideo_dl/extractor/playvid.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/hypervideo_dl/extractor/playvid.py b/hypervideo_dl/extractor/playvid.py
index e1c406b..1e0989d 100644
--- a/hypervideo_dl/extractor/playvid.py
+++ b/hypervideo_dl/extractor/playvid.py
@@ -1,16 +1,9 @@
-from __future__ import unicode_literals
-
import re
+import urllib.parse
from .common import InfoExtractor
-from ..compat import (
- compat_urllib_parse_unquote,
- compat_urllib_parse_unquote_plus,
-)
-from ..utils import (
- clean_html,
- ExtractorError,
-)
+from ..compat import compat_urllib_parse_unquote
+from ..utils import ExtractorError, clean_html
class PlayvidIE(InfoExtractor):
@@ -64,7 +57,7 @@ class PlayvidIE(InfoExtractor):
val = videovars_match.group(2)
if key == 'title':
- video_title = compat_urllib_parse_unquote_plus(val)
+ video_title = urllib.parse.unquote_plus(val)
if key == 'duration':
try:
duration = int(val)
@@ -81,7 +74,6 @@ class PlayvidIE(InfoExtractor):
'height': height,
'url': val,
})
- self._sort_formats(formats)
# Extract title - should be in the flashvars; if not, look elsewhere
if video_title is None: