mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add new attributes to various trackers (#583)
* Use AvistazTracker base
* Revert "Use AvistazTracker base"
This reverts commit 9eba02c758
.
* Add new attributes to various trackers
* more DL factors for HDSpace
* new attributes for Fuzer
* add new attributes for ImmortalSeed
* set UploadVolumeFactor for myAmity
* add new attributes to bitmetv
This commit is contained in:
@@ -203,6 +203,7 @@ namespace Jackett.Indexers
|
||||
// Parse required data
|
||||
var downloadAnchorHref = downloadAnchor.Attributes["href"].Value;
|
||||
var torrentId = downloadAnchorHref.Substring(downloadAnchorHref.LastIndexOf('=') + 1);
|
||||
var files = int.Parse(row.QuerySelector("td:nth-child(4)").TextContent);
|
||||
var publishDate = DateTime.ParseExact(row.QuerySelector(".time.tooltip").Attributes["title"].Value, "MMM dd yyyy, HH:mm", CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal);
|
||||
var torrentData = row.QuerySelectorAll(".number_column"); // Size (xx.xx GB[ (Max)]) Snatches (xx) Seeders (xx) Leechers (xx)
|
||||
|
||||
@@ -213,6 +214,7 @@ namespace Jackett.Indexers
|
||||
torrentId = torrentId.Split('#')[0];
|
||||
|
||||
var size = ParseSizeToBytes(torrentData[0].TextContent);
|
||||
var grabs = int.Parse(torrentData[1].TextContent);
|
||||
var seeders = int.Parse(torrentData[2].TextContent);
|
||||
var guid = new Uri(GuidUrl + torrentId);
|
||||
|
||||
@@ -226,9 +228,13 @@ namespace Jackett.Indexers
|
||||
PublishDate = publishDate,
|
||||
Seeders = seeders,
|
||||
Peers = seeders,
|
||||
Files = files,
|
||||
Size = size,
|
||||
Grabs = grabs,
|
||||
Guid = guid,
|
||||
Comments = guid
|
||||
Comments = guid,
|
||||
DownloadVolumeFactor = 0, // ratioless tracker
|
||||
UploadVolumeFactor = 1
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user