Skip to content

Commit

Permalink
add html unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenstorm committed Jan 13, 2025
1 parent 217bdd8 commit 673622b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube-dl/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def download():
print(subtitles[:300])

# Save metadata
metadata_content = f"title:{title}\ndescription:{description}"
metadata_content = f"title:{html.unescape(title)}\ndescription:{
html.unescape(description)}"
# Formatted as:
# title:[TITLE]
# description:[DESCRIPTION]
Expand Down

0 comments on commit 673622b

Please sign in to comment.