aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tv2dk.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2022-02-04 11:38:44 +0000
committerdirkf <fieldhouse@gmx.net>2022-02-04 14:28:50 +0000
commit27dbf6f0ab778a9e3d81be64a615046e6737c3f6 (patch)
tree0e2df82b9a71b73fe0a5786b3b76a3f15eade0a7 /youtube_dl/extractor/tv2dk.py
parent61d791726f67255c2ed3c0bb6ee24c8c1faeb028 (diff)
downloadyoutube-dl-27dbf6f0ab778a9e3d81be64a615046e6737c3f6.tar.xz
Return the item itself if playlist has one entry
Removes playlist spam from log
Diffstat (limited to 'youtube_dl/extractor/tv2dk.py')
-rw-r--r--youtube_dl/extractor/tv2dk.py2
1 files changed, 2 insertions, 0 deletions
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)