Skip to content

Commit

Permalink
solidtorrents: refine cats. resolves #12405
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 13, 2021
1 parent 8ffe2e9 commit 1ed49b5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/Jackett.Common/Indexers/SolidTorrents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private ConfigurationData ConfigData
// when updating categories also update ParseCategory routine.
AddCategoryMapping("Audio", TorznabCatType.Audio, "Audio");
AddCategoryMapping("Video", TorznabCatType.Movies, "Video");
AddCategoryMapping("Video", TorznabCatType.TV, "Video");
AddCategoryMapping("Image", TorznabCatType.OtherMisc, "Image");
AddCategoryMapping("Document", TorznabCatType.BooksComics, "Document");
AddCategoryMapping("eBook", TorznabCatType.BooksEBook, "eBook");
Expand All @@ -93,13 +94,17 @@ protected virtual List<int> ParseCategory(string query)
switch (query)
{
case "Audio":
case "7":
case "8":
case "7": // music
case "8": // audiobook
cats.Add(TorznabCatType.Audio.ID);
break;
case "Video":
case "2":
case "2": // movies
case "3": // tv
case "4": // anime , hentai
case "10": // 3x
cats.Add(TorznabCatType.Movies.ID);
cats.Add(TorznabCatType.TV.ID);
break;
case "Image":
cats.Add(TorznabCatType.OtherMisc.ID);
Expand All @@ -108,15 +113,15 @@ protected virtual List<int> ParseCategory(string query)
cats.Add(TorznabCatType.BooksComics.ID);
break;
case "eBook":
case "9":
case "9": // books
cats.Add(TorznabCatType.BooksEBook.ID);
break;
case "Program":
case "6":
case "5": // software
case "6": // games
cats.Add(TorznabCatType.PC0day.ID);
break;
case "Android":
case "5":
cats.Add(TorznabCatType.PCMobileAndroid.ID);
break;
case "Archive":
Expand All @@ -132,7 +137,7 @@ protected virtual List<int> ParseCategory(string query)
cats.Add(TorznabCatType.MoviesDVD.ID);
break;
case "Unknown":
case "1":
case "1": // other
cats.Add(TorznabCatType.Other.ID);
break;
default:
Expand Down

0 comments on commit 1ed49b5

Please sign in to comment.