mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support vmap/amplify video card
This commit is contained in:
parent
ce6dace1d7
commit
8a45afdd46
3 changed files with 31 additions and 10 deletions
|
|
@ -191,6 +191,12 @@ routes:
|
|||
let client = newAsyncHttpClient()
|
||||
var content = await client.getContent(url)
|
||||
|
||||
if ".vmap" in url:
|
||||
var m: RegexMatch
|
||||
discard content.find(re"""url="(.+.m3u8)"""", m)
|
||||
url = decodeUrl(content[m.group(0)[0]])
|
||||
content = await client.getContent(url)
|
||||
|
||||
if ".m3u8" in url:
|
||||
content = proxifyVideo(content, prefs.proxyVideos)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue