Esempio n. 1
0
 public PodCast(string url, string name, string dnbpath, bool localXML = false, Genre genre = null, bool autodownload = false, cLogger logger = null)
 {
     this.URL          = url;
     this.PodcastName  = name;
     this.genre        = genre;
     this.podcastpath  = dnbpath;
     this.logger       = logger;
     islocalxml        = localXML;
     AutomaticDownload = autodownload;
 }
Esempio n. 2
0
        public Show(string title, Artist artist, string album, string url, Genre genre, string description, string path, cLogger logger, PodCast p)
        {
            this.logger   = logger;
            this.title    = title;
            this.album    = album;
            this.url      = url;
            this.artist   = artist;
            this.filename = url.Substring(url.LastIndexOf("/") + 1);
            this.genre    = genre;
            Tracklist     = description;
            this.dnbpath  = path;
            parentpodcast = p;
            bool exists = fileAlreadyExists(path);

            if (!exists)
            {
                logger.addEvent(new cEvent(Severity.Information, "File: " + filename + " is new"));
            }
            else
            {
                writeTagInfo(Capitalise(title), dnbpath + filename, Capitalise(genre.GenreName), Capitalise(artist.Artistname));
            }
        }