317 Commits

Author SHA1 Message Date
Wayne Merricks
e1c9caa987 lib/rdreport.cpp Reverted date checks on SELECT statements
Checking is probably not needed and even if it did find an invalid date it would
likely not return valid SQL e.g this is just one paraphrased example from the
code:

SELECT x FROM y WHERE EVENT_DATETIME<="NULL 00:00:00"

I've reverted back the two select changes for the daypart code and put a TODO
note there as a marker.
2016-06-04 20:03:24 +01:00
Wayne Merricks
1cf11af447 lib/rdfeed.cpp MySQL v5.7+ date/time null changes
Fixed in setX rather than Row as these are converted to QString before the DB
2016-06-04 20:03:10 +01:00
Wayne Merricks
e98a915f90 lib/rdlog.cpp MySQL v5.7+ date/time null changes
Fixed in SetRow for QDate/QTime and QDateTime
2016-06-04 20:03:03 +01:00
Wayne Merricks
c2560a671b lib/rdevent_line.cpp MySQL v5.7+ date/time null changes
Time is based on event_start_time however can't guarantee validity hence
RDCheckDateTime again.
2016-06-04 20:02:47 +01:00
Wayne Merricks
ace1a01225 lib/rdpodcast.cpp MySQL v5.7+ changes for date nulls
This doesn't use a dedicated setRow, instead it converts to QString and then
tries to insert the dates instead.

Amended setOrigin and setEffectiveDateTime to use RDCheckDateTime
2016-06-04 20:02:25 +01:00
Wayne Merricks
e2eb07c615 Added date/time checks for MySQL v5.7+ date/time nulls
Shouldn't be necessary in the daypart SQL but can't verify validity so added
checks there too.
2016-06-03 23:50:29 +01:00
Wayne Merricks
d222ed9ca0 Added QDate/Time variant is valid checks for SQL use
With MySQL v5.7+ you have to specifically set either a valid date or NULL
otherwise you get SQL errors.  In previous versions setting a date to "" implied
NULL, this is no longer the case which causes nice SQL errors all over the
place.

This new RDCheckDateTime is an overloaded function that calls the respective
isValid method of QDate/Time/DateTime and either returns the requested formatted
string or returns NULL as a string.

This can then be used as part of an INSERT/UPDATE without breaking the stricter
NULL interpretation of MySQL v5.7+.
2016-06-03 23:45:31 +01:00
Fred Gleason
04b4db9157 2016-06-01 Fred Gleason <fredg@paravelsystems.com>
* Changed the default value of the 'CART_NUMBER' field in '_LOG'
	tables from NULL to 0.
	* Incremented the database version to 258.
2016-06-01 12:06:36 -04:00
Fred Gleason
da0ad47ffb 2016-05-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDAudioExport::cartNumber()', 'RDAudioExport::cutNumber()'
	and 'RDAudioExport::settings()' meethods in 'lib/rdaudioexport.cpp'
	and 'lib/rdaudioexport.h'.
	* Added expanded error logging in 'utils/rdexport/rdexport.cpp'.
2016-05-26 08:25:49 -04:00
Fred Gleason
f35263d24c Merge branch 'stable-gcc611-fix-compile' of https://github.com/xavery/rivendell into xavery-stable-gcc611-fix-compile 2016-05-24 13:25:52 -04:00
Fred Gleason
698b475933 2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Removed all CVS tags.
	* Removed 'const char *name' parameter from all QObject contructors.
2016-05-24 13:13:26 -04:00
Daniel Kamil Kozar
9fbaf4bc16 fix compilation with gcc 6.1.1 2016-05-21 00:28:21 +02:00
Fred Gleason
db9da6dc62 2016-05-20 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'not null' attribute from the 'LOGS.LINK_DATETIME',
	'LOGS.START_DATE' and 'LOGS.END_DATE' fields in the database
	[GitHub issue #000121].
	* Incremented the database version to 257.
2016-05-20 16:45:56 -04:00
Fred Gleason
d9023b1430 2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added support for the RDCatchd 'DE' command in
	'rdcatchd/rdcatchd.cpp', 'rdcatchd/rdcatchd.h',
	'rdcatchd/event_player.cpp', 'rdcatchd/event_player.h' and
	'rdcatchd/local_macros.cpp'.
	* Added a deck event indicator to RDCatch's deck monitor in
	'rdcatch/deckmon.cpp' and 'rdcatch/deckmon.h'.
2016-05-18 17:03:25 -04:00
Fred Gleason
3b766a5e7d 2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added an entry for the Broadcast Tools SRC-16 in
	'docs/SWITCHERS.txt'.
	* Added a 'CUT_EVENTS' table to the database.
	* Added a 'DECK_EVENTS' table to the database.
	* Incremented the database version to 256.
	* Implemented a 'Cut Event' ['CE'] RML.
	* Added a 'Event Carts' section to the Edit Deck dialog in
	'rdadmin/edit_deck.cpp' and 'rdadmin/edit_deck.h'.
2016-05-18 13:43:21 -04:00
Fred Gleason
7892f4e8dc 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/lib.pro' that broke the build on Windows.
2016-04-29 18:13:02 -04:00
Fred Gleason
e5b25668c0 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Added a pointer offset argument to the 'RDWaveFile::createWave()'
	method in 'lib/rdwavefile.cpp' and 'lib/rdwavefile.h'.
2016-04-29 17:15:20 -04:00
Fred Gleason
09aa449509 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Implemented export for marker data in WAV files in
	'lib/rdwavefile.cpp' and 'lib/rdwavefile.h'.
2016-04-29 13:29:28 -04:00
Fred Gleason
fa988211a8 2016-04-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdcut.cpp' that caused the cut 'Description'
	field to be applied as a cut Title.
2016-04-27 20:00:13 -04:00
Fred Gleason
687a8c6fc8 2016-04-27 Brian McGlynn <brian.mcglynn@geneseemedia.net>
* Added a 'bitRate' field in the return for the AudioInfo web method.
	* Added an rdexport(1) utility in 'utils/rdexport/'.
2016-04-27 19:46:39 -04:00
Fred Gleason
7f441e628b resolved conflict in ChangeLog 2016-04-26 17:00:11 -04:00
Fred Gleason
37fc03231c resolved conflict in ChangeLog 2016-04-26 16:51:16 -04:00
Fred Gleason
41dc317857 Fixed conflict in ChangeLog 2016-04-26 15:58:34 -04:00
Fred Gleason
512d1a2575 2016-04-25 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Cut Log' report in 'lib/export_cutlog.cpp'.
	* Added 'DESCRIPTION' and 'OUTCUE' fields to the '_SRT' table
	schema.
	* Incremented the database version to 255.
2016-04-25 17:47:22 -04:00
Brian P. McGlynn
43f7bb297a Favor cuts expiring first in playback 2016-04-23 16:27:51 -04:00
Brian P. McGlynn
3ecc1fd221 Refactored RDLogEvent::save() and voicetracker 2016-04-21 21:42:44 -04:00
Brian P. McGlynn
1d470006f2 Fix for missing files in /var/snd 2016-04-21 07:45:33 -04:00
Fred Gleason
129004ace4 2016-03-29 Fred Gleason <fredg@paravelsystems.com>
* Added a switcher driver for the Broadcast Tools SS 4.1 MLR
	Switcher/Router in 'ripcd/btss41mlr.cpp' and 'ripcd/btss41mlr.h'.
2016-03-30 17:12:05 -04:00
Fred Gleason
1f494fbc5d 2016-03-29 Fred Gleason <fredg@paravelsystems.com>
* Added the 'Copy Cut' ['CP'] RML in 'lib/rdmacro.cpp' and
	'lib/rdmacro.h'.
	* Implemented the 'Copy Cut' ['CP'] RML in 'rdcatchd/local_macros.cpp'.
2016-03-29 14:57:07 -04:00
Fred Gleason
e656a4bb0a 2016-03-25 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Show Only Recent Logs' checkbox in 'rdlogedit/rdlogedit.cpp'
	and 'rdlogedit/rdlogedit.h'.
2016-03-25 15:00:53 -04:00
Fred Gleason
330a602fb5 2016-03-25 Fred Gleason <fredg@paravelsystems.com>
* Changed 'uninstall' to 'uninstall-local' targets in all
	'Makefile.am' files.
2016-03-25 10:30:45 -04:00
Fred Gleason
03cfa9d614 2016-03-24 Fred Gleason <fredg@paravelsystems.com>
* Update web test methods in 'web/tests/'.
	* Added an 'RDSchedCode' class in 'lib/rdschedcode.cpp' and
	'lib/rdschedcode.h'.
	* Implemented the 'ListSchedCodes' web method in
	'web/rdxport/schedcodes.cpp'.
	* Implemented the 'AssignSchedCode' web method in
	'web/rdxport/schedcodes.cpp'.
	* Implemented the 'UnassignSchedCode' web method in
	'web/rdxport/schedcodes.cpp'.
	* Implemented the 'ListCartSchedCodes' web method in
	'web/rdxport/schedcodes.cpp'.
	* Extended 'RDGetWebTime()' and 'RDGetWebDateTime()' functions to
	support XML 'xs' namespace formats.
	* Implemented '*_POINT' fields in the 'EditCut' web method in
	'web/rdxport/carts.cpp'.
	* Modified the 'RDCart::removeSchedCode()' method so as to treat
	scheduler codes in a case-insensitve manner.
	* Modified the return of the 'EditCut' web method to provide a full
	<cutList> record in 'web/rdxport/carts.cpp'.
2016-03-24 13:53:39 -04:00
Fred Gleason
9a4a05a5df 2016-03-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a buffer size bug in 'lib/rdlivewire.cpp'.
	* Fixed a bug in 'ripcd/livewire_lwrpaudio.cpp' that caused
	spurious errors to be dumped to stderr.
2016-03-24 11:43:28 -04:00
Fred Gleason
6d168b0a8f 2016-03-23 Fred Gleason <fredg@paravelsystems.com>
* Added a 'CART.USE_WEIGHTING' field to the database.
	* Added a 'CUTS.PLAY_ORDER' field to the database.
	* Incremented the database version to 254.
	* Added a 'Schedule Cuts By' control to the Edit Cart dialog in
	'rdlibrary/edit_cart.cpp' and 'rdlibrary/edit_cart.h'.
	* Added 'RDCart::useWeighting()' and 'RDCart::setUseWeighting()'
	methods in 'lib/rdcart.cpp' and 'lib/rdcart.h'.
	* Added 'RDCut::playOrder()' and 'RDCut::setPlayOrder()' methods
	in 'lib/rdcut.cpp' and 'lib/rdcut.h'.
2016-03-24 11:38:21 -04:00
fredg@paravelsystems.com
cb418987ce 2016-03-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a buffer size bug in 'lib/rdlivewire.cpp'.
2016-03-24 09:01:45 -04:00
Fred Gleason
422dff4a15 2016-03-20 Fred Gleason <fredg@paravelsystems.com>
* Added a switcher driver for the Broadcast Tools ADMS 44.22.
2016-03-20 19:43:38 -04:00
Fred Gleason
75999f5f6f 2015-09-17 Fred Gleason <fredg@paravelsystems.com>
* Added 'm4a', 'M4A', 'aac' and 'AAC' file extensions to
	RD_AUDIO_FILE_FILTER in 'lib/rd.h'.
2015-09-17 15:25:06 -04:00
Fred Gleason
c0446ea5f7 Merged 04bd883b65b9922c35216b92b4da52245fdc7f5b from master 2015-09-15 08:06:20 -04:00
Fred Gleason
07869f9ee9 2015-08-30 Fred Gleason <fredg@paravelsystems.com>
* Added a --frames=' parameter in 'tests/audio_peaks_test.cpp'.
	* Fixed a benchpost bug in generating peak energy data in
	'lib/rdwavefile.cpp'.
2015-08-31 12:03:45 -04:00
Fred Gleason
398408476c 2015-08-30 Fred Gleason <fredg@paravelsystems.com>
* Added PCM24 to 'lib/export_settings_dialog.cpp'.
2015-08-30 08:14:59 -04:00
Fred Gleason
8d70a79387 2015-08-29 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDAudioConvert::Stage3Pcm24()' method in
	'lib/rdaudioconvert.cpp' and 'lib/rdaudioconvert.h'.
	* Added a 'Format::Pcm24' value to the 'RDSettings::Format'
	enumeration in 'lib/rdsettings.h'.
	* Modified the 'RDAudioConvert' class to support generating PCM24
	output in 'lib/rdaudioconvert.cpp' and 'lib/rdaudioconvert.h'.
	* Modified the 'RDPlayStream' class to support playing PCM24
	data in 'rdhpi/rdplaystream.cpp'.
	* Modified the 'RDRecordStream' class to support capturing PCM24
	data in 'rdhpi/rdrecordstream.cpp'.
	* Added an 'audio_peaks_test' harness in 'tests/audio_peaks_test.cpp'
	and 'tests/audio_peaks_test.h'.
	* Added 'PCM24' to the list of available formats in
	'rdadmin/edit_rdlibrary.cpp' and 'rdadmin/edit_rdlibrary.h'.
	* Added 'PCM24' to the list of available formats in
	'rdadmin/edit_decks.cpp'.
	* Added PCM24 support for file importation in
	'web/rdxport/import.cpp'.
	* Added an 'RDCae::Pcm24' value to the 'RDCae::AudioCoding
	enumeration in 'lib/rdcae.h'.
2015-08-30 07:49:44 -04:00
Fred Gleason
888711270d 2015-05-28 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDMatrix::RossNkScp' value to the 'RDMatrix::Type'
	enumeration in 'lib/rdmatrix.cpp' and 'lib/rdmatrix.h'.
	* Implemented a switcher driver for the Ross NK line of video
	switchers via the SCP/A serial interface in 'ripcd/rossnkscp.cpp'
	and 'riptcd/rossnkscp.h'.
2015-05-29 07:13:05 -04:00
Fred Gleason
16284179cc Consolidated .gitignore files 2015-05-28 12:05:07 -04:00
Fred Gleason
153c0b4b0b 2015-04-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDLIBRARY.READ_ISRC' field to the database.
	* Incremented the database version to 245.
	* Added 'RDLibraryConf::readIsrc()' and 'RDLibraryConf::setReadIsrc()'
	methods in 'lib/rdlibrary_conf.cpp' and 'lib/rdlibrary_conf.h'.
	* Added a 'Read ISRCs from CD' control to the 'Edit RDLibrary' dialog
	in 'rdadmin/edit_rdlibrary.cpp' and 'rdadmin/edi_rdlibrary.h'.
	* Implemented the 'Read ISRCs from CD' option in the full disc
	ripper in 'rdlibrary/disk_ripper.cpp'.
	* Implemented the 'Read ISRCs from CD' option in the per-track disc
	ripper in 'rdlibrary/cdripper.cpp'.
2015-04-07 14:09:55 -04:00
Fred Gleason
babd9eb8e7 Fixed conflict in ChangeLog 2015-04-02 15:44:48 -04:00
Fred Gleason
12b8566af9 2015-04-02 Fred Gleason <fredg@paravelsystems.com>
* Modified the definition of the 'JACK_CLIENTS.COMMAND_LINE'
	field from 'char(255)' to 'text' in the database.
	* Incremented the database version to 244.
2015-04-02 10:48:37 -04:00
Fred Gleason
5e20febe5b 2015-03-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdcdplayer.cpp' that threw a segfault
	when opening the ripper with no CD inserted under RHEL 7.
2015-03-10 16:08:04 -04:00
Fred Gleason
da8cf74df8 2015-03-09 Fred Gleason <fredg@paravelsystems.com>
* Added a 'STATIONS.HAVE_MP4_DECODE' field to the database.
	* Incremented the database version to 243.
	* Added a 'Capability::HaveMp4Decode' value to the
	'RDStation::Capability' enumeration in 'lib/rdstation.cpp' and
	'lib/rdstation.h'.
2015-03-09 21:37:10 -04:00
Fred Gleason
eee86034da Merge branch 'm4a-feature' of https://github.com/smowton/rivendell into smowton-m4a-feature 2015-03-09 18:44:06 -04:00
Fred Gleason
c87ea8cfba 2015-03-05 Fred Gleason <fredg@paravelsystems.com>
* Increased 'MAX_ENDPOINTS' in 'lib/rd.h' from 1024 to 2048.
2015-03-05 21:04:52 -05:00