mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	The SVDRP command NEWT no longer checks whether a timer with the given data already exists
This commit is contained in:
		| @@ -3047,3 +3047,7 @@ Cedric Dewijs <cedric.dewijs@telfort.nl> | ||||
| Stefan Stolz <st.stolz@gmail.com> | ||||
|  for suggesting to make the SVDRP command LSTR optionally list the actual file name of | ||||
|  a recording's directory | ||||
|  | ||||
| Malte Forkel <malte.forkel@berlin.de> | ||||
|  for suggesting to make the SVDRP command NEWT no longer check whether a timer with the | ||||
|  given data already exists | ||||
|   | ||||
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -7527,3 +7527,5 @@ Video Disk Recorder Revision History | ||||
|   if an actual value has been entered (suggested by Ulf Kiener). | ||||
| - The last replayed recording is now stored in setup.conf, which allows the blue | ||||
|   "Resume" key in the main menu to work even after a restart of VDR. | ||||
| - The SVDRP command NEWT no longer checks whether a timer with the given data already | ||||
|   exists (suggested by Malte Forkel). | ||||
|   | ||||
							
								
								
									
										10
									
								
								svdrp.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								svdrp.c
									
									
									
									
									
								
							| @@ -10,7 +10,7 @@ | ||||
|  * and interact with the Video Disk Recorder - or write a full featured | ||||
|  * graphical interface that sits on top of an SVDRP connection. | ||||
|  * | ||||
|  * $Id: svdrp.c 2.22 2013/01/15 13:21:10 kls Exp $ | ||||
|  * $Id: svdrp.c 2.23 2013/01/17 15:19:02 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #include "svdrp.h" | ||||
| @@ -263,8 +263,7 @@ const char *HelpPages[] = { | ||||
|   "    by the LSTC command.", | ||||
|   "NEWT <settings>\n" | ||||
|   "    Create a new timer. Settings must be in the same format as returned\n" | ||||
|   "    by the LSTT command. It is an error if a timer with the same channel,\n" | ||||
|   "    day, start and stop time already exists.", | ||||
|   "    by the LSTT command.", | ||||
|   "NEXT [ abs | rel ]\n" | ||||
|   "    Show the next timer event. If no option is given, the output will be\n" | ||||
|   "    in human readable form. With option 'abs' the absolute time of the next\n" | ||||
| @@ -1350,17 +1349,12 @@ void cSVDRP::CmdNEWT(const char *Option) | ||||
|   if (*Option) { | ||||
|      cTimer *timer = new cTimer; | ||||
|      if (timer->Parse(Option)) { | ||||
|         cTimer *t = Timers.GetTimer(timer); | ||||
|         if (!t) { | ||||
|         Timers.Add(timer); | ||||
|         Timers.SetModified(); | ||||
|         isyslog("timer %s added", *timer->ToDescr()); | ||||
|         Reply(250, "%d %s", timer->Index() + 1, *timer->ToText()); | ||||
|         return; | ||||
|         } | ||||
|         else | ||||
|            Reply(550, "Timer already defined: %d %s", t->Index() + 1, *t->ToText()); | ||||
|         } | ||||
|      else | ||||
|         Reply(501, "Error in timer settings"); | ||||
|      delete timer; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user