expand MCP tools: browse_library, stats, analyze, preview, suggest, config tools (#17)
This commit is contained in:
@@ -282,6 +282,13 @@ impl ScheduleConfig {
|
||||
&self.day_blocks
|
||||
}
|
||||
|
||||
pub fn find_block_mut(&mut self, block_id: BlockId) -> Option<&mut ProgrammingBlock> {
|
||||
self.day_blocks
|
||||
.values_mut()
|
||||
.flatten()
|
||||
.find(|b| b.id() == block_id)
|
||||
}
|
||||
|
||||
pub fn insert_day(&mut self, day: Weekday, blocks: Vec<ProgrammingBlock>) {
|
||||
self.day_blocks.insert(day, blocks);
|
||||
}
|
||||
@@ -436,6 +443,14 @@ impl ProgrammingBlock {
|
||||
self.mid_roll_rule = Some(rule);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn set_interstitial_rule(&mut self, rule: Option<InterstitialRule>) {
|
||||
self.interstitial_rule = rule;
|
||||
}
|
||||
|
||||
pub fn set_mid_roll_rule(&mut self, rule: Option<MidRollRule>) {
|
||||
self.mid_roll_rule = rule;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user