1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

updated date order to be InCinemas and then the earlier of either Physical/Digital Release

This commit is contained in:
Robin Dadswell 2021-01-11 14:26:21 +00:00 committed by Qstick
parent c28b62da2a
commit b6e46ad8fd

View File

@ -135,12 +135,14 @@ class MovieIndexPoster extends Component {
let releaseDate = ''; let releaseDate = '';
if (showReleaseDate) { if (showReleaseDate) {
releaseDate = inCinemas; releaseDate = inCinemas;
if (physicalRelease && digitalRelease) { if (!inCinemas) {
releaseDate = (physicalRelease < digitalRelease) ? physicalRelease : digitalRelease; if (physicalRelease && digitalRelease) {
} else if (physicalRelease && !digitalRelease) { releaseDate = (physicalRelease < digitalRelease) ? physicalRelease : digitalRelease;
releaseDate = physicalRelease; } else if (physicalRelease && !digitalRelease) {
} else if (digitalRelease && !physicalRelease) { releaseDate = physicalRelease;
releaseDate = digitalRelease; } else if (digitalRelease && !physicalRelease) {
releaseDate = digitalRelease;
}
} }
} }