mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 17:17:02 +00:00
Search History Force Download
Fixed: Issue with Force Download in Search History
This commit is contained in:
parent
97fa0ef0d3
commit
82f0751a15
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ public JsonResult ForceDownload(int id)
|
||||||
{
|
{
|
||||||
_searchHistoryProvider.ForceDownload(id);
|
_searchHistoryProvider.ForceDownload(id);
|
||||||
|
|
||||||
return new JsonResult { Data = "ok", JsonRequestBehavior = JsonRequestBehavior.AllowGet };
|
return JsonNotificationResult.Info("Success", "Requested episode has been sent to download client");
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetDisplayName(SearchHistory searchResult)
|
public string GetDisplayName(SearchHistory searchResult)
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
function actionColumn(source, type, val) {
|
function actionColumn(source, type, val) {
|
||||||
if (type === 'display' || type === 'filter') {
|
if (type === 'display' || type === 'filter') {
|
||||||
return '<a href="/SearchHistory/ForceDownload/' + source["Id"] + '" data-ajax="true" data-ajax-confirm="Are you sure?"><i class="icon-plus gridAction"></i></a>';
|
return '<a href="/SearchHistory/ForceDownload?id=' + source["Id"] + '" data-ajax="true" data-ajax-confirm="Are you sure?"><i class="icon-plus gridAction"></i></a>';
|
||||||
}
|
}
|
||||||
// 'sort' and 'type' both just use the raw data
|
// 'sort' and 'type' both just use the raw data
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue