Exemple #1
0
        public Podcasts(WebFetcher aWebFetcher, string aAlbumArtUri)
        {
            iWebFetcher  = aWebFetcher;
            iAlbumArtUri = aAlbumArtUri;

            iMetadata       = new container();
            iMetadata.Id    = "podcasts";
            iMetadata.Title = "Podcasts";
            iMetadata.AlbumArtUri.Add(aAlbumArtUri);

            iShows = new List <PodcastShow>();

            iWebFile = iWebFetcher.Create(new Uri("http://wfmu.org/podcast"), "podcasts.xml", 60);
            iWebFile.EventContentsChanged += WebFileContentsChanged;
            iWebFile.Open();
        }
Exemple #2
0
        public Podcast(WebFetcher aWebFetcher, string aInstallPath, IContentDirectorySupportV2 aSupport)
        {
            iTrailers = new List <Trailer>();

            iWebFetcher = aWebFetcher;

            iWebFile = iWebFetcher.Create(new Uri(kAppleTrailersHiResUri), "podcasts.xml", 60);
            iWebFile.EventContentsChanged += WebFileContentsChanged;
            iWebFile.Open();

            string movieTrailerLogo = aSupport.VirtualFileSystem.Uri(Path.Combine(aInstallPath, "MovieTrailers.png"));

            iMetadata       = new container();
            iMetadata.Id    = "movietrailers";
            iMetadata.Title = "Movie Trailers";
            iMetadata.AlbumArtUri.Add(movieTrailerLogo);
            iMetadata.ChildCount = 0;
        }
Exemple #3
0
        internal PodcastShow(string aId, string aName, string aAlbumArtUri, WebFetcher aWebFetcher)
        {
            iId          = aId;
            iName        = aName;
            iAlbumArtUri = aAlbumArtUri;
            // iAlbumArtUri = "http://wfmu.org/podcast_images/" + iId.ToLower() + "_rss.png";
            iWebFetcher = aWebFetcher;

            iMetadata       = new container();
            iMetadata.Id    = iId;
            iMetadata.Title = iName;
            iMetadata.AlbumArtUri.Add(iAlbumArtUri);

            iEpisodes = new List <PodcastEpisode>();

            iWebFile = iWebFetcher.Create(new Uri("http://wfmu.org/podcast/" + iId + ".xml"), iId + ".xml", 60);
            iWebFile.EventContentsChanged += WebFileContentsChanged;

            iWebFile.Open();
        }
Exemple #4
0
        public ContentDirectoryShoutcast(string aDataPath, IContentDirectorySupportV2 aSupport)
        {
            iSupport    = aSupport;
            iOptionPage = new OptionPage("Shoutcast");

            string installPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName);

            iAlbumArtUri = aSupport.VirtualFileSystem.Uri(Path.Combine(installPath, "Shoutcast.png"));

            iStations = new List <LiveStation>();

            iMetadata       = new album();
            iMetadata.Id    = "shoutcast";
            iMetadata.Title = "Shoutcast";
            iMetadata.AlbumArtUri.Add(iAlbumArtUri);

            iWebFetcher = new WebFetcher(aDataPath);

            iWebFile = iWebFetcher.Create(new Uri("http://yp.shoutcast.com/sbin/newxml.phtml?search=radio&br=320&mt=audio/mpeg"), "stations.xml", 60);
            iWebFile.EventContentsChanged += WebFileContentsChanged;
            iWebFile.Open();
        }