Skip to content

Commit

Permalink
Use audiotags comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Jul 25, 2024
1 parent e7ca4c5 commit 4a729dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/fixers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::extract::extract_feat;
use crate::types::{Track, TrackFeat};
use anyhow::Result;
use anyhow::{bail, Result};
use audiotags::AudioTag;
use cow_utils::CowUtils;
use once_cell::sync::Lazy;
Expand Down Expand Up @@ -127,13 +127,13 @@ fn make_feat_string(featured_artists: &[String]) -> String {
output
}

fn fixer_is_blacklisted(_tags: &Box<(dyn AudioTag + 'static)>) -> Result<()> {
//TODO
// for comment in tags.comments() {
// if comment.text.contains("_NO_MACK") {
// bail!("Comment contains _NO_MACK");
// }
// }
fn fixer_is_blacklisted(tags: &Box<(dyn AudioTag + 'static)>) -> Result<()> {
if let Some(comment) = tags.comment() {
if comment.contains("_NO_MACK") {
bail!("Comment contains _NO_MACK");
}
}

Ok(())
}

Expand Down

0 comments on commit 4a729dc

Please sign in to comment.