Skip to content

Commit

Permalink
urlResolved
Browse files Browse the repository at this point in the history
  • Loading branch information
xaverW committed Apr 19, 2021
1 parent c11bdc1 commit bbeffae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,11 @@ public synchronized int markStations() {
PDuration.counterStart("Sender markieren");
try {
countDouble = 0;
this.stream().forEach((Station f) -> {

if (!urlHashSet.add(f.getUrl())) {
this.stream().forEach(station -> {
if (!urlHashSet.add(station.getUrl())) {
++countDouble;
f.setDoubleUrl(true);
station.setDoubleUrl(true);
}

});

} catch (Exception ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public static void findAndMarkFavouriteStations(ProgData progData) {
PDuration.counterStart("findAndMarkFavouriteStations");
final HashSet<String> hashSet = new HashSet<>();
hashSet.addAll(progData.favouriteList.stream().map(Favourite::getUrl).collect(Collectors.toList()));
progData.stationList.parallelStream().forEach(station -> station.setFavouriteUrl(false));
progData.stationList.stream()
.peek(station -> station.setFavouriteUrl(false))
.filter(station -> hashSet.contains(station.getUrl()))
.forEach(station -> station.setFavouriteUrl(true));
hashSet.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ private Menu copyUrl(Station station) {
return subMenuURL;
}

final String uNormal = station.getUrl();
MenuItem item;
item = new MenuItem("Sender-URL kopieren");
item.setOnAction(a -> PSystemUtils.copyToClipboard(station.getUrl()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public static boolean checkCountry(Filter sender, Station station) {
}

public static boolean checkUrl(Filter url, Station station) {
//todo evtl. noch urlResolved einfügen???
if (!check(url, station.getWebsite())
&& !check(url, station.getUrl())) {
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sun Apr 18 19:58:05 CEST 2021
DATE=18.04.2021
BUILD=40
#Mon Apr 19 12:54:33 CEST 2021
DATE=19.04.2021
BUILD=42
VERSION=0

0 comments on commit bbeffae

Please sign in to comment.