mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e6d3954e79 | |||
| 61066cb6cf | |||
| 2f76f3c6b6 |
@@ -0,0 +1,8 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
|
patreon: # Replace with a single Patreon username
|
||||||
|
open_collective: radarr
|
||||||
|
ko_fi: # Replace with a single Ko-fi username
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
custom: # Replace with a single custom sponsorship URL
|
||||||
@@ -48,9 +48,25 @@ namespace NzbDrone.Core.Download.Clients.Deluge
|
|||||||
|
|
||||||
public string GetVersion(DelugeSettings settings)
|
public string GetVersion(DelugeSettings settings)
|
||||||
{
|
{
|
||||||
var response = ProcessRequest<string>(settings, "daemon.info");
|
try
|
||||||
|
{
|
||||||
|
var response = ProcessRequest<string>(settings, "daemon.info");
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
}
|
||||||
|
catch (DownloadClientException ex)
|
||||||
|
{
|
||||||
|
if (ex.Message.Contains("Unknown method"))
|
||||||
|
{
|
||||||
|
// Deluge v2 beta replaced 'daemon.info' with 'daemon.get_version'.
|
||||||
|
// It may return or become official, for now we just retry with the get_version api.
|
||||||
|
var response = ProcessRequest<string>(settings, "daemon.get_version");
|
||||||
|
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Dictionary<string, object> GetConfig(DelugeSettings settings)
|
public Dictionary<string, object> GetConfig(DelugeSettings settings)
|
||||||
|
|||||||
@@ -370,7 +370,7 @@ module.exports = Marionette.Layout.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_renderView : function() {
|
_renderView : function() {
|
||||||
if (MoviesCollection.length === 0) {
|
if (MoviesCollection.length === 0 && !this.moviesCollection.isFiltered()) {
|
||||||
this.moviesRegion.show(new EmptyView());
|
this.moviesRegion.show(new EmptyView());
|
||||||
|
|
||||||
this.toolbar.close();
|
this.toolbar.close();
|
||||||
|
|||||||
@@ -261,6 +261,10 @@ var Collection = PageableCollection.extend({
|
|||||||
this.fetch();
|
this.fetch();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isFiltered : function() {
|
||||||
|
return this.state.filterKey && this.state.filterKey !== 'all';
|
||||||
|
},
|
||||||
|
|
||||||
comparator: function (model) {
|
comparator: function (model) {
|
||||||
return model.get('sortTitle');
|
return model.get('sortTitle');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user