mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
bjshare: multiple improvements (#7432)
Add details to release when its from the last 24h list; change cat4 to PCGames; Changed category parsing on 24h list; Added parsing from 4K to 2160p
This commit is contained in:

committed by
GitHub

parent
3f19e6becf
commit
1f9c760246
@@ -89,7 +89,7 @@ namespace Jackett.Common.Indexers
|
|||||||
AddCategoryMapping(13, TorznabCatType.TV, "Stand Up Comedy");
|
AddCategoryMapping(13, TorznabCatType.TV, "Stand Up Comedy");
|
||||||
AddCategoryMapping(11, TorznabCatType.Other, "Video-Aula");
|
AddCategoryMapping(11, TorznabCatType.Other, "Video-Aula");
|
||||||
AddCategoryMapping(6, TorznabCatType.TV, "Vídeos de TV");
|
AddCategoryMapping(6, TorznabCatType.TV, "Vídeos de TV");
|
||||||
AddCategoryMapping(4, TorznabCatType.Other, "Jogos");
|
AddCategoryMapping(4, TorznabCatType.PCGames, "Jogos");
|
||||||
AddCategoryMapping(199, TorznabCatType.XXX, "Filmes Adultos");
|
AddCategoryMapping(199, TorznabCatType.XXX, "Filmes Adultos");
|
||||||
AddCategoryMapping(200, TorznabCatType.XXX, "Jogos Adultos");
|
AddCategoryMapping(200, TorznabCatType.XXX, "Jogos Adultos");
|
||||||
AddCategoryMapping(201, TorznabCatType.XXXImageset, "Fotos Adultas");
|
AddCategoryMapping(201, TorznabCatType.XXXImageset, "Fotos Adultas");
|
||||||
@@ -222,6 +222,7 @@ namespace Jackett.Common.Indexers
|
|||||||
|
|
||||||
var year = "";
|
var year = "";
|
||||||
release.Description = "";
|
release.Description = "";
|
||||||
|
var extra_info = "";
|
||||||
foreach (var child in qBJinfoBox.ChildNodes)
|
foreach (var child in qBJinfoBox.ChildNodes)
|
||||||
{
|
{
|
||||||
var type = child.NodeType;
|
var type = child.NodeType;
|
||||||
@@ -245,16 +246,28 @@ namespace Jackett.Common.Indexers
|
|||||||
else if (line.StartsWith("Ano:"))
|
else if (line.StartsWith("Ano:"))
|
||||||
{
|
{
|
||||||
year = line.Substring("Ano: ".Length);
|
year = line.Substring("Ano: ".Length);
|
||||||
;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
release.Description += line + "\n";
|
release.Description += line + "\n";
|
||||||
|
if (line.Contains(":"))
|
||||||
|
{
|
||||||
|
if(!(line.StartsWith("Lançado") || line.StartsWith("Resolução") || line.StartsWith("Idioma") || line.StartsWith("Autor")))
|
||||||
|
{
|
||||||
|
var info = line.Substring(line.IndexOf(": ") + 2);
|
||||||
|
if (info == "Dual Áudio")
|
||||||
|
{
|
||||||
|
info = "Dual";
|
||||||
|
}
|
||||||
|
extra_info += info + " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
extra_info.Trim();
|
||||||
|
|
||||||
var catStr = qCatLink.GetAttribute("href").Split('=')[1];
|
var catStr = qCatLink.GetAttribute("href").Split('=')[1].Split('&')[0];
|
||||||
release.Title = FixAbsoluteNumbering(release.Title);
|
release.Title = FixAbsoluteNumbering(release.Title);
|
||||||
|
|
||||||
if (year != "")
|
if (year != "")
|
||||||
@@ -268,6 +281,9 @@ namespace Jackett.Common.Indexers
|
|||||||
|
|
||||||
switch (quality)
|
switch (quality)
|
||||||
{
|
{
|
||||||
|
case "4K":
|
||||||
|
release.Title += " 2160p";
|
||||||
|
break;
|
||||||
case "Full HD":
|
case "Full HD":
|
||||||
release.Title += " 1080p";
|
release.Title += " 1080p";
|
||||||
break;
|
break;
|
||||||
@@ -280,6 +296,8 @@ namespace Jackett.Common.Indexers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
release.Title += " " + extra_info;
|
||||||
|
|
||||||
release.Category = MapTrackerCatToNewznab(catStr);
|
release.Category = MapTrackerCatToNewznab(catStr);
|
||||||
release.Link = new Uri(SiteLink + qDlLink.GetAttribute("href"));
|
release.Link = new Uri(SiteLink + qDlLink.GetAttribute("href"));
|
||||||
release.Comments = new Uri(SiteLink + qDetailsLink.GetAttribute("href"));
|
release.Comments = new Uri(SiteLink + qDetailsLink.GetAttribute("href"));
|
||||||
|
Reference in New Issue
Block a user