Return the item itself if playlist has one entry
authordirkf <fieldhouse@gmx.net>
Fri, 4 Feb 2022 11:38:44 +0000 (11:38 +0000)
committerdirkf <fieldhouse@gmx.net>
Fri, 4 Feb 2022 14:28:50 +0000 (14:28 +0000)
Removes playlist spam from log

youtube_dl/extractor/tv2dk.py

index 106a081e1e2a4993a8e7e3dfef90647135f842b6..ec5cbdf03537ee7d83ca6b3e94e34bc1aba138be 100644 (file)
@@ -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)