Skip to content

Commit

Permalink
check for slideshow first
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed Jul 14, 2023
1 parent f00c886 commit e29a6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alexBot/cogs/video_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def download_video(url, id):
except DownloadError:
raise NotAVideo(False)
try:
if data['requested_downloads'][0]['ext'] not in ['mp4', 'gif', 'm4a', 'mov']:
raise NotAVideo(data['url'])
if data['requested_downloads'][0]['width'] == 0:
raise NotAVideo(False, 'SlideShow')
if data['requested_downloads'][0]['ext'] not in ['mp4', 'gif', 'm4a', 'mov']:
raise NotAVideo(data['url'])
except KeyError:
pass
return (
Expand Down

0 comments on commit e29a6d9

Please sign in to comment.