Youtube: renamed attributes to be compatible with constructor
This commit is contained in:
parent
ae630b7236
commit
725beab857
1 changed files with 3 additions and 3 deletions
|
@ -57,10 +57,10 @@ class YouTube:
|
|||
"""
|
||||
url = search_result["url"]
|
||||
cls.__cache__[url] = {
|
||||
"length": search_result["duration"],
|
||||
"duration": search_result["duration"],
|
||||
"title": search_result["title"],
|
||||
"author": search_result["channel"],
|
||||
"watch_url": url,
|
||||
"channel": search_result["channel"],
|
||||
"url": url,
|
||||
}
|
||||
return cls(url)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue