Skip to content

Commit

Permalink
Proxy video stream option
Browse files Browse the repository at this point in the history
  • Loading branch information
nb557 committed Jan 24, 2024
1 parent 935e918 commit 65f23a1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
1 change: 1 addition & 0 deletions cloudflare_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default {
}
if (apiUrl.hostname === "rezka.ag" || apiUrl.hostname === "hdrezka.ag" || apiUrl.hostname === "hdrezka.me" || apiUrl.hostname === "hdrezka.sh") {
request.headers.set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36");
request.headers.set("Cookie", atob("ZGxlX3VzZXJfdGFrZW49MTsgZGxlX3VzZXJfdG9rZW49NWEwN2IwNzFhYjNjMzIwMWUxMjYxZTlhYTM0ODAyOTM7IGRsZV91c2VyX2lkPTk3NTE5NTsgZGxlX3Bhc3N3b3JkPTM0M2FkOTAxYzBmMTY4MTk1OTU1NTY5MjY3NmM1YmU5"));
}
if (apiUrl.hostname.endsWith(".svetacdn.in")) {
request.headers.set("Origin", "https://videocdn.tv");
Expand Down
1 change: 1 addition & 0 deletions deno_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ async function handle(request, connInfo) {
}
if (apiUrl.hostname === "rezka.ag" || apiUrl.hostname === "hdrezka.ag" || apiUrl.hostname === "hdrezka.me" || apiUrl.hostname === "hdrezka.sh") {
request.headers.set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36");
request.headers.set("Cookie", atob("ZGxlX3VzZXJfdGFrZW49MTsgZGxlX3VzZXJfdG9rZW49NWEwN2IwNzFhYjNjMzIwMWUxMjYxZTlhYTM0ODAyOTM7IGRsZV91c2VyX2lkPTk3NTE5NTsgZGxlX3Bhc3N3b3JkPTM0M2FkOTAxYzBmMTY4MTk1OTU1NTY5MjY3NmM1YmU5"));
}
if (apiUrl.hostname.endsWith(".svetacdn.in")) {
request.headers.set("Origin", "https://videocdn.tv");
Expand Down
Loading

0 comments on commit 65f23a1

Please sign in to comment.