3 Commits

9 changed files with 19 additions and 27 deletions

4
.gitignore vendored
View File

@@ -20,4 +20,6 @@ web-build/
expo-env.d.ts
# @end expo-cli
web/**
web/**
.bmad-core
.kilocodemodes

View File

@@ -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: "日剧" },

View File

@@ -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": "",

View File

@@ -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 {

View File

@@ -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 ||

View File

@@ -5,7 +5,7 @@
"src": "src/index.ts",
"use": "@vercel/node",
"config": {
"includeFiles": ["../config.json"]
"includeFiles": ["./config.json"]
}
}
],

View File

@@ -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"
}
}

View File

@@ -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",