mirror of
https://github.com/neosubhamoy/pytubepp.git
synced 2025-12-20 03:29:36 +05:30
(fixed): pytubefix.exceptions.VideoUnavailable issue temporarily by switching to ANDROID_VR client from ANDROID_TESTSUITE
This commit is contained in:
@@ -248,7 +248,7 @@ def set_global_video_info(link):
|
|||||||
if is_valid_url(link):
|
if is_valid_url(link):
|
||||||
global video, author, title, thumbnail, views, stream, stream_resolutions, maxres
|
global video, author, title, thumbnail, views, stream, stream_resolutions, maxres
|
||||||
link = is_valid_url(link).group(1)
|
link = is_valid_url(link).group(1)
|
||||||
video = YouTube(link, on_progress_callback=progress)
|
video = YouTube(link, 'ANDROID_VR', on_progress_callback=progress)
|
||||||
author = video.author
|
author = video.author
|
||||||
title = re.sub(r'[\\/*?:"<>|]', '_', author + '-' + video.title)
|
title = re.sub(r'[\\/*?:"<>|]', '_', author + '-' + video.title)
|
||||||
thumbnail = video.thumbnail_url
|
thumbnail = video.thumbnail_url
|
||||||
|
|||||||
Reference in New Issue
Block a user