projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d7917
)
Return the item itself if playlist has one entry
author
dirkf
<fieldhouse@gmx.net>
Fri, 4 Feb 2022 11:38:44 +0000
(11:38 +0000)
committer
dirkf
<fieldhouse@gmx.net>
Fri, 4 Feb 2022 14:28:50 +0000
(14:28 +0000)
Removes playlist spam from log
youtube_dl/extractor/tv2dk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tv2dk.py
b/youtube_dl/extractor/tv2dk.py
index 106a081e1e2a4993a8e7e3dfef90647135f842b6..ec5cbdf03537ee7d83ca6b3e94e34bc1aba138be 100644
(file)
--- 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)