示例#1
0
        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);
        }
示例#2
0
 public ActionTDownload(RSSItem rss, string theFileNoExt, ProcessedEpisode pe)
 {
     SourceName        = rss.Title;
     url               = rss.URL;
     this.theFileNoExt = theFileNoExt;
     this.pe           = pe;
 }
示例#3
0
 public ActionTDownload([NotNull] RSSItem rss, string theFileNoExt, ProcessedEpisode pe, ItemMissing me)
 {
     SourceName        = rss.Title;
     url               = rss.URL;
     this.theFileNoExt = theFileNoExt;
     Episode           = pe;
     UndoItemMissing   = me;
 }
示例#4
0
 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;
 }
示例#5
0
 public ActionRSS(RSSItem rss, string toWhereNoExt, ProcessedEpisode pe)
 {
     this.Episode      = pe;
     this.RSS          = rss;
     this.TheFileNoExt = toWhereNoExt;
 }
示例#6
0
        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));
        }