We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf4d43 commit ad74058Copy full SHA for ad74058
1 file changed
PyYouTube/youtube_dl.py
@@ -68,4 +68,11 @@ def url(self, itag:str):
68
if url:
69
return url[0]
70
else:
71
- raise Error('this tag not avilable')
+ raise Error('this tag not avilable')
72
+
73
+ def besturl(self):
74
+ formats_ = self.format
75
+ for qu in formats_ :
76
+ if qu['acodec'] != 'none' and qu['vcodec'] != 'none':
77
+ url_ = qu['url']
78
+ return url_
0 commit comments