mirror of
https://github.com/neosubhamoy/pytubepp.git
synced 2025-12-20 02:19:35 +05:30
(refactor): removed defaulting to 'WEB' client
This commit is contained in:
@@ -51,7 +51,7 @@ class YouTubeDownloader:
|
|||||||
|
|
||||||
if is_valid_url(link):
|
if is_valid_url(link):
|
||||||
link = is_valid_url(link).group(1)
|
link = is_valid_url(link).group(1)
|
||||||
self.video = YouTube(link, 'WEB', on_progress_callback=progress)
|
self.video = YouTube(link, on_progress_callback=progress)
|
||||||
self.author = self.video.author
|
self.author = self.video.author
|
||||||
self.title = re.sub(r'[\\/*?:"<>|]', '_', self.author + ' - ' + self.video.title)
|
self.title = re.sub(r'[\\/*?:"<>|]', '_', self.author + ' - ' + self.video.title)
|
||||||
self.thumbnail = self.video.thumbnail_url
|
self.thumbnail = self.video.thumbnail_url
|
||||||
|
|||||||
Reference in New Issue
Block a user