Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smarter genre Autotagging #86

Open
mpfthprblmtq opened this issue Feb 27, 2023 · 1 comment
Open

Smarter genre Autotagging #86

mpfthprblmtq opened this issue Feb 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mpfthprblmtq
Copy link
Owner

mpfthprblmtq commented Feb 27, 2023

When automatically assigning a genre, take a peek at the other genres of that artist to find the most occurring genre. For instance, Muse is all Prog Rock, so when adding an album for Muse, it's probably going to be Prog Rock as well.

@mpfthprblmtq mpfthprblmtq added the enhancement New feature or request label Feb 27, 2023
@mpfthprblmtq
Copy link
Owner Author

// pseudocode
private String getCommonGenreForArtist() {
  if (notInLabel()) {
    File artistDirectory = file.getParentFile().getParentFile();
    List<File> allFiles = FileUtils.listFiles(artistDirectory);
    foreach(File file : allFiles) {
      if (file.getName().endsWith(".mp3") {
        // getGenre and store it in list count
      }
    }
    // do math on genre list
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant