Fix https shared connection to youtube
This commit is contained in:
parent
a9e0fd26d7
commit
2759d5dc1f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue