Fixed: (GreatPosterWall) Remove special characters from titles

pull/1396/head
Bogdan 2 years ago
parent dbf86efb0a
commit 9b2274805e

@ -149,7 +149,7 @@ public class GreatPosterWallParser : GazelleParser
var release = new GazelleInfo var release = new GazelleInfo
{ {
Title = torrent.FileName, Title = WebUtility.HtmlDecode(torrent.FileName).Trim(),
Guid = infoUrl, Guid = infoUrl,
InfoUrl = infoUrl, InfoUrl = infoUrl,
PosterUrl = GetPosterUrl(result.Cover), PosterUrl = GetPosterUrl(result.Cover),
@ -248,171 +248,171 @@ public class GreatPosterWallResponse
public class Response public class Response
{ {
[JsonProperty("currentPage")] [JsonProperty("currentPage")]
public int CurrentPage { get; set; } public int CurrentPage { get; set; }
[JsonProperty("pages")] [JsonProperty("pages")]
public int Pages { get; set; } public int Pages { get; set; }
[JsonProperty("results")] [JsonProperty("results")]
public List<Result> Results { get; set; } public List<Result> Results { get; set; }
} }
public class Result public class Result
{ {
[JsonProperty("groupId")] [JsonProperty("groupId")]
public int GroupId { get; set; } public int GroupId { get; set; }
[JsonProperty("groupName")] [JsonProperty("groupName")]
public string GroupName { get; set; } public string GroupName { get; set; }
[JsonProperty("groupSubName")] [JsonProperty("groupSubName")]
public string GroupSubName { get; set; } public string GroupSubName { get; set; }
[JsonProperty("cover")] [JsonProperty("cover")]
public string Cover { get; set; } public string Cover { get; set; }
[JsonProperty("tags")] [JsonProperty("tags")]
public List<string> Tags { get; set; } public List<string> Tags { get; set; }
[JsonProperty("bookmarked")] [JsonProperty("bookmarked")]
public bool Bookmarked { get; set; } public bool Bookmarked { get; set; }
[JsonProperty("groupYear")] [JsonProperty("groupYear")]
public int GroupYear { get; set; } public int GroupYear { get; set; }
[JsonProperty("releaseType")] [JsonProperty("releaseType")]
public string ReleaseType { get; set; } public string ReleaseType { get; set; }
[JsonProperty("groupTime")] [JsonProperty("groupTime")]
public string GroupTime { get; set; } public string GroupTime { get; set; }
[JsonProperty("maxSize")] [JsonProperty("maxSize")]
public object MaxSize { get; set; } public object MaxSize { get; set; }
[JsonProperty("totalSnatched")] [JsonProperty("totalSnatched")]
public int TotalSnatched { get; set; } public int TotalSnatched { get; set; }
[JsonProperty("totalSeeders")] [JsonProperty("totalSeeders")]
public int TotalSeeders { get; set; } public int TotalSeeders { get; set; }
[JsonProperty("totalLeechers")] [JsonProperty("totalLeechers")]
public int TotalLeechers { get; set; } public int TotalLeechers { get; set; }
[JsonProperty("imdbId")] [JsonProperty("imdbId")]
public string ImdbId { get; set; } public string ImdbId { get; set; }
[JsonProperty("imdbRating")] [JsonProperty("imdbRating")]
public string ImdbRating { get; set; } public string ImdbRating { get; set; }
[JsonProperty("imdbVote")] [JsonProperty("imdbVote")]
public string ImdbVote { get; set; } public string ImdbVote { get; set; }
[JsonProperty("doubanId")] [JsonProperty("doubanId")]
public string DoubanId { get; set; } public string DoubanId { get; set; }
[JsonProperty("doubanRating")] [JsonProperty("doubanRating")]
public string DoubanRating { get; set; } public string DoubanRating { get; set; }
[JsonProperty("doubanVote")] [JsonProperty("doubanVote")]
public string DoubanVote { get; set; } public string DoubanVote { get; set; }
[JsonProperty("rtRating")] [JsonProperty("rtRating")]
public string RtRating { get; set; } public string RtRating { get; set; }
[JsonProperty("region")] [JsonProperty("region")]
public string Region { get; set; } public string Region { get; set; }
[JsonProperty("torrents")] [JsonProperty("torrents")]
public List<GreatPosterWallTorrent> Torrents { get; set; } public List<GreatPosterWallTorrent> Torrents { get; set; }
} }
public class GreatPosterWallTorrent public class GreatPosterWallTorrent
{ {
[JsonProperty("torrentId")] [JsonProperty("torrentId")]
public int TorrentId { get; set; } public int TorrentId { get; set; }
[JsonProperty("editionId")] [JsonProperty("editionId")]
public int EditionId { get; set; } public int EditionId { get; set; }
[JsonProperty("remasterYear")] [JsonProperty("remasterYear")]
public int RemasterYear { get; set; } public int RemasterYear { get; set; }
[JsonProperty("remasterTitle")] [JsonProperty("remasterTitle")]
public string RemasterTitle { get; set; } public string RemasterTitle { get; set; }
[JsonProperty("remasterCustomTitle")] [JsonProperty("remasterCustomTitle")]
public string RemasterCustomTitle { get; set; } public string RemasterCustomTitle { get; set; }
[JsonProperty("scene")] [JsonProperty("scene")]
public bool Scene { get; set; } public bool Scene { get; set; }
[JsonProperty("jinzhuan")] [JsonProperty("jinzhuan")]
public bool Jinzhuan { get; set; } public bool Jinzhuan { get; set; }
[JsonProperty("fileCount")] [JsonProperty("fileCount")]
public int FileCount { get; set; } public int FileCount { get; set; }
[JsonProperty("time")] [JsonProperty("time")]
public DateTime Time { get; set; } public DateTime Time { get; set; }
[JsonProperty("size")] [JsonProperty("size")]
public long Size { get; set; } public long Size { get; set; }
[JsonProperty("snatches")] [JsonProperty("snatches")]
public int Snatches { get; set; } public int Snatches { get; set; }
[JsonProperty("seeders")] [JsonProperty("seeders")]
public int Seeders { get; set; } public int Seeders { get; set; }
[JsonProperty("leechers")] [JsonProperty("leechers")]
public int Leechers { get; set; } public int Leechers { get; set; }
[JsonProperty("isFreeleech")] [JsonProperty("isFreeleech")]
public bool IsFreeleech { get; set; } public bool IsFreeleech { get; set; }
[JsonProperty("isNeutralLeech")] [JsonProperty("isNeutralLeech")]
public bool IsNeutralLeech { get; set; } public bool IsNeutralLeech { get; set; }
[JsonProperty("freeType")] [JsonProperty("freeType")]
public string FreeType { get; set; } public string FreeType { get; set; }
[JsonProperty("isPersonalFreeleech")] [JsonProperty("isPersonalFreeleech")]
public bool IsPersonalFreeleech { get; set; } public bool IsPersonalFreeleech { get; set; }
[JsonProperty("canUseToken")] [JsonProperty("canUseToken")]
public bool CanUseToken { get; set; } public bool CanUseToken { get; set; }
[JsonProperty("hasSnatched")] [JsonProperty("hasSnatched")]
public bool HasSnatched { get; set; } public bool HasSnatched { get; set; }
[JsonProperty("resolution")] [JsonProperty("resolution")]
public string Resolution { get; set; } public string Resolution { get; set; }
[JsonProperty("source")] [JsonProperty("source")]
public string Source { get; set; } public string Source { get; set; }
[JsonProperty("codec")] [JsonProperty("codec")]
public string Codec { get; set; } public string Codec { get; set; }
[JsonProperty("container")] [JsonProperty("container")]
public string Container { get; set; } public string Container { get; set; }
[JsonProperty("processing")] [JsonProperty("processing")]
public string Processing { get; set; } public string Processing { get; set; }
[JsonProperty("chineseDubbed")] [JsonProperty("chineseDubbed")]
public string ChineseDubbed { get; set; } public string ChineseDubbed { get; set; }
[JsonProperty("specialSub")] [JsonProperty("specialSub")]
public string SpecialSub { get; set; } public string SpecialSub { get; set; }
[JsonProperty("subtitles")] [JsonProperty("subtitles")]
public string Subtitles { get; set; } public string Subtitles { get; set; }
[JsonProperty("fileName")] [JsonProperty("fileName")]
public string FileName { get; set; } public string FileName { get; set; }
[JsonProperty("releaseGroup")] [JsonProperty("releaseGroup")]
public string ReleaseGroup { get; set; } public string ReleaseGroup { get; set; }
} }

Loading…
Cancel
Save