mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user