e2openplugin-OpenWebif icon indicating copy to clipboard operation
e2openplugin-OpenWebif copied to clipboard

Add Timer: After change start timer: If end timer < start time, set equal

Open Micha10 opened this issue 3 years ago • 6 comments

While adding a new timer:

After opening the dialog the start and end time is set to the current date.

In all cases you add a start time in the future.

current behaviour: an error states, that the end time is lower than the end time.
The user has to set the new time almost all times to the same DATE as the start time and adjust the time

Wished behaviour:

In that case (end < start)
it would help a lot if the end time is automatically set to the start time.
It helps because the date fits and the user just has to adjust the time (not date)

Solution: ...seems to work:

function initTimerEditBegin() {
...
...
onClose: function(dateText, inst) {
			if ($('#timerend').val() != '' &&
				$(this).datetimepicker('getDate') > $('#timerend').datetimepicker('getDate')) {
<!-- new line
				$('#timerend').datetimepicker('setDate', dateText);
end new line -->
                $('#error').text(tstr_start_after_end);
                $('#errorbox').show();
			}

Micha10 avatar Jan 21 '22 19:01 Micha10

I absolutely agree, it's bugging me every time I create a new timer ;-). I would even suggest to set the end time at start time + 1 hour or something similar (or even make it customizable).

kybos avatar Jul 04 '22 20:07 kybos

Why don't you create a timer from epg? Is there any issue?

jbleyel avatar Jul 04 '22 20:07 jbleyel

Why don't you create a timer from epg? Is there any issue?

Most times i'm using tv-browser, but there are cases where I see an announcement for a movie in i.e. 15 days. Neither in tv-browser nor epg you can see that movie now, but I'm sure I'll forget about the movie in 12 days. So I better add the timer immediately. for that task I'm using the Add-Timer-function.

Micha10 avatar Jul 05 '22 16:07 Micha10

My use case: I usually schedule radio recordings all at the same time and far in advance (some radio stations offer their program in internet for the next 2 months). Moreover, I mostly don't record the complete broadcasts, but only parts of it.

kybos avatar Jul 05 '22 18:07 kybos

Just tried with epg: The search doesn't even work for radio channels. In the modern ui there is a switch tv/radio, but even if in radio mode, the results are only from tv.

kybos avatar Jul 05 '22 19:07 kybos

should be fixed

jbleyel avatar Jul 05 '22 21:07 jbleyel