Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public ActionTDownload(RSSItem rss, string theFileNoExt, ProcessedEpisode pe)
 {
     SourceName        = rss.Title;
     url               = rss.URL;
     this.theFileNoExt = theFileNoExt;
     this.pe           = pe;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 public ActionRSS(RSSItem rss, string toWhereNoExt, ProcessedEpisode pe)
 {
     this.Episode      = pe;
     this.RSS          = rss;
     this.TheFileNoExt = toWhereNoExt;
 }
Ejemplo n.º 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));
        }