1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

[cleanup] Add keyword automatically to SearchIE descriptions

and some minor cleanup of docs
This commit is contained in:
pukkandan
2021-10-23 19:59:52 +05:30
parent ec11a9f4a2
commit 96565c7e55
14 changed files with 78 additions and 71 deletions

View File

@ -31,6 +31,11 @@ _TEXT_STYLES = {
def format_text(text, f):
'''
@param f String representation of formatting to apply in the form:
[style] [light] font_color [on [light] bg_color]
Eg: "red", "bold green on light blue"
'''
f = f.upper()
tokens = f.strip().split()