mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-01 03:22:50 -05:00
[utils] Add urshift()
Used in IqiyiIE and LeIE
This commit is contained in:
@ -2899,3 +2899,7 @@ def parse_m3u8_attributes(attrib):
|
||||
val = val[1:-1]
|
||||
info[key] = val
|
||||
return info
|
||||
|
||||
|
||||
def urshift(val, n):
|
||||
return val >> n if val >= 0 else (val + 0x100000000) >> n
|
||||
|
Reference in New Issue
Block a user