We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4af792 commit 381ac87Copy full SHA for 381ac87
1 file changed
src/download.py
@@ -36,7 +36,11 @@
36
while url := data["next"]:
37
n += 1
38
pbar.update(1)
39
- response = requests.get(url, headers=headers)
+ response = (
40
+ requests.get(url)
41
+ if resource_name == "youtube"
42
+ else requests.get(url, headers=headers)
43
+ )
44
45
if response.status_code != 200:
46
raise Exception(f"Error {response.status_code}: {response.text}")
0 commit comments