mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-28 14:42:34 +02:00
Add support for FTPS upload and download in RDCatch.
cURL supports 'ftps://' URLs so this change was trivial.
This commit is contained in:
parent
afb3832f72
commit
7d60274573
@ -20244,3 +20244,6 @@
|
||||
'Podcast Feed Item List' dialog in rdcastmanager(1).
|
||||
2020-08-13 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added an 'RDCastManager' chapter to the Operations Guide.
|
||||
2020-08-15 David Klann <dklann@linux.com>
|
||||
* Added support for FTPS protocol for uploading, downloading, and
|
||||
Feed management.
|
||||
|
@ -81,6 +81,7 @@ QStringList RDDelete::supportedSchemes() const
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("sftp");
|
||||
schemes.push_back("ftps");
|
||||
|
||||
return schemes;
|
||||
}
|
||||
@ -131,7 +132,7 @@ RDDelete::ErrorCode RDDelete::runDelete(const QString &username,
|
||||
curl_easy_setopt(curl,CURLOPT_DEBUGFUNCTION,DeleteErrorCallback);
|
||||
}
|
||||
|
||||
if(conv_target_url.scheme().toLower()=="ftp") {
|
||||
if(conv_target_url.scheme().toLower()=="ftp"||conv_target_url.scheme().toLower()=="ftps") {
|
||||
QStringList f0=conv_target_url.path().split("/",QString::SkipEmptyParts);
|
||||
filename=f0.last();
|
||||
f0.removeLast();
|
||||
|
@ -82,6 +82,7 @@ QStringList RDDownload::supportedSchemes() const
|
||||
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("ftps");
|
||||
schemes.push_back("http");
|
||||
schemes.push_back("https");
|
||||
schemes.push_back("sftp");
|
||||
|
@ -85,6 +85,7 @@ QStringList RDUpload::supportedSchemes() const
|
||||
schemes.push_back("file");
|
||||
schemes.push_back("ftp");
|
||||
schemes.push_back("sftp");
|
||||
schemes.push_back("ftps");
|
||||
|
||||
return schemes;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ void EditDownload::urlChangedData(const QString &str)
|
||||
{
|
||||
QUrl url(str);
|
||||
QString protocol=url.protocol();
|
||||
if((protocol=="ftp")||(protocol=="http")||(protocol=="file")||
|
||||
if((protocol=="ftp")||(protocol=="ftps")||(protocol=="http")||(protocol=="file")||
|
||||
(protocol=="scp")||(protocol=="sftp")) {
|
||||
edit_username_label->setEnabled(true);
|
||||
edit_username_edit->setEnabled(true);
|
||||
@ -502,7 +502,7 @@ void EditDownload::okData()
|
||||
}
|
||||
QUrl url(edit_url_edit->text());
|
||||
QString protocol=url.protocol();
|
||||
if((protocol!="ftp")&&(protocol!="http")&&(protocol!="https")&&
|
||||
if((protocol!="ftp")&&(protocol!="ftps")&&(protocol!="http")&&(protocol!="https")&&
|
||||
(protocol!="file")&&(protocol!="scp")&&(protocol!="sftp")) {
|
||||
QMessageBox::warning(this,
|
||||
tr("Invalid URL"),tr("Unsupported URL protocol!"));
|
||||
|
@ -449,7 +449,7 @@ void EditUpload::urlChangedData(const QString &str)
|
||||
{
|
||||
QUrl url(str);
|
||||
QString protocol=url.protocol().lower();
|
||||
if((protocol=="ftp")||(protocol=="file")||
|
||||
if((protocol=="ftp")||(protocol=="ftps")||(protocol=="file")||
|
||||
(protocol=="scp")||(protocol=="sftp")) {
|
||||
edit_username_label->setEnabled(true);
|
||||
edit_username_edit->setEnabled(true);
|
||||
@ -527,7 +527,7 @@ void EditUpload::okData()
|
||||
}
|
||||
QUrl url(edit_url_edit->text());
|
||||
QString protocol=url.protocol();
|
||||
if((protocol!="ftp")&&(protocol!="file")&&
|
||||
if((protocol!="ftp")&&(protocol!="ftps")&&(protocol!="file")&&
|
||||
(protocol!="scp")&&(protocol!="sftp")) {
|
||||
QMessageBox::warning(this,
|
||||
tr("Invalid URL"),tr("Unsupported URL protocol!"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user