mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 11:31:47 +01:00
Return the item itself if playlist has one entry
Removes playlist spam from log
This commit is contained in:
parent
61d791726f
commit
27dbf6f0ab
|
@ -105,6 +105,8 @@ class TV2DKIE(InfoExtractor):
|
|||
(r'\\u002Fp\\u002F(\d+)\\u002F', r'/p/(\d+)/'), webpage,
|
||||
'partner id')
|
||||
add_entry(partner_id, kaltura_id)
|
||||
if len(entries) == 1:
|
||||
return entries[0]
|
||||
return self.playlist_result(entries)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user