Skip to content

Commit

Permalink
fix arte crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1702 committed Sep 26, 2024
2 parents 6e0c809 + 4c3c53c commit c648ce1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
group = 'de.mediathekview'
archivesBaseName = "MServer"
version = '3.1.238'
version = '3.1.239'

def jarName = 'MServer.jar'
def mainClass = 'mServer.Main'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ArteHttpClient {

private static Request createRequest(String aUrl) {
Builder b;
if (aUrl.contains("/opa/")) {
if (aUrl.contains("/api/opa/")) {
b = BUILDER_OPA;
} else {
b = BUILDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ArteProgramIdToDatenFilmCallable implements Callable<Set<DatenFilm>

private static final Logger LOG = LogManager.getLogger(ArteProgramIdToDatenFilmCallable.class);

private static final String ARTE_VIDEO_INFORMATION_URL_PATTERN = "https://api.arte.tv/api/opa/v3/videoStreams?programId=%s&limit=100&language=%s&protocol=HTTPS&kind=SHOW";
private static final String ARTE_VIDEO_INFORMATION_URL_PATTERN = "https://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/streams/%s/SHOW/%s";
private static final String ARTE_VIDEO_INFORMATION_URL_PATTERN_2 = "https://api.arte.tv/api/opa/v3/programs/%s/%s"; // Für broadcastBeginRounded

private final FastDateFormat broadcastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssX");//2016-10-29T16:15:00Z
Expand Down Expand Up @@ -93,7 +93,11 @@ public Set<DatenFilm> call() throws Exception {
if (video.getVideoUrlsOriginalWithSubtitle().containsKey(Qualities.NORMAL)) {
films.add(createFilm(details.getTheme(), details.getWebsite(), details.getTitle() + " (Originalversion mit Untertitel)", video.getVideoUrlsOriginalWithSubtitle(), details, durationAsTime, details.getDescription()));
}
} else {
Log.errorLog(8572677, "arte: no program found " + programId);
}
} else {
Log.errorLog(84572678, "arte: no video found " + programId);
}

return films;
Expand Down

0 comments on commit c648ce1

Please sign in to comment.