mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
* Revert "Fix broken video playback by forcing fmp4"
This reverts commit 52db03b73a.
* Fix audio url in video m3u8
* Upgrade hls.js to 1.5.1 and use full version
This commit is contained in:
parent
52db03b73a
commit
cdff5e9b1c
5 changed files with 9 additions and 9 deletions
|
|
@ -82,6 +82,8 @@ proc proxifyVideo*(manifest: string; proxy: bool): string =
|
|||
for line in manifest.splitLines:
|
||||
let url =
|
||||
if line.startsWith("#EXT-X-MAP:URI"): line[16 .. ^2]
|
||||
elif line.startsWith("#EXT-X-MEDIA") and "URI=" in line:
|
||||
line[line.find("URI=") + 5 .. -1 + line.find("\"", start= 5 + line.find("URI="))]
|
||||
else: line
|
||||
if url.startsWith('/'):
|
||||
let path = "https://video.twimg.com" & url
|
||||
|
|
|
|||
Loading…
Reference in a new issue