Skip to content

Commit

Permalink
Merge pull request #158 from mediathekview/feature/oldFilmlistRW
Browse files Browse the repository at this point in the history
Feature/old filmlist rw
  • Loading branch information
codingPF committed Nov 1, 2023
2 parents 2b3a964 + 3330625 commit 81cd02a
Show file tree
Hide file tree
Showing 11 changed files with 1,046 additions and 520 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ public void setBeschreibung(final String aBeschreibung) {
beschreibung = TextCleaner.shortAndCleanBeschreibung(aBeschreibung, titel, thema);
}

public void setBeschreibungRaw(final String aBeschreibung) {
beschreibung = aBeschreibung;
}

public Optional<T> getDefaultUrl() {
if (urls.containsKey(Resolution.NORMAL)) {
return Optional.of(getUrl(Resolution.NORMAL));
Expand Down Expand Up @@ -174,6 +178,10 @@ public String getThema() {
public void setThema(final String aThema) {
thema = TextCleaner.clean(aThema);
}

public void setThemaRaw(final String aThema) {
thema = aThema;
}

public LocalDateTime getTime() {
return time;
Expand All @@ -190,6 +198,10 @@ public String getTitel() {
public void setTitel(final String aTitel) {
titel = TextCleaner.clean(aTitel);
}

public void setTitelRaw(final String aTitel) {
titel = aTitel;
}

public T getUrl(final Resolution aQuality) {
return urls.get(aQuality);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public enum MediaResourceComperators {
AbstractMediaResource::getThema, Comparator.nullsFirst(Comparator.naturalOrder()))),
DATE_COMPERATOR(
Comparator.comparing(
AbstractMediaResource::getTime, Comparator.nullsFirst(Comparator.naturalOrder()))),
AbstractMediaResource::getTime, Comparator.nullsFirst(Comparator.reverseOrder()))),
DEFAULT_COMPERATOR(createDefaultComperator());

private final Comparator<AbstractMediaResource<?>> comparator;
Expand Down
Loading

0 comments on commit 81cd02a

Please sign in to comment.