Skip to content

Commit

Permalink
minor: include title and channel as metadata
Browse files Browse the repository at this point in the history
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
  • Loading branch information
thiswillbeyourgithub committed Oct 25, 2024
1 parent 391fab7 commit 960fdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wdoc/utils/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ def cached_yt_loader(
raise Exception(f"Subtitles found but not for the languages '{language}' nor '{translation}' for youtube video entitled '{title}' at link '{path}'\nAvailable languages were: '{available}'")

# get metadata too
meta = {}
meta = {"title": title, "author": info["channel"]}
for k in ["description", "categories", "tags", "channel", "upload_date", "duration_string", "language"]:
if k in info:
meta["yt_" + k] = info[k]
Expand Down

0 comments on commit 960fdce

Please sign in to comment.