protected static bool RssMatch([NotNull] RSSItem rss, [NotNull] ProcessedEpisode pe) { string simpleShowName = Helpers.SimplifyName(pe.Show.ShowName); string simpleSeriesName = Helpers.SimplifyName(pe.TheCachedSeries.Name); if (!FileHelper.SimplifyAndCheckFilename(rss.ShowName, simpleShowName, true, false) && !( string.IsNullOrEmpty(rss.ShowName) && FileHelper.SimplifyAndCheckFilename(rss.Title, simpleSeriesName, true, false) ) ) { return(false); } if (rss.Season != pe.AppropriateSeasonNumber) { return(false); } if (rss.Episode != pe.AppropriateEpNum) { return(false); } return(true); }
public ActionTDownload(RSSItem rss, string theFileNoExt, ProcessedEpisode pe) { SourceName = rss.Title; url = rss.URL; this.theFileNoExt = theFileNoExt; this.pe = pe; }
public ActionTDownload([NotNull] RSSItem rss, string theFileNoExt, ProcessedEpisode pe, ItemMissing me) { SourceName = rss.Title; url = rss.URL; this.theFileNoExt = theFileNoExt; Episode = pe; UndoItemMissing = me; }
public ActionTDownload([NotNull] RSSItem rss, string theFileNoExt, ItemMissing me) { SourceName = rss.Title; url = rss.URL; this.theFileNoExt = theFileNoExt; UpstreamSource = rss.UpstreamSource; Episode = me.Episode; Movie = me.Movie; UndoItemMissing = me; Seeders = rss.Seeders; sizeBytes = rss.Bytes; UpstreamSource = rss.UpstreamSource; }
public ActionRSS(RSSItem rss, string toWhereNoExt, ProcessedEpisode pe) { this.Episode = pe; this.RSS = rss; this.TheFileNoExt = toWhereNoExt; }
protected static bool RssMatch([NotNull] RSSItem rss, [NotNull] MovieConfiguration pe) { string simpleShowName = Helpers.SimplifyName(pe.ShowName); return(FileHelper.SimplifyAndCheckFilename(rss.ShowName.HasValue()? rss.ShowName: rss.Title, simpleShowName, true, false)); }