1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-11 20:28:20 -04:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Mike S
e6d3954e79 Update to work with Deluge v2 (#3577) 2019-06-21 18:36:27 -04:00
Daniel Dammermann
61066cb6cf Fixed: Library shown as empty after filter returns no movies and page is refreshed (#3515)
Fixes #3514
2019-05-30 20:31:31 +02:00
Leonardo Galli
2f76f3c6b6 Create FUNDING.yml 2019-05-30 00:34:57 +02:00
4 changed files with 31 additions and 3 deletions

8
.github/FUNDING.yml vendored Normal file
View File

@@ -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

View File

@@ -48,9 +48,25 @@ namespace NzbDrone.Core.Download.Clients.Deluge
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)

View File

@@ -370,7 +370,7 @@ module.exports = Marionette.Layout.extend({
},
_renderView : function() {
if (MoviesCollection.length === 0) {
if (MoviesCollection.length === 0 && !this.moviesCollection.isFiltered()) {
this.moviesRegion.show(new EmptyView());
this.toolbar.close();

View File

@@ -261,6 +261,10 @@ var Collection = PageableCollection.extend({
this.fetch();
},
isFiltered : function() {
return this.state.filterKey && this.state.filterKey !== 'all';
},
comparator: function (model) {
return model.get('sortTitle');
}