Implements database, adds profiles

This commit is contained in:
2025-10-01 22:23:00 +02:00
parent b2571c191f
commit d2da811868
86 changed files with 17323 additions and 483 deletions

View File

@@ -31,7 +31,7 @@ final class BirdTranslationsFetcher {
*
* @param args command line arguments
*/
public static void main(final String[] args) throws Exception {
static void main(final String[] args) throws Exception {
final var options = new ChromeOptions();
options.addArguments("--headless=new");
final var driver = new ChromeDriver(options);

View File

@@ -7,7 +7,6 @@ import ch.gtache.fro.Fetcher;
import ch.gtache.fro.FetcherConfiguration;
import ch.gtache.fro.PictureType;
import ch.gtache.fro.SoundType;
import ch.gtache.fro.impl.CommonBirds;
import ch.gtache.fro.modules.oiseaux.net.OiseauxNet;
import ch.gtache.fro.selenium.AbstractSeleniumFetcher;
import jakarta.inject.Inject;
@@ -64,7 +63,7 @@ public class OiseauxNetFetcher extends AbstractSeleniumFetcher {
@Override
protected void download(final Bird bird) throws FetchException {
if (bird != CommonBirds.MESANGE_ALPESTRE && bird != CommonBirds.MESANGE_DES_SAULES) {
if (!bird.name().equalsIgnoreCase("MESANGE_ALPESTRE") && !bird.name().equalsIgnoreCase("MESANGE_DES_SAULES")) {
downloadImages(bird);
downloadSounds(bird);
}