status changes

This commit is contained in:
Simon
2026-03-21 19:29:30 +00:00
parent cecc1f994b
commit 9bba981796
12 changed files with 41 additions and 22 deletions

View File

@@ -397,10 +397,12 @@ fn channel_group_title(group_id: &str) -> &'static str {
"mainstream-tube" => "Mainstream Tube",
"studio-network" => "Studio & Network",
"amateur-homemade" => "Amateur & Homemade",
"creator-leaks" => "Creator & Leaks",
"asian-jav" => "Asian & JAV",
"onlyfans" => "OnlyFans",
"chinese" => "Chinese",
"jav" => "JAV",
"fetish-kink" => "Fetish & Kink",
"hentai-animation" => "Hentai & Animation",
"ai" => "AI",
"gay-male" => "Gay & Male",
"live-cams" => "Live Cams",
"pmv-compilation" => "PMV & Compilation",
@@ -413,14 +415,15 @@ fn channel_group_order(group_id: &str) -> usize {
"meta-search" => 0,
"mainstream-tube" => 1,
"studio-network" => 2,
"amateur-homemade" => 3,
"creator-leaks" => 4,
"asian-jav" => 5,
"onlyfans" => 3,
"chinese" => 4,
"jav" => 5,
"fetish-kink" => 6,
"hentai-animation" => 7,
"gay-male" => 8,
"live-cams" => 9,
"pmv-compilation" => 10,
"ai" => 8,
"gay-male" => 9,
"live-cams" => 10,
"pmv-compilation" => 11,
_ => 99,
}
}
@@ -602,7 +605,7 @@ mod tests {
#[test]
fn decorates_channel_with_group_and_tags() {
let channel = decorate_channel(base_channel("hsex"));
assert_eq!(channel.groupKey.as_deref(), Some("amateur-homemade"));
assert_eq!(channel.groupKey.as_deref(), Some("chinese"));
assert_eq!(channel.sortOrder, None);
assert_eq!(
channel.tags.as_deref(),
@@ -625,8 +628,24 @@ mod tests {
];
let groups = build_channel_groups(&channels);
assert_eq!(groups[0].id, "meta-search");
assert_eq!(groups[1].id, "amateur-homemade");
assert_eq!(groups[2].id, "asian-jav");
assert_eq!(groups[1].id, "chinese");
assert_eq!(groups[2].id, "jav");
}
#[test]
fn reflects_updated_group_moves() {
assert_eq!(
decorate_channel(base_channel("perverzija"))
.groupKey
.as_deref(),
Some("studio-network")
);
assert_eq!(
decorate_channel(base_channel("rule34gen"))
.groupKey
.as_deref(),
Some("ai")
);
}
#[test]