From: dirkf Date: Fri, 4 Feb 2022 11:38:44 +0000 (+0000) Subject: Return the item itself if playlist has one entry X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=27dbf6f0ab778a9e3d81be64a615046e6737c3f6;p=youtube-dl Return the item itself if playlist has one entry Removes playlist spam from log --- diff --git a/youtube_dl/extractor/tv2dk.py b/youtube_dl/extractor/tv2dk.py index 106a081e1..ec5cbdf03 100644 --- 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)