mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
Fixed: (Anilibria) Fix download torrent link (#529)
This commit is contained in:
parent
76d73aa6a9
commit
eeebf3ecf0
1 changed files with 3 additions and 2 deletions
|
@ -172,6 +172,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||||
{
|
{
|
||||||
var torrentInfos = new List<ReleaseInfo>();
|
var torrentInfos = new List<ReleaseInfo>();
|
||||||
var queryResponseItems = JsonConvert.DeserializeObject<List<AnilibriaTitle>>(indexerResponse.Content);
|
var queryResponseItems = JsonConvert.DeserializeObject<List<AnilibriaTitle>>(indexerResponse.Content);
|
||||||
|
var wwwUrl = Regex.Replace(_settings.BaseUrl, @"(https?:\/\/)(.*)", "$1www.$2/");
|
||||||
|
|
||||||
foreach (var tl in queryResponseItems)
|
foreach (var tl in queryResponseItems)
|
||||||
{
|
{
|
||||||
|
@ -190,8 +191,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||||
|
|
||||||
// API provides timestamp in UTC+3 timezone, so we need to substract 3 hours
|
// API provides timestamp in UTC+3 timezone, so we need to substract 3 hours
|
||||||
PublishDate = DateTimeUtil.UnixTimestampToDateTime(tr.UploadedTimestamp).AddHours(-3),
|
PublishDate = DateTimeUtil.UnixTimestampToDateTime(tr.UploadedTimestamp).AddHours(-3),
|
||||||
Guid = _settings.BaseUrl + tr.Url,
|
Guid = wwwUrl + tr.Url,
|
||||||
DownloadUrl = _settings.BaseUrl + tr.Url,
|
DownloadUrl = wwwUrl + tr.Url,
|
||||||
Size = tr.TotalSize,
|
Size = tr.TotalSize,
|
||||||
Resolution = tr.Quality.Resolution,
|
Resolution = tr.Quality.Resolution,
|
||||||
Codec = tr.Quality.Encoder
|
Codec = tr.Quality.Encoder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue