diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index 60e6e5d..a545e12 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -5,7 +5,7 @@ import { Store } from "@willsoto/node-konfig-core"; let youtubePlayerReqLocation = "youtubePlayerReq"; if (Deno.env.get("YT_PLAYER_REQ_LOCATION")) { if (Deno.env.has("DENO_COMPILED")) { - youtubePlayerReqLocation = Deno.mainModule.replace("main.ts", "") + + youtubePlayerReqLocation = Deno.mainModule.replace("src/main.ts", "") + Deno.env.get("YT_PLAYER_REQ_LOCATION"); } else { youtubePlayerReqLocation = Deno.env.get( diff --git a/src/lib/jobs/potoken.ts b/src/lib/jobs/potoken.ts index 898ce39..0703f5a 100644 --- a/src/lib/jobs/potoken.ts +++ b/src/lib/jobs/potoken.ts @@ -6,7 +6,7 @@ import { Store } from "@willsoto/node-konfig-core"; let getFetchClientLocation = "getFetchClient"; if (Deno.env.get("GET_FETCH_CLIENT_LOCATION")) { if (Deno.env.has("DENO_COMPILED")) { - getFetchClientLocation = Deno.mainModule.replace("main.ts", "") + + getFetchClientLocation = Deno.mainModule.replace("src/main.ts", "") + Deno.env.get("GET_FETCH_CLIENT_LOCATION"); } else { getFetchClientLocation = Deno.env.get( diff --git a/src/main.ts b/src/main.ts index e23e4c9..2b58465 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import { konfigLoader } from "./lib/helpers/konfigLoader.ts"; let getFetchClientLocation = "getFetchClient"; if (Deno.env.get("GET_FETCH_CLIENT_LOCATION")) { if (Deno.env.has("DENO_COMPILED")) { - getFetchClientLocation = Deno.mainModule.replace("main.ts", "") + + getFetchClientLocation = Deno.mainModule.replace("src/main.ts", "") + Deno.env.get("GET_FETCH_CLIENT_LOCATION"); } else { getFetchClientLocation = Deno.env.get( diff --git a/src/routes/videoPlaybackProxy.ts b/src/routes/videoPlaybackProxy.ts index fbd0ac1..9f52a87 100644 --- a/src/routes/videoPlaybackProxy.ts +++ b/src/routes/videoPlaybackProxy.ts @@ -4,7 +4,7 @@ import { HTTPException } from "hono/http-exception"; let getFetchClientLocation = "getFetchClient"; if (Deno.env.get("GET_FETCH_CLIENT_LOCATION")) { if (Deno.env.has("DENO_COMPILED")) { - getFetchClientLocation = Deno.mainModule.replace("main.ts", "") + + getFetchClientLocation = Deno.mainModule.replace("src/main.ts", "") + Deno.env.get("GET_FETCH_CLIENT_LOCATION"); } else { getFetchClientLocation = Deno.env.get(