From 9c51633470d470f3e642b27cf45432452a73b27e Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 21 May 2011 00:09:41 -0700 Subject: [PATCH] Fixed nzbs.org RSS URL. Series Details Specials looks like the standard season grids. --- IISExpress/AppServer/applicationhost.config | 2 +- NzbDrone.Core/Providers/Indexer/NzbsOrg.cs | 2 +- NzbDrone.Web/Views/Series/Details.cshtml | 31 +++++++++++++++------ NzbDrone/app.config | 2 +- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/IISExpress/AppServer/applicationhost.config b/IISExpress/AppServer/applicationhost.config index cef5c1125..5f57e13ec 100644 --- a/IISExpress/AppServer/applicationhost.config +++ b/IISExpress/AppServer/applicationhost.config @@ -145,7 +145,7 @@ - + diff --git a/NzbDrone.Core/Providers/Indexer/NzbsOrg.cs b/NzbDrone.Core/Providers/Indexer/NzbsOrg.cs index 2b70a50d8..a323c6e42 100644 --- a/NzbDrone.Core/Providers/Indexer/NzbsOrg.cs +++ b/NzbDrone.Core/Providers/Indexer/NzbsOrg.cs @@ -20,7 +20,7 @@ namespace NzbDrone.Core.Providers.Indexer { return new[] { - string.Format("http://nzbs.org/rss.php?catid=1,14&i={0}&h={1}&num=50&dl=1", _configProvider.NzbsOrgUId, _configProvider.NzbsOrgHash) + string.Format("http://nzbs.org/rss.php?type=1&i={0}&h={1}&num=50&dl=1", _configProvider.NzbsOrgUId, _configProvider.NzbsOrgHash) }; } } diff --git a/NzbDrone.Web/Views/Series/Details.cshtml b/NzbDrone.Web/Views/Series/Details.cshtml index 1e32134de..06095a58a 100644 --- a/NzbDrone.Web/Views/Series/Details.cshtml +++ b/NzbDrone.Web/Views/Series/Details.cshtml @@ -105,22 +105,35 @@

Specials

- @{Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials") + @{Html.Telerik().Grid().Name("seasons_specials") .TableHtmlAttributes(new {@class = "Grid"}) .Columns(columns => - { - columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode"); - columns.Bound(c => c.Title); - columns.Bound(c => c.AirDate).Format("{0:d}").Width(0); - }) - //.DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
<#= Path #>
")) + { + columns.Bound(o => o.EpisodeId) + .ClientTemplate( + "") + .Title("") + .Width(1) + .HtmlAttributes(new { style = "text-align:center" }); + + columns.Bound(c => c.EpisodeNumber).Width(10).Title("Episode"); + columns.Bound(c => c.Title).Title("Title").Width(300); + columns.Bound(c => c.AirDate).Format("{0:d}").Width(10); + columns.Bound(c => c.Quality).Width(10); + columns.Bound(c => c.Path); + }) + .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
<#= Path #>
")) .ClientEvents(clientEvents => { clientEvents.OnDataBinding("grid_bind"); clientEvents.OnDataBound("grid_bound"); }) - .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false)) - .Footer(false) + .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true)) + .Footer(true) + .DataBinding( + d => + d.Ajax().Select("_AjaxSeasonGrid", "Series", + new RouteValueDictionary { { "seasonId", specialSeasons.SeasonId.ToString() } })) .Render(); } Loading Loading...
diff --git a/NzbDrone/app.config b/NzbDrone/app.config index 19dd15844..81d395705 100644 --- a/NzbDrone/app.config +++ b/NzbDrone/app.config @@ -4,6 +4,6 @@ - + \ No newline at end of file