Added project files
This commit is contained in:
parent
84547f6dcb
commit
94a5aff260
23 changed files with 1042 additions and 1 deletions
33
core/gtv_api.go
Normal file
33
core/gtv_api.go
Normal file
|
@ -0,0 +1,33 @@
|
|||
// Copyright (c) 2025, Julian Müller (ChaoticByte)
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
const ApiBaseurlStreamEpisodeInfo = "https://api.gronkh.tv/v1/video/info?episode=%s"
|
||||
const ApiBaseurlStreamEpisodePlInfo = "https://api.gronkh.tv/v1/video/playlist?episode=%s"
|
||||
|
||||
var ApiHeadersBase = http.Header{
|
||||
"User-Agent": {"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"},
|
||||
"Accept-Language": {"de,en-US;q=0.7,en;q=0.3"},
|
||||
//"Accept-Encoding": {"gzip"},
|
||||
"Origin": {"https://gronkh.tv"},
|
||||
"Referer": {"https://gronkh.tv/"},
|
||||
"Connection": {"keep-alive"},
|
||||
"Sec-Fetch-Dest": {"empty"},
|
||||
"Sec-Fetch-Mode": {"cors"},
|
||||
"Sec-Fetch-Site": {"same-site"},
|
||||
"Pragma": {"no-cache"},
|
||||
"Cache-Control": {"no-cache"},
|
||||
"TE": {"trailers"},
|
||||
}
|
||||
|
||||
var ApiHeadersMetaAdditional = http.Header{
|
||||
"Accept": {"application/json, text/plain, */*"},
|
||||
}
|
||||
|
||||
var ApiHeadersVideoAdditional = http.Header{
|
||||
"Accept": {"*/*"},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue