Skip to content

Commit e752fb3

Browse files
is_short aiohttp fix (#587)
Co-authored-by: Joost Lekkerkerker <[email protected]>
1 parent 2c396a5 commit e752fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/youtubeaio/youtube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def is_short(self, video_id: str) -> bool:
307307
response = await self._api_head_request(self.session, _url)
308308
if response.status == 200:
309309
return True
310-
if response.status == 303:
310+
if response.status in {303, 302, 301}:
311311
return False
312312
raise YouTubeAPIError
313313

0 commit comments

Comments
 (0)