mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2026-05-04 16:41:37 +00:00
Remove with requests when it is unnecessary
This commit is contained in:
parent
73b4fbabf7
commit
68cfbb809f
6 changed files with 244 additions and 244 deletions
|
|
@ -11,9 +11,9 @@ def extract_manifest(id):
|
|||
return video
|
||||
|
||||
if video["second__providedDashUrl"]:
|
||||
with requests.get(video["second__providedDashUrl"]) as r:
|
||||
r.raise_for_status()
|
||||
return r
|
||||
r = requests.get(video["second__providedDashUrl"])
|
||||
r.raise_for_status()
|
||||
return r
|
||||
|
||||
adaptation_sets_dict = {}
|
||||
for f in video["adaptiveFormats"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue