developer28 commited on
Commit
b647a49
·
verified ·
1 Parent(s): 595112b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -56,6 +56,9 @@ def download_audio(url):
56
  'no_warnings': True,
57
  'extract_flat': False,
58
  'ignoreerrors': False,
 
 
 
59
  # Add user agent to avoid bot detection
60
  'http_headers': {
61
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
@@ -151,6 +154,8 @@ def test_video_access(url):
151
  'no_warnings': True,
152
  'extract_flat': False,
153
  'skip_download': True,
 
 
154
  'extractor_args': {'youtubetab': 'skip=authcheck'} # ✅ ADD THIS LINE
155
  }
156
 
 
56
  'no_warnings': True,
57
  'extract_flat': False,
58
  'ignoreerrors': False,
59
+ 'noplaylist': True,
60
+ 'force_generic_extractor': False,
61
+
62
  # Add user agent to avoid bot detection
63
  'http_headers': {
64
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
 
154
  'no_warnings': True,
155
  'extract_flat': False,
156
  'skip_download': True,
157
+ 'noplaylist': True,
158
+ 'force_generic_extractor': False,
159
  'extractor_args': {'youtubetab': 'skip=authcheck'} # ✅ ADD THIS LINE
160
  }
161