don't encode urls, just pass strings
This commit is contained in:
parent
d4525c1f66
commit
234aeac1d0
1 changed files with 1 additions and 1 deletions
2
feed
2
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)
|
||||
|
|
Loading…
Reference in a new issue