- Added list template for sequences. List templates can only be used for sequences.

```yaml
templates:
 - name: CHAN_SEQ
   value:
   - '(?i)\bUHD\b'
   - '(?i)\bFHD\b'
```

The template can now be used for sequence
```yaml
  sort:
    groups:
      order: asc
    channels:
      - field: caption
        group_pattern: "!US_TNT_ENTERTAIN!"
        order: asc
        sequence:
          - "!CHAN_SEQ!"
          - '(?i)\bHD\b'
          - '(?i)\bSD\b'
```
This commit is contained in:
euzu
2025-05-15 11:17:09 +02:00
parent ef2c9c8eed
commit 7136eb1ab6
8 changed files with 212 additions and 52 deletions
+7 -1
View File
@@ -65,7 +65,7 @@ pub fn generate_random_string(length: usize) -> String {
#[cfg(test)]
mod test {
use std::collections::HashSet;
use crate::utils::generate_random_string;
use crate::utils::{generate_random_string, Capitalize};
#[test]
fn test_generate_random_string() {
@@ -75,4 +75,10 @@ mod test {
}
assert_eq!(strings.len(), 100);
}
#[test]
fn test_capitalize() {
assert_eq!("hELLO".capitalize(), "Hello");
}
}