Implements database, adds profiles
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user