diff options
author | dirkf <fieldhouse@gmx.net> | 2022-02-04 11:38:44 +0000 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2022-02-04 14:28:50 +0000 |
commit | 27dbf6f0ab778a9e3d81be64a615046e6737c3f6 (patch) | |
tree | 0e2df82b9a71b73fe0a5786b3b76a3f15eade0a7 /youtube_dl/extractor/tv2dk.py | |
parent | 61d791726f67255c2ed3c0bb6ee24c8c1faeb028 (diff) | |
download | youtube-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.py | 2 |
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) |