From 234aeac1d02811e84d886c5afacd5c9cdaec3226 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 24 Sep 2021 23:33:59 +0200 Subject: [PATCH] don't encode urls, just pass strings --- feed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed b/feed index eda2207..70ab937 100755 --- a/feed +++ b/feed @@ -101,7 +101,7 @@ class Audio(object): def __init__(self, url, duration=None, date=None): self.url = url if duration is None: - duration = get_duration(url.encode("utf-8")) + duration = get_duration(url) self.duration = duration self.date = date self.end_date = datetime.datetime(9999, 12, 31, tzinfo=datetime.timezone.utc)