Maximofn commited on
Commit
830ffb4
·
1 Parent(s): 1e1be2d

If twitch video has 1080p or 720p quality add 60 to quality string

Browse files
Files changed (1) hide show
  1. download.py +2 -0
download.py CHANGED
@@ -47,6 +47,8 @@ def download_twitch(url, type):
47
  # Select quality
48
  if type == DOWNLOAD_VIDEO:
49
  args.quality = qualitys[0]
 
 
50
  args.format = DOWNLOAD_VIDEO_FORMAT
51
  args.output = f'{VIDEO_FOLDER}/{DOWNLOAD_VIDEO_NAME}.{args.format}'
52
  elif type == DOWNLOAD_AUDIO:
 
47
  # Select quality
48
  if type == DOWNLOAD_VIDEO:
49
  args.quality = qualitys[0]
50
+ if args.quality == '1080p' or args.quality == '720p':
51
+ args.quality = f'{args.quality}60'
52
  args.format = DOWNLOAD_VIDEO_FORMAT
53
  args.output = f'{VIDEO_FOLDER}/{DOWNLOAD_VIDEO_NAME}.{args.format}'
54
  elif type == DOWNLOAD_AUDIO: