[Docs] add docs for youtube channel (#1072)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2023-12-28 21:08:48 +05:30
committed by GitHub
parent 7a026ea282
commit 12e6eaf802
6 changed files with 26 additions and 8 deletions

View File

@@ -189,8 +189,7 @@ class EmbedChain(JSONSerializable):
data_type = detect_datatype(source)
# `source_hash` is the md5 hash of the source argument
hash_object = hashlib.md5(str(source).encode("utf-8"))
source_hash = hash_object.hexdigest()
source_hash = hashlib.md5(str(source).encode("utf-8")).hexdigest()
self.user_asks.append([source, data_type.value, metadata])