mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
parent
7d431781c3
commit
8114eefa19
18 changed files with 338 additions and 41 deletions
|
|
@ -17,7 +17,9 @@ const
|
|||
"abs.twimg.com",
|
||||
"pbs.twimg.com",
|
||||
"video.twimg.com",
|
||||
"x.com"
|
||||
"x.com",
|
||||
"pscp.tv",
|
||||
"video.pscp.tv"
|
||||
]
|
||||
|
||||
proc setHmacKey*(key: string) =
|
||||
|
|
@ -55,7 +57,8 @@ proc filterParams*(params: Table): seq[(string, string)] =
|
|||
result.add p
|
||||
|
||||
proc isTwitterUrl*(uri: Uri): bool =
|
||||
uri.hostname in twitterDomains
|
||||
uri.hostname in twitterDomains or
|
||||
uri.hostname.endsWith(".video.pscp.tv")
|
||||
|
||||
proc isTwitterUrl*(url: string): bool =
|
||||
isTwitterUrl(parseUri(url))
|
||||
|
|
|
|||
Loading…
Reference in a new issue