Fix https shared connection to youtube

This commit is contained in:
BreadTube 2025-09-30 00:30:29 +09:00 committed by Corentin
commit 2759d5dc1f

View file

@ -62,6 +62,7 @@ class YoutubeManager:
try: try:
connection.request('GET', f'/shorts/{video_id}') connection.request('GET', f'/shorts/{video_id}')
response = connection.getresponse() response = connection.getresponse()
response.read()
return response.status != self.SHORTS_CHECK_STATUS return response.status != self.SHORTS_CHECK_STATUS
except Exception as error: except Exception as error:
raise RuntimeError(f'Exception calling YouTube shorts ({video_id}): {error}') from error raise RuntimeError(f'Exception calling YouTube shorts ({video_id}): {error}') from error