Return the item itself if playlist has one entry

Removes playlist spam from log
pull/28547/merge
dirkf 2022-02-04 11:38:44 +00:00
parent 61d791726f
commit 27dbf6f0ab
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ class TV2DKIE(InfoExtractor):
(r'\\u002Fp\\u002F(\d+)\\u002F', r'/p/(\d+)/'), webpage, (r'\\u002Fp\\u002F(\d+)\\u002F', r'/p/(\d+)/'), webpage,
'partner id') 'partner id')
add_entry(partner_id, kaltura_id) add_entry(partner_id, kaltura_id)
if len(entries) == 1:
return entries[0]
return self.playlist_result(entries) return self.playlist_result(entries)