New: (AvistaZ) Parse Languages and Subs, pass in response

#694
This commit is contained in:
Qstick
2022-07-04 22:50:17 -05:00
parent 09ed132fe6
commit 4dee1d65d1
5 changed files with 20 additions and 4 deletions
@@ -40,6 +40,14 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
[JsonProperty(PropertyName = "video_quality")]
public string VideoQuality { get; set; }
public string Type { get; set; }
public List<AvistazLanguage> Audio { get; set; }
public List<AvistazLanguage> Subtitle { get; set; }
}
public class AvistazLanguage
{
public int Id { get; set; }
public string Language { get; set; }
}
public class AvistazResponse
@@ -66,6 +66,8 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
UploadVolumeFactor = row.UploadMultiply,
MinimumRatio = 1,
MinimumSeedTime = 172800, // 48 hours
Languages = row.Audio?.Select(x => x.Language).ToList() ?? new List<string>(),
Subs = row.Subtitle?.Select(x => x.Language).ToList() ?? new List<string>()
};
if (row.MovieTvinfo != null)