Kackle commited on
Commit
7c2a9df
·
verified ·
1 Parent(s): ae3c884

fix for cookie

Browse files
Files changed (1) hide show
  1. video_parser.py +3 -1
video_parser.py CHANGED
@@ -14,7 +14,9 @@ class VideoParser:
14
  ydl_opts = {
15
  'format': 'best[height<=720]',
16
  'outtmpl': os.path.join(self.temp_dir, '%(title)s.%(ext)s'),
17
- 'quiet': True
 
 
18
  }
19
 
20
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
 
14
  ydl_opts = {
15
  'format': 'best[height<=720]',
16
  'outtmpl': os.path.join(self.temp_dir, '%(title)s.%(ext)s'),
17
+ 'quiet': True,
18
+ 'cookiesfrombrowser': ('chrome',),
19
+ 'extractor_args': {'youtube': {'skip': ['dash', 'hls']}}
20
  }
21
 
22
  with yt_dlp.YoutubeDL(ydl_opts) as ydl: