From 725beab85793eda503fb7a0bc724edea3e0fdf35 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Mon, 17 Jun 2024 17:18:45 +0200 Subject: [PATCH] Youtube: renamed attributes to be compatible with constructor --- syng/sources/youtube.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syng/sources/youtube.py b/syng/sources/youtube.py index f8711cb..0d839ab 100644 --- a/syng/sources/youtube.py +++ b/syng/sources/youtube.py @@ -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)