1
1
mirror of https://github.com/neosubhamoy/pytubepp.git synced 2025-12-20 01:09:36 +05:30

(fixed): pytubefix.exceptions.VideoUnavailable issue temporarily by switching to ANDROID_VR client from ANDROID_TESTSUITE

This commit is contained in:
2024-09-25 14:08:26 +05:30
parent 719cde7591
commit f1778a2859

View File

@@ -248,7 +248,7 @@ def set_global_video_info(link):
if is_valid_url(link):
global video, author, title, thumbnail, views, stream, stream_resolutions, maxres
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
title = re.sub(r'[\\/*?:"<>|]', '_', author + '-' + video.title)
thumbnail = video.thumbnail_url