chore: rename Youtube to YouTube

Closes #5526
This commit is contained in:
Slinetrac 2025-11-19 17:04:19 +08:00
parent 9e3bc6db8c
commit 94b07b51d6
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ const DEFAULT_UNLOCK_ITEM_NAMES: [&str; 13] = [
"ChatGPT Web", "ChatGPT Web",
"Claude", "Claude",
"Gemini", "Gemini",
"Youtube Premium", "YouTube Premium",
"Bahamut Anime", "Bahamut Anime",
"Netflix", "Netflix",
"Disney+", "Disney+",

View File

@ -42,14 +42,14 @@ pub(super) async fn check_youtube_premium(client: &Client) -> UnlockItem {
} }
UnlockItem { UnlockItem {
name: "Youtube Premium".to_string(), name: "YouTube Premium".to_string(),
status: status.to_string(), status: status.to_string(),
region, region,
check_time: Some(get_local_date_string()), check_time: Some(get_local_date_string()),
} }
} else { } else {
UnlockItem { UnlockItem {
name: "Youtube Premium".to_string(), name: "YouTube Premium".to_string(),
status: "Failed".to_string(), status: "Failed".to_string(),
region: None, region: None,
check_time: Some(get_local_date_string()), check_time: Some(get_local_date_string()),
@ -57,7 +57,7 @@ pub(super) async fn check_youtube_premium(client: &Client) -> UnlockItem {
} }
} }
Err(_) => UnlockItem { Err(_) => UnlockItem {
name: "Youtube Premium".to_string(), name: "YouTube Premium".to_string(),
status: "Failed".to_string(), status: "Failed".to_string(),
region: None, region: None,
check_time: Some(get_local_date_string()), check_time: Some(get_local_date_string()),

View File

@ -62,7 +62,7 @@ const DEFAULT_TEST_LIST = [
}, },
{ {
uid: nanoid(), uid: nanoid(),
name: "Youtube", name: "YouTube",
url: "https://www.youtube.com", url: "https://www.youtube.com",
icon: youtube, icon: youtube,
}, },

View File

@ -62,7 +62,7 @@ const TestPage = () => {
}, },
{ {
uid: nanoid(), uid: nanoid(),
name: "Youtube", name: "YouTube",
url: "https://www.youtube.com", url: "https://www.youtube.com",
icon: youtube, icon: youtube,
}, },