plugins: respect the Backend element. closes #1224
This commit is contained in:
parent
7695ace969
commit
ec469fa174
|
@ -26,8 +26,9 @@ namespace SparkleLib {
|
|||
|
||||
public class SparkleFetcherInfo {
|
||||
public string Address;
|
||||
public string Fingerprint;
|
||||
public string RemotePath;
|
||||
public string Backend;
|
||||
public string Fingerprint;
|
||||
public string TargetDirectory;
|
||||
public string AnnouncementsUrl;
|
||||
public bool FetchPriorHistory;
|
||||
|
|
|
@ -542,7 +542,11 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
string canonical_name = Path.GetFileName (info.RemotePath);
|
||||
string backend = SparkleFetcherBase.GetBackend (info.Address);
|
||||
string backend = info.Backend;
|
||||
|
||||
if (string.IsNullOrEmpty (backend))
|
||||
backend = SparkleFetcherBase.GetBackend (info.Address);
|
||||
|
||||
info.TargetDirectory = Path.Combine (tmp_path, canonical_name);
|
||||
|
||||
try {
|
||||
|
|
|
@ -376,7 +376,8 @@ namespace SparkleShare {
|
|||
Fingerprint = SelectedPlugin.Fingerprint,
|
||||
RemotePath = remote_path,
|
||||
FetchPriorHistory = this.fetch_prior_history,
|
||||
AnnouncementsUrl = SelectedPlugin.AnnouncementsUrl
|
||||
AnnouncementsUrl = SelectedPlugin.AnnouncementsUrl,
|
||||
Backend = SelectedPlugin.Backend
|
||||
};
|
||||
|
||||
new Thread (() => { Program.Controller.StartFetcher (info); }).Start ();
|
||||
|
|
Loading…
Reference in a new issue