修改MoonTV为MoonTVPlus
This commit is contained in:
@@ -23,7 +23,7 @@ export async function GET(request: NextRequest) {
|
||||
// 如果使用 localStorage,返回默认配置
|
||||
if (storageType === 'localstorage') {
|
||||
return NextResponse.json({
|
||||
SiteName: process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV',
|
||||
SiteName: process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus',
|
||||
StorageType: 'localstorage',
|
||||
Version: CURRENT_VERSION,
|
||||
WatchRoom: watchRoomConfig,
|
||||
|
||||
@@ -24,7 +24,7 @@ export const dynamic = 'force-dynamic';
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const storageType = process.env.NEXT_PUBLIC_STORAGE_TYPE || 'localstorage';
|
||||
const config = await getConfig();
|
||||
let siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV';
|
||||
let siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus';
|
||||
if (storageType !== 'localstorage') {
|
||||
siteName = config.SiteConfig.SiteName;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ export default async function RootLayout({
|
||||
}) {
|
||||
const storageType = process.env.NEXT_PUBLIC_STORAGE_TYPE || 'localstorage';
|
||||
|
||||
let siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV';
|
||||
let siteName = process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus';
|
||||
let announcement =
|
||||
process.env.ANNOUNCEMENT ||
|
||||
'本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: '安全警告 - MoonTV',
|
||||
title: '安全警告 - MoonTVPlus',
|
||||
description: '站点安全配置警告',
|
||||
};
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ const SiteContext = createContext<{
|
||||
tmdbApiKey?: string;
|
||||
}>({
|
||||
// 默认值
|
||||
siteName: 'MoonTV',
|
||||
siteName: 'MoonTVPlus',
|
||||
announcement:
|
||||
'本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。',
|
||||
tmdbApiKey: '',
|
||||
|
||||
@@ -201,7 +201,7 @@ async function getInitConfig(configFile: string, subConfig: {
|
||||
ConfigFile: configFile,
|
||||
ConfigSubscribtion: subConfig,
|
||||
SiteConfig: {
|
||||
SiteName: process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV',
|
||||
SiteName: process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTVPlus',
|
||||
Announcement:
|
||||
process.env.ANNOUNCEMENT ||
|
||||
'本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。',
|
||||
@@ -324,7 +324,7 @@ export function configSelfCheck(adminConfig: AdminConfig): AdminConfig {
|
||||
// 确保必要的属性存在和初始化
|
||||
if (!adminConfig.SiteConfig) {
|
||||
adminConfig.SiteConfig = {
|
||||
SiteName: 'MoonTV',
|
||||
SiteName: 'MoonTVPlus',
|
||||
Announcement: '',
|
||||
SearchDownstreamMaxPage: 5,
|
||||
SiteInterfaceCacheTime: 7200,
|
||||
|
||||
Reference in New Issue
Block a user