Beispiel #1
0
        public YouTubeTileData(Video video)
        {
            BansheePlaybackUri = GetPlaybackUri(video);
            BrowserPlaybackUri = video.WatchPage.AbsoluteUri;
            Title    = video.Title;
            Uploader = video.Uploader;

            try {
                RatingValue = (int)Math.Round(video.RatingAverage);
            } catch (Exception e) {
                Log.DebugException(e);
            }

            DataFetch df = new DataFetch();

            Thumbnail = df.DownloadContent(video.Thumbnails[0].Url, CacheDuration.Normal);
        }