Skip to content

Commit

Permalink
- WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 24, 2024
1 parent 6746935 commit fbf39bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/mediathek/daten/DatenFilm.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private void setupDatumFilm() {
if (!getSendeDatum().isEmpty()) {
// nur dann gibts ein Datum
long datum_long = (long)dataMap.getOrDefault(MapKeys.TEMP_DATUM_LONG, 0L);
datumFilm = new DatumFilm(datum_long * 1000); // convert from SECONDS to MILLISECONDS
datumFilm = new DatumFilm(TimeUnit.MILLISECONDS.convert(datum_long, TimeUnit.SECONDS));
if (datum_long == 0)
{
setSendeDatum("");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private void writeEntry(DatenFilm datenFilm, JsonGenerator jg) throws IOExceptio
skipEntry(jg); //DatenFilm.URL_RTMP_KLEIN
writeHighQualityUrl(jg, datenFilm);
skipEntry(jg); //DatenFilm.FILM_URL_RTMP_HD
jg.writeString(String.valueOf(datenFilm.getDatumFilm().getTime() / 1000));
jg.writeString(String.valueOf(TimeUnit.SECONDS.convert(datenFilm.getDatumFilm().getTime(), TimeUnit.MILLISECONDS)));
skipEntry(jg); //DatenFilm.FILM_URL_HISTORY
if (datenFilm.countrySet.isEmpty())
jg.writeString("");
Expand Down

0 comments on commit fbf39bd

Please sign in to comment.