Skip to content

Develop2#1128

Open
codingPF wants to merge 25 commits intodevelopfrom
develop2
Open

Develop2#1128
codingPF wants to merge 25 commits intodevelopfrom
develop2

Conversation

@codingPF
Copy link
Member

No description provided.

@codingPF codingPF requested a review from pidoubleyou February 28, 2026 16:31
videoListe.remove(Resolution.HD);
}
}
// TODO: add more resolutions etc - but for backwards compatibility - set to the current once
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests scheitern wegen dieser Logik.
Vorschlag: in den Crawlern keine Backwards Compatiblity einbauen, sondern erst beim Schreiben der Filmlisten-Datei.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich nehme das raus.

if (widgets.size() > 1) {
parseRelatedFilms(filmDto, widgets.get(1).getAsJsonObject());
}
//if (widgets.size() > 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ist der auskommentierte Code noch relevant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nein braucht man nicht mehr. Refactor ARD ist ein task welches ich auf die Liste nehmen wollte und jetzt hier nur notdürftig durchgezogen habe

Map<Resolution, String> newUrls = new EnumMap<>(Resolution.class);
resolutionUrlMapFromM3U.forEach((key, value) -> newUrls.put(key, value.toString()));
//
// TODO: FIXME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was ist hier noch zu tun?
Gedanke: die Logik zum Umgang mit fehlenden NORMAL-Urls nicht dezentral im Deserializer einbauen sondern erst wenn Filmlisten-Datei erstellt wird.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grundsätzlich Ja aber das führt in der Übergansphase (so lange man noch old format lesen möchte) zu Problemen. Auch alle Merge logiken müssen dann nochmal geprüft wergen weil ggf. auf NORMAL zugegriffen wird. Ich habe schon die getDefaultUrl Methode erweitert um das abzuschwächen - ich glaube aber damit müssen wir uns nochmal beschäftigen.


if (aDTO.getNumberOfClips() > 1) {
processRelatedFilms(filmDto.getRelatedFilms());
//processRelatedFilms(filmDto.getRelatedFilms());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noch relevant oder findet der Crawler mittlerweile über andere Zweige alles?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich denke ja - Es werden jetzt alle Trägerseiten gelesen und im Film model alle Sprachen/subs

LOG.error("{}", e);
return resolutions;
}
String[] lines = m3uContent.split("\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

M3U8Parser nutzen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sie sind zunächst inkompatibel – in Zukunft könnte man jedoch eine gemeinsame Codebase schaffen

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
23.8% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

active = false;
url = "jdbc:postgresql://postgresMV:55432/crawler";
username = "crawler";
password = "secret";

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded

<!--SONAR_ISSUE_KEY:AZztu-BAt5t5DmIV0CvV-->'password' detected in this expression, review this potentially hard-coded password. <p>See more on <a href="https://sonarcloud.io/project/issues?id=mediathekview_MServer&issues=AZztu-BAt5t5DmIV0CvV&open=AZztu-BAt5t5DmIV0CvV&pullRequest=1128">SonarQube Cloud</a></p>
active = false;
url = "jdbc:postgresql://postgresMV:55432/crawler";
username = "crawler";
password = "secret";

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded High

'password' detected in this expression, review this potentially hard-coded password. See more on SonarQube Cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants