1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[extractor/common] Use playlist id as default title

This commit is contained in:
Sergey M․ 2015-08-09 19:18:50 +06:00
parent 0dcb318f62
commit 98044462b1

View File

@ -1157,7 +1157,7 @@ def _extract_xspf_playlist(self, playlist_url, playlist_id):
entries = []
for track in playlist.findall(xpath_with_ns('./xspf:trackList/xspf:track', NS_MAP)):
title = xpath_text(
track, xpath_with_ns('./xspf:title', NS_MAP), 'title')
track, xpath_with_ns('./xspf:title', NS_MAP), 'title', default=playlist_id)
description = xpath_text(
track, xpath_with_ns('./xspf:annotation', NS_MAP), 'description')
thumbnail = xpath_text(