Skip to content

Commit

Permalink
Update for player f1ca6900
Browse files Browse the repository at this point in the history
Numbers can be float literals, eg '1E3'
  • Loading branch information
dirkf committed Nov 23, 2021
1 parent 622b87d commit d69983a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1589,9 +1589,9 @@ def remove(s, i):
elif re.match(r'^"[^"]*",', datac):
el, datac = find_first(r'(?s)^"([^"]*)",\s*(.*)$', datac, groups=True)
# Integer input data
elif re.match(r'^-?\d+,', datac):
elif re.match(r'^-?\d+(?:E\d+)?,', datac):
el, datac = find_first(r"(?s)^(.*?),\s*(.*)$", datac, groups=True)
el = int(el)
el = int(float(el) if 'E' in el else el)
# Reference to "n" parameter array
elif re.match('^b,', datac):
el = n
Expand Down

0 comments on commit d69983a

Please sign in to comment.