Exemplo n.º 1
0
        public ItemList ForceUpdateEpisode(DownloadIdentifier.DownloadType dt, ProcessedEpisode episode, FileInfo filo)
        {
            ItemList theActionList = new ItemList();

            foreach (DownloadIdentifier di in identifiers.Where(di => dt == di.GetDownloadType()))
            {
                theActionList.Add(di.ProcessEpisode(episode, filo, true));
            }
            return(theActionList);
        }
        public ItemList ForceUpdateSeason(DownloadIdentifier.DownloadType dt, ShowItem si, string folder, int snum)
        {
            ItemList TheActionList = new ItemList();

            foreach (DownloadIdentifier di in this.Identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    TheActionList.Add(di.ProcessSeason(si, folder, snum, true));
                }
            }
            return(TheActionList);
        }
        public ItemList ForceUpdateShow(DownloadIdentifier.DownloadType dt, ShowItem si)
        {
            ItemList TheActionList = new ItemList();

            foreach (DownloadIdentifier di in this.Identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    TheActionList.Add(di.ProcessShow(si, true));
                }
            }
            return(TheActionList);
        }
        public ItemList ForceUpdateEpisode(DownloadIdentifier.DownloadType dt, ProcessedEpisode dbep, FileInfo filo)
        {
            ItemList TheActionList = new ItemList();

            foreach (DownloadIdentifier di in this.Identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    TheActionList.Add(di.ProcessEpisode(dbep, filo, true));
                }
            }
            return(TheActionList);
        }
        public ItemList ForceUpdateEpisode(DownloadIdentifier.DownloadType dt, [CanBeNull] ProcessedEpisode dbep, FileInfo filo)
        {
            ItemList theActionList = new ItemList();

            if (dbep is null)
            {
                return(theActionList);
            }

            foreach (DownloadIdentifier di in identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    theActionList.Add(di.ProcessEpisode(dbep, filo, true));
                }
            }
            return(theActionList);
        }
        public ItemList ForceUpdateSeason(DownloadIdentifier.DownloadType dt, [CanBeNull] ShowItem si, string folder, int snum)
        {
            ItemList theActionList = new ItemList();

            if (si is null)
            {
                return(theActionList);
            }

            foreach (DownloadIdentifier di in identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    theActionList.Add(di.ProcessSeason(si, folder, snum, true));
                }
            }
            return(theActionList);
        }
Exemplo n.º 7
0
        public ItemList ForceUpdateShow(DownloadIdentifier.DownloadType dt, ShowConfiguration?si)
        {
            ItemList theActionList = new ItemList();

            if (si is null)
            {
                return(theActionList);
            }

            foreach (DownloadIdentifier di in identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    theActionList.Add(di.ProcessShow(si, true));
                }
            }
            return(theActionList);
        }
Exemplo n.º 8
0
        public ItemList ForceUpdateMovie(DownloadIdentifier.DownloadType dt, MovieConfiguration?si, FileInfo filo)
        {
            ItemList theActionList = new ItemList();

            if (si is null)
            {
                return(theActionList);
            }

            foreach (DownloadIdentifier di in identifiers)
            {
                if (dt == di.GetDownloadType())
                {
                    theActionList.Add(di.ProcessMovie(si, filo, true));
                }
            }
            return(theActionList);
        }