commit: 27dbf6f0ab778a9e3d81be64a615046e6737c3f6
parent 61d791726f67255c2ed3c0bb6ee24c8c1faeb028
Author: dirkf <fieldhouse@gmx.net>
Date: Fri, 4 Feb 2022 11:38:44 +0000
Return the item itself if playlist has one entry
Removes playlist spam from log
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/youtube_dl/extractor/tv2dk.py b/youtube_dl/extractor/tv2dk.py
@@ -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)