Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NightQuest authored Apr 12, 2024
1 parent e0bfb2d commit 2b5bac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crunchy-cli-core/src/utils/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ fn get_subtitle_stats(path: &Path) -> Result<Vec<String>> {
let mut fonts = vec![];

for capture in FONT_REGEX.captures_iter(&(fs::read_to_string(path)?)) {
if let Some(font) = (capture.name("font") || capture.name("overrideFont")) {
if let Some(font) = capture.name("font") || let Some(font) = capture.name("overrideFont") {
let font_string = font.as_str().to_string();
if !fonts.contains(&font_string) {
fonts.push(font_string)
Expand Down

0 comments on commit 2b5bac1

Please sign in to comment.