mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-15 19:16:46 +01:00
[cleanup] minor fixes
This commit is contained in:
parent
59a7a13ef9
commit
c586f9e8de
6 changed files with 18 additions and 16 deletions
|
|
@ -6586,5 +6586,5 @@ def number_of_digits(number):
|
|||
|
||||
def join_nonempty(*values, delim='-', from_dict=None):
|
||||
if from_dict is not None:
|
||||
values = operator.itemgetter(values)(from_dict)
|
||||
values = map(from_dict.get, values)
|
||||
return delim.join(map(str, filter(None, values)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue