don't encode urls, just pass strings

This commit is contained in:
boyska 2021-09-24 23:33:59 +02:00
parent d4525c1f66
commit 234aeac1d0

2
feed
View file

@ -101,7 +101,7 @@ class Audio(object):
def __init__(self, url, duration=None, date=None): def __init__(self, url, duration=None, date=None):
self.url = url self.url = url
if duration is None: if duration is None:
duration = get_duration(url.encode("utf-8")) duration = get_duration(url)
self.duration = duration self.duration = duration
self.date = date self.date = date
self.end_date = datetime.datetime(9999, 12, 31, tzinfo=datetime.timezone.utc) self.end_date = datetime.datetime(9999, 12, 31, tzinfo=datetime.timezone.utc)