mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 08:35:32 +00:00
[utils] Allow partial application for even more functions (#11437)
Fixes b6dc2c49e8
Authored by: Grub4K
This commit is contained in:
@ -5294,6 +5294,7 @@ def make_archive_id(ie, video_id):
|
||||
return f'{ie_key.lower()} {video_id}'
|
||||
|
||||
|
||||
@partial_application
|
||||
def truncate_string(s, left, right=0):
|
||||
assert left > 3 and right >= 0
|
||||
if s is None or len(s) <= left + right:
|
||||
|
Reference in New Issue
Block a user