2017-03-29 Fred Gleason <fredg@paravelsystems.com>

* Added a 'CUTS.SHA1_HASH' field to the database.
	* Incremented the database version to 261.
	* Added a 'Sha1' column to the Cut List in 'rdlibrary/audio_cart.cpp'.
	* Added 'RDCut::sha1Hash()' and 'RDCut::setSha1Hash()' methods in
	'lib/rdcut.cpp' and 'lib/rdcut.h'.
	* Added a '--rehash=' directive to rddbcheck(8).
	* Added a 'Rehash' Web API call.
	* Added an 'RDRehash' class in 'lib/rdrehash.cpp' and 'lib/rdrehash.h'.
This commit is contained in:
Fred Gleason
2017-03-29 11:09:15 -04:00
parent bc2c441680
commit 5dc6fa92a9
50 changed files with 1124 additions and 24 deletions

View File

@@ -2585,6 +2585,73 @@
</table>
</sect1>
<sect1>
<title>Rehash</title>
<subtitle>Generate a SHA-1 hash for a cut and write it to the database</subtitle>
<para>
Command Code: <code>RDXPORT_COMMAND_REHASH</code>
</para>
<para>
Required User Permissions: None
</para>
<table xml:id="ex.rehash" frame="all">
<title>Rehash Call Fields</title>
<tgroup cols="3" align="left" colsep="1" rowsep="1">
<colspec colname="FIELD NAME" />
<colspec colname="MEANING" />
<colspec colname="REMARKS" />
<thead>
<row>
<entry>
FIELD NAME
</entry>
<entry>
MEANING
</entry>
<entry>
REMARKS
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
COMMAND
</entry>
<entry>
32
</entry>
<entry>
Mandatory
</entry>
</row>
<row>
<entry>
CART_NUMBER
</entry>
<entry>
Number of cart
</entry>
<entry>
Mandatory
</entry>
</row>
<row>
<entry>
CUT_NUMBER
</entry>
<entry>
Number of cut
</entry>
<entry>
Mandatory
</entry>
</row>
</tbody>
</tgroup>
</table>
</sect1>
<sect1>
<title>RemoveCart</title>
<subtitle>Remove a cart from the Library</subtitle>

View File

@@ -14,6 +14,7 @@ DESCRIPTION char(64) Indexed
OUTCUE char(64) Indexed
ISRC char(12) International Standard Recording Code
ISCI char(32) ISCI Code
SHA1_HASH char(40)
LENGTH int(10) unsigned Overall length in ms.
ORIGIN_DATETIME datetime Date/Time when recorded
START_DATETIME datetime