Skip to content

Commit

Permalink
details
Browse files Browse the repository at this point in the history
  • Loading branch information
BLCK-B committed May 30, 2024
1 parent 18c408a commit 9b5c341
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.blck.MusicReleaseTracker.FrontendAPI;

import com.blck.MusicReleaseTracker.Core.ErrorLogging;
import com.blck.MusicReleaseTracker.Scraping.ScrapeProcess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@

import java.util.*;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public class ScraperManager {

private final ErrorLogging log;
Expand All @@ -19,17 +32,15 @@ public class ScraperManager {
public ScraperManager(ErrorLogging log, DBqueries DB) {
this.log = log;
this.DB = DB;
for (SourcesEnum source : SourcesEnum.values()) {
for (SourcesEnum source : SourcesEnum.values())
sourceTimes.put(source.toString(), 0.0);
}
}
public ScraperManager(ErrorLogging log, DBqueries DB, int customSleepTime) {
this.log = log;
this.DB = DB;
minDelay = customSleepTime;
for (SourcesEnum source : SourcesEnum.values()) {
for (SourcesEnum source : SourcesEnum.values())
sourceTimes.put(source.toString(), 0.0);
}
}

public int loadWithScrapers() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
import java.util.HashSet;
import java.util.Set;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public class Scraper {

protected final ErrorLogging log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public final class ScraperBeatport extends Scraper implements ScraperInterface {

private final String songArtist;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@

import static java.lang.String.valueOf;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public final class ScraperJunodownload extends Scraper implements ScraperInterface {

private enum MonthNumbers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
import java.net.SocketTimeoutException;
import java.util.ArrayList;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public final class ScraperMusicbrainz extends Scraper implements ScraperInterface {

private final String songArtist;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
import java.util.ArrayList;
import java.util.Arrays;

/* MusicReleaseTracker
Copyright (C) 2023 BLCK
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/

public final class ScraperYoutube extends Scraper implements ScraperInterface {

private final String songArtist;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/static/assets/index-B-0Sff6H.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit 9b5c341

Please sign in to comment.