mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-11 01:54:43 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d15bec029 | ||
|
|
b811ff5ade | ||
|
|
2e999f47bd |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -20,4 +20,6 @@ web-build/
|
||||
|
||||
expo-env.d.ts
|
||||
# @end expo-cli
|
||||
web/**
|
||||
web/**
|
||||
.bmad-core
|
||||
.kilocodemodes
|
||||
@@ -46,7 +46,7 @@ const initialCategories: Category[] = [
|
||||
{ title: "热门剧集", type: "tv", tag: "热门" },
|
||||
{ title: "热门电影", type: "movie", tag: "热门" },
|
||||
{ title: "豆瓣 Top250", type: "movie", tag: "top250" },
|
||||
// { title: "儿童", type: "movie", tag: "儿童" },
|
||||
{ title: "儿童", type: "movie", tag: "少儿" },
|
||||
{ title: "美剧", type: "tv", tag: "美剧" },
|
||||
{ title: "韩剧", type: "tv", tag: "韩剧" },
|
||||
{ title: "日剧", type: "tv", tag: "日剧" },
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mytv-backend",
|
||||
"version": "1.0.0",
|
||||
"name": "OrionTV-proxy",
|
||||
"version": "1.0.1",
|
||||
"description": "Backend service for MyTV application",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"start": "node dist/index.js",
|
||||
"build": "tsc",
|
||||
"dev": "ts-node-dev --respawn --transpile-only src/index.ts"
|
||||
"dev": "ts-node-dev --respawn --transpile-only src/index.docker.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
||||
@@ -48,7 +48,7 @@ export const API_CONFIG = {
|
||||
};
|
||||
|
||||
// Adjust path to read from project root, not from `backend/`
|
||||
const configPath = path.join(process.cwd(), "config.json");
|
||||
const configPath = path.join(__dirname, "config.json");
|
||||
let cachedConfig: Config;
|
||||
|
||||
try {
|
||||
|
||||
@@ -59,6 +59,15 @@ async function searchFromApi(
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
console.log(
|
||||
"apiUrl",
|
||||
apiSite.name,
|
||||
"response status",
|
||||
response.ok,
|
||||
"response data",
|
||||
data.list.length
|
||||
);
|
||||
|
||||
if (
|
||||
!data ||
|
||||
!data.list ||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"src": "src/index.ts",
|
||||
"use": "@vercel/node",
|
||||
"config": {
|
||||
"includeFiles": ["../config.json"]
|
||||
"includeFiles": ["./config.json"]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
19
config.json
19
config.json
@@ -1,19 +0,0 @@
|
||||
{
|
||||
"cache_time": 3600,
|
||||
"api_site": {
|
||||
"ffzy": {
|
||||
"key": "ffzy",
|
||||
"name": "非凡资源",
|
||||
"api": "http://cj.ffzy.co/api.php/provide/vod/from/ffm3u8/",
|
||||
"detail": "http://www.ffzy.co"
|
||||
},
|
||||
"test-source": {
|
||||
"key": "test-source",
|
||||
"name": "示例源",
|
||||
"api": "https://test-api.com/api.php"
|
||||
}
|
||||
},
|
||||
"storage": {
|
||||
"type": "localstorage"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "OrionTV",
|
||||
"private": true,
|
||||
"main": "expo-router/entry",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"scripts": {
|
||||
"start": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start",
|
||||
"start-tv": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start",
|
||||
|
||||
Reference in New Issue
Block a user