public void Execute(SubsPleaseRss file)
        {
            try
            {
                var formatArgs = string.Format(arguments, ps.settings.FolderInput, file.magnet, ps.settings.QBittorrentURL);

                var p = new Process();
                p.StartInfo.FileName  = ps.settings.QBittorrentCLIPath;
                p.StartInfo.Arguments = formatArgs;

                p.Start();

                p.WaitForExit();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
        public List <SubsPleaseRss> Execute()
        {
            var terms = ps.settings.Patterns;
            List <SubsPleaseRss> res = new List <SubsPleaseRss>();

            var feed = FeedReader.ReadAsync(feedUrl).Result;

            foreach (var item in feed.Items)
            {
                var title = item.Title;

                foreach (var term in terms)
                {
                    if (term.Match(title) && !db.files.ContainsKey(title))
                    {
                        var file = new SubsPleaseRss(item.Title, item.Link);
                        res.Add(file);
                    }
                }
            }

            return(res);
        }