2020-09-21 Fred Gleason <fredg@paravelsystems.com>

* Added a 'PODCASTS.SHA1_HASH' field to the database.
	* Incremented the database version to 335.
	* Added 'RDPodcast::sha1Hash()' and 'RDPodcast::setSha1Hash()'
	methods.
	* Implemented audio relinking for podcast media files.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-09-21 10:24:00 -04:00
parent 6516c20ff6
commit 6d3a60d174
13 changed files with 387 additions and 62 deletions

View File

@@ -29,6 +29,7 @@
#include <rdescape_string.h>
#include <rdformpost.h>
#include <rdgroup.h>
#include <rdhash.h>
#include <rdpodcast.h>
#include <rduser.h>
#include <rdweb.h>
@@ -83,6 +84,7 @@ void Xport::SavePodcast()
delete cast;
XmlExit(err_msg.toUtf8(),500,"podcasts.cpp",LINE_NUMBER);
}
cast->setSha1Hash(RDSha1Hash(destpath));
printf("Content-type: text/html; charset: UTF-8\n");
printf("Status: 200\n\n");
@@ -191,6 +193,7 @@ void Xport::DeletePodcast()
XmlExit(err_msg.toUtf8(),500,"podcasts.cpp",LINE_NUMBER);
}
}
cast->setSha1Hash();
printf("Content-type: text/html; charset: UTF-8\n");
printf("Status: 200\n\n");