aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-20 16:51:33 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-20 16:51:33 +0100
commit8569f3d629c1ec2e4b1d8472238aedb1d877d5f0 (patch)
tree5bb9ad15f6967106f169f9586649c4014b0875dc
parentfed5d0326042900449443c2519327f8a6334d872 (diff)
[vh1] Modernize
-rw-r--r--youtube_dl/extractor/vh1.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vh1.py b/youtube_dl/extractor/vh1.py
index 2f77e3898..6be3774b7 100644
--- a/youtube_dl/extractor/vh1.py
+++ b/youtube_dl/extractor/vh1.py
@@ -121,4 +121,7 @@ class VH1IE(MTVIE):
idoc = self._download_xml(
doc_url, video_id,
'Downloading info', transform_source=fix_xml_ampersands)
- return [self._get_video_info(item) for item in idoc.findall('.//item')]
+ return self.playlist_result(
+ [self._get_video_info(item) for item in idoc.findall('.//item')],
+ playlist_id=video_id,
+ )