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

(refactor): removed ANDROID_VR as it's now default from Pytubefix 7.0.0

This commit is contained in:
2024-09-26 19:39:10 +05:30
parent 422a04c3f0
commit 4e01c20cd3

View File

@@ -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, 'ANDROID_VR', on_progress_callback=progress) video = YouTube(link, 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