568 Commits

Author SHA1 Message Date
Fred Gleason
839aa239c8 2017-02-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdformpost.cpp'.
2017-02-28 12:04:27 -05:00
Fred Gleason
db0e842496 2017-02-21 Fred Gleason <fredg@paravelsystems.com>
* Modified 'lib/rdformpost.cpp' to use read-only accessors for
	std::map values.
	* Added a check for valid event IDs for the 'SaveLog' method in
	'web/rdxport/logs.cpp'.
2017-02-21 16:51:25 -05:00
Fred Gleason
d4682f6e1b 2017-02-16 Fred Gleason <fredg@paravelsystems.com>
* Modified the '<forcedLength>', '<averageLength>',
	'<lengthDeviation>', '<averageSegueLength>' and
	'<averageHookLength>' fields in the return of the 'ListCart'
	and 'ListCarts' web methods to return a two-digit hours field.
2017-02-16 08:15:07 -05:00
Fred Gleason
ef5dd121b7 2017-02-10 Fred Gleason <fredg@paravelsystems.com>
* Added a '<conductor>' field to the output of the 'ListLog' web
	API method.
2017-02-10 10:10:17 -05:00
Fred Gleason
dcff3e6f4f 2017-02-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlog_line.cpp' that caused the event start
	time to be incorrect in the 'ListLog' Web API method for times of
	'00:00:00.0' for 'hard' type.
2017-02-10 08:39:14 -05:00
Fred Gleason
af592fa200 2017-02-07 Fred Gleason <fredg@paravelsystems.com>
* Changed the DLL load target for libmad from 'libmad.so' to
	'libmad.so.0' in 'cae/cae.cpp' and 'lib/rdaudioconvert.cpp'.
	* Changed the DLL load target for lame from 'libmp3lame.so' to
	'libmp3lame.so.0' in 'cae/cae.cpp' and 'lib/rdaudioconvert.cpp'.
	* Changed the DLL load target for faad from 'libfaad.so' to
	'libfaad.so.2' in 'cae/cae.cpp' and 'lib/rdmp4.cpp'.
	* Changed the DLL load target for mp4v2 from 'libmp4v2.so' to
	'libmp4v2.so.2' in 'cae/cae.cpp' and 'lib/rdaudioconvert.cpp'.
2017-02-07 08:45:05 -05:00
Fred Gleason
34db6c3237 2017-02-02 Fred Gleason <fredg@paravelsystems.com>
* Added a 'linkStartTime' tag to the output of 'RDLogLine::xml()'.
2017-02-02 11:59:51 -05:00
Fred Gleason
41b3db2408 2017-01-31 Fred Gleason <fredg@paravelsystems.com>
* Added an 'AddLog' method to the Web API.
	* Added an 'DeleteLog' method to the Web API.
	* Added a 'SaveLog' method to the Web API.
	* Added 'eventLength', 'linkEventName', 'linkStartSlop',
	'linkEndSlop', 'linkId', 'linkEmbedded', 'extStartTime',
	'extLength', 'extCartName', 'extData', 'extEventId',
	and 'extAnncType' XML fields to the return of the ListLog web
	API method
2017-01-31 18:01:46 -05:00
Fred Gleason
28d8425b94 2017-01-18 Fred Gleason <fredg@paravelsystems.com>
* Added a <purgeDate> tag to the return document for the 'ListLogs'
	web service call.
2017-01-18 14:17:48 -05:00
Fred Gleason
9d5618c90c 2017-01-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlog_line.cpp' that caused invalid 'Type' values
	to be returned for Chain events.
2017-01-17 11:42:23 -05:00
Fred Gleason
0ba509eb1a 2017-01-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlog_line.cpp' that caused invalid 'Type' values
	to be returned for Traffic and Music Link events.
2017-01-17 11:38:22 -05:00
Fred Gleason
e65f9a9716 2017-01-13 Fred Gleason <fredg@paravelsystems.com>
* Implemented automatic cart/cut creation as part of the 'Import'
	web method.
2017-01-13 19:15:31 -05:00
Fred Gleason
21dcac3e4a 2017-01-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rduser.cpp' that caused the
	'RDUser::groupAuthorized()' to return false positive results.
2017-01-13 19:03:22 -05:00
Fred Gleason
3faa8dfbed 2016-10-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'LockRdairplayMemory=' parameter to the [Hacks] section
	of rd.conf(5).
2016-10-20 09:06:58 -04:00
Fred Gleason
38dc64c548 2016-09-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdsimpleplayer.cpp' that caused RDAirPlay
	to freeze when attempting to audition an expired cart
	[GitHub issue #000051].
2016-09-26 09:07:08 -04:00
Fred Gleason
23c9d6136e 2016-09-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdwavefile.cpp' that caused RDXL
	chunks to be written with odd chunk lengths.
2016-09-13 08:29:33 -04:00
Fred Gleason
51cdcfb9be 2016-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that caused exports to contain incorrect
	marker data in the RDXL file structure.
2016-08-03 12:21:05 -04:00
Fred Gleason
d232842b0c 2016-08-02 Fred Gleason <fredg@paravelsystems.com>
* Added a work-around in 'lib/rdwavefile.cpp' to ensure that RDXL
	chunks are always of even length.
2016-08-02 17:43:41 -04:00
Fred Gleason
1c52c13a7b 2016-08-02 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdwavefile.cpp' that caused WAV files to
	be written with incorrect LEVL chunk data.
2016-08-02 16:18:30 -04:00
Fred Gleason
a55afed800 2016-07-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdsvc.cpp' that broke log data imports
	for data lines with leading whitespace.
2016-07-27 08:02:52 -04:00
Fred Gleason
232743415c 2016-07-27 Fred Gleason <fredg@paravelsystems.com>
* Removed dead code from 'lib/rdsvc.cpp'.
2016-07-27 07:29:28 -04:00
Fred Gleason
a20b7f2437 2016-07-26 Fred Gleason <fredg@paravelsystems.com>
* Added a sanity check in the 'RDCut::setMetadata()' method in
	'lib/rdcut.cpp' to ensure that the cut 'Description' field is always
	populated.
2016-07-26 11:55:43 -04:00
Fred Gleason
9550815023 2016-07-25 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICE_CLOCKS' table to the database.
	* Incremented the database version to 259.
	* Modified 'rdlogmanager/edit_clock.cpp' to use the new
	'SERVICE_CLOCKS' table.
	* Modified 'rdlogmanager/list_clocks.cpp' to use the new
	'SERVICE_CLOCKS' table.
2016-07-25 15:18:14 -04:00
Fred Gleason
fdc40e8bbb 2016-07-23 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up warning in 'lib/rdlog_line.cpp'.
	* Cleaned up warning in 'lib/rdwavefile.cpp'.
	* Cleaned up warning in 'rdlogmanager/edit_event.cpp'.
2016-07-23 12:13:30 -04:00
Fred Gleason
29927e7709 2016-07-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in 'lib/lib.pro', 'lib/rdweb.cpp, 'lib/rdweb.h' and
	'rdlogedit/edit_logline.cpp' that broke the build under Windows.
2016-07-15 14:16:32 -04:00
Fred Gleason
6c31c9e1d4 2016-07-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'RDCart::GetXmlValue()' method that caused
	XML field values not to be unescaped correctly.
2016-07-13 10:47:42 -04:00
Fred Gleason
d8636ebb2c 2016-07-13 Fred Gleason <fredg@paravelsystems.com>
* Implemented storage of RDXML data structures within a 'rdxl'
	user defined information frame in ID3 tags 'lib/rdwavefile.cpp' and
	'lib/rdaudio_convert.cpp'.
2016-07-13 10:11:08 -04:00
Fred Gleason
b508b7a0ca 2016-07-12 Fred Gleason <fredg@paravelsystems.com>
* Added support for reading conductor field values (TPE3) from
	ID3 tags in 'lib/rdwavefile.cpp'.
2016-07-12 15:22:20 -04:00
Fred Gleason
b64b01b148 2016-07-12 Fred Gleason <fredg@paravelsystems.com>
* Implemented storage of RDXML data structures within a 'rdxl' chunk
	in WAV files.
2016-07-12 14:36:17 -04:00
Fred Gleason
fc332c3655 2016-07-12 Fred Gleason <fredg@paravelsystems.com>
* Added an '--xml' switch to rdimport(1) in
	'utils/rdimport/rdimport.cpp' and 'utils/rdimport/rdimport.h'.
2016-07-12 08:52:29 -04:00
Fred Gleason
edd8221b6f 2016-07-11 Fred Gleason <fredg@paravelsystems.com>
* Added rdxml_parse_test(1) in 'tests/'.
	* Added a RDCart::readXml()' method in 'lib/rdcart.cpp' and
	'lib/rdcart.h'.
	* Fixed a typo in the 'averageSegueLength' field in the 'RDCart::xml()'
	method in 'lib/rdcart.cpp'.
	* Removed the 'validity' field from the output of the 'RDCart::xml()'
	method in 'lib/rdcart.cpp'.
	* Removed the 'validity' and 'localCounter' fields from the output
	of the 'RDCut::xml()' method in 'lib/rdcut.cpp'.
2016-07-11 14:01:30 -04:00
Fred Gleason
5c82d99de7 2016-06-23 Fred Gleason <fredg@paravelsystems.com>
* Refactored layout of dialogs in rdlogedit(1) so as to display
	dialog heirarchy correctly.
2016-06-23 10:37:43 -04:00
Fred Gleason
c1675087aa 2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdsvc.cpp' that caused import events with
	minute field values greater than '59' in the Start Time to fail
	to be imported.
2016-06-17 14:55:03 -04:00
Fred Gleason
ec79802cb6 2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rddownload.cpp' that caused download URLs
	using 'https' protocol to fail to be properly escaped.
2016-06-17 14:06:19 -04:00
Fred Gleason
f04fa15090 2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Modified rdexport(1) to list correct audio format parameters
	in the XML output.
2016-06-17 12:02:43 -04:00
Fred Gleason
605dfbb964 2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdcut.cpp' that caused a SQL error when
	generating an XML 'cutList' object.
2016-06-17 10:39:30 -04:00
Fred Gleason
d48935a00a 2016-06-15 Fred Gleason <fredg@paravelsystems.com>
* Added an '--xml' switch to rdexport(1) in
	'utils/rdexport/rdexport.cpp' and 'utils/rdexport/rdexport.h'.
2016-06-15 13:01:03 -04:00
Fred Gleason
d90a226e70 Minor formatting tweaks 2016-06-14 12:31:02 -04:00
Fred Gleason
c21c1a0d5d Merge branch 'stable' of https://github.com/waynemerricks/rivendell into waynemerricks-stable 2016-06-14 11:25:43 -04:00
Fred Gleason
815dea346c 2016-06-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlist_logs.cpp' that failed to process
	SQL NULL date values correctly.
2016-06-10 17:38:15 -04:00
Wayne Merricks
8baed5b104 Random Idiocy fixes
Compilation fixes due to idiocy as usual (apologies)
2016-06-09 22:46:07 +01:00
Wayne Merricks
f1175cd2f2 Fixes for invalid NULL sql on date/times
Most files are simple swaps to get rid of extra " as a NULL return will give
invalid SQL if used as follows UPDATE x SET y="NULL";

See github issue 121 for more info.

Extra changes have been made to the following files:
* lib/rdcartslot.cpp
- Added a QDateTime variable to prevent EVENT_DATETIME becoming
  "2016-06-09" "NULL" as it was checked separately for date and time
* lib/rdcut.cpp
- Reworked START_DATETIME and END_DATETIME to save the SQL ifs.  I believe this
  makes it easier to read and understand.
- The >QDate(1900,1,1) and < 8000 is probably not needed but I left it there
  just in case.
* lib/rdescape_string.cpp
- Reworked to add extra " if the date is not NULL see issue 121
* lib/rdfeed.cpp && lib/rdpodcast.cpp
- Had to add a SetRow for QDateTime as with the string conversion the existing
  SetRow would add an extra set of "
* lib/rdsound_panel.cpp && rdairplay/log_traffic.cpp
        && utils/rddgimport/rddgimport.cpp
- Added a QString to contain EVENT_DATETIME to prevent double checks of date
  and time separately (similar to lib/rdcartslot.cpp)
* rdcatchd/rdcatchd.cpp
- Reverted the changes.  The RML here is not touching the DB so is fine, plus
  with the RDCheckDateTime changes you'd have extra " unless it was NULL
* tests/sas_switch_torture.cpp && sas_torture.cpp
- Included missing rdescape_string.h
2016-06-09 00:01:38 +01:00
Fred Gleason
31cd72a7a4 2016-06-07 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'RDSvc::import()' method in 'lib/rdsvc.cpp' to
	improve robustness and readability.
2016-06-07 12:56:52 -04:00
Fred Gleason
6a05fd90a5 2016-06-07 Fred Gleason <fredg@paravelsystems.com>
* Added code in 'lib/rdevent_line.cpp' and 'lib/rdsvc.cpp' to allow
	embedded traffic breaks to be specified with start time and length
	in the music schedule.
2016-06-07 08:36:59 -04:00
Wayne Merricks
b9452b8e8d lib/rdcart.cpp MySQL v5.7+ date/time changes 2016-06-04 20:27:14 +01:00
Wayne Merricks
58d75f0b5c lib/rdcut.cpp MySQL v5.7+ date/time changes 2016-06-04 20:20:55 +01:00
Wayne Merricks
5a07b62d0c lib/rdrecording.cpp MySQL v5.7+ date/time changes
Amended SetRow(QString,QTime) to contain time checks for MySQL v5.7+
2016-06-04 20:04:52 +01:00
Wayne Merricks
7506d1567c lib/rdlog_event.cpp MySQL v5.7+ date/time checks
Usual date changes and some TODOs for potentially invalid SELECT statements
2016-06-04 20:04:16 +01:00
Wayne Merricks
69ea83d570 lib/rdsound_panel.cpp MySQL v5.7+ Date Changes
Usual checks.  Line 1493 and 1537 is not required as they are derived from
current system datetime as per lines 1466 and 1526 respectively.
2016-06-04 20:04:09 +01:00
Wayne Merricks
1e37f6bbdc lib/rdcartslot.cpp Added MySQL v5.7+ changes
Added usual checks.  Line 690 EVENT_DATETIME is not required as this is derived
from current system datetime as per line 665.
2016-06-04 20:03:57 +01:00