1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 19:44:33 -04:00

[cleanup] minor fixes

This commit is contained in:
pukkandan
2021-11-10 04:14:42 +05:30
parent 59a7a13ef9
commit c586f9e8de
6 changed files with 18 additions and 16 deletions

View File

@@ -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)))