diff --git a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
index ea4d64fe9..074c66516 100644
--- a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
+++ b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
@@ -17,8 +17,8 @@ import ModalFooter from 'Components/Modal/ModalFooter';
function getUrls(state) {
const {
unmonitored,
- premieresOnly,
- asAllDay,
+ pastDays,
+ futureDays,
tags
} = state;
@@ -28,19 +28,11 @@ function getUrls(state) {
icalUrl += 'unmonitored=true&';
}
- if (premieresOnly) {
- icalUrl += 'premieresOnly=true&';
- }
-
- if (asAllDay) {
- icalUrl += 'asAllDay=true&';
- }
-
if (tags.length) {
icalUrl += `tags=${tags.toString()}&`;
}
- icalUrl += `apikey=${window.Lidarr.apiKey}`;
+ icalUrl += `pastDays=${pastDays}&futureDays=${futureDays}&apikey=${window.Lidarr.apiKey}`;
const iCalHttpUrl = `${window.location.protocol}//${icalUrl}`;
const iCalWebCalUrl = `webcal://${icalUrl}`;
@@ -61,8 +53,8 @@ class CalendarLinkModalContent extends Component {
const defaultState = {
unmonitored: false,
- premieresOnly: false,
- asAllDay: false,
+ pastDays: 7,
+ futureDays: 28,
tags: []
};
@@ -105,8 +97,8 @@ class CalendarLinkModalContent extends Component {
const {
unmonitored,
- premieresOnly,
- asAllDay,
+ pastDays,
+ futureDays,
tags,
iCalHttpUrl,
iCalWebCalUrl
@@ -133,25 +125,25 @@ class CalendarLinkModalContent extends Component {
- Season Premieres Only
+ Past Days
- Show as All-Day Events
+ Future Days