mirror of https://github.com/Jackett/Jackett
avistaz: improve category parsing (#10038)
The category hack is not required after #10031
This commit is contained in:
parent
7a2e52659a
commit
60af4a04d3
|
@ -80,8 +80,6 @@ namespace Jackett.Common.Indexers.Abstract
|
||||||
switch(row.Value<string>("type"))
|
switch(row.Value<string>("type"))
|
||||||
{
|
{
|
||||||
case "Movie":
|
case "Movie":
|
||||||
if (query.Categories.Contains(TorznabCatType.Movies.ID))
|
|
||||||
cats.Add(TorznabCatType.Movies.ID);
|
|
||||||
cats.Add(resolution switch
|
cats.Add(resolution switch
|
||||||
{
|
{
|
||||||
var res when _hdResolutions.Contains(res) => TorznabCatType.MoviesHD.ID,
|
var res when _hdResolutions.Contains(res) => TorznabCatType.MoviesHD.ID,
|
||||||
|
@ -90,8 +88,6 @@ namespace Jackett.Common.Indexers.Abstract
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "TV-Show":
|
case "TV-Show":
|
||||||
if (query.Categories.Contains(TorznabCatType.TV.ID))
|
|
||||||
cats.Add(TorznabCatType.TV.ID);
|
|
||||||
cats.Add(resolution switch
|
cats.Add(resolution switch
|
||||||
{
|
{
|
||||||
var res when _hdResolutions.Contains(res) => TorznabCatType.TVHD.ID,
|
var res when _hdResolutions.Contains(res) => TorznabCatType.TVHD.ID,
|
||||||
|
|
Loading…
Reference in New Issue