More gpo fixes caused by youtube streaming and duration.
This commit is contained in:
parent
f7509f1a9b
commit
5414410551
6
bin/gpo
6
bin/gpo
|
@ -721,8 +721,10 @@ class gPodderCli(object):
|
|||
return True
|
||||
|
||||
def youtube(self, url):
|
||||
fmt_ids = youtube.get_fmt_ids(self._config.youtube)
|
||||
yurl = youtube.get_real_download_url(url, False, fmt_ids)
|
||||
fmt_ids = youtube.get_fmt_ids(self._config.youtube, False)
|
||||
yurl, duration = youtube.get_real_download_url(url, False, fmt_ids)
|
||||
if duration is not None:
|
||||
episode.total_time = int(int(duration) / 1000)
|
||||
print(yurl)
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue