Пример #1
0
        public List<Artist> UpdateMovieArtistList(String Id)
        {
            string userPath = "C:\\Users\\user\\AppData\\Roaming\\XBMC\\userdata\\Database\\";
            string VideoDatabase = "MyVideos60.db";

            MovieDatabase MovieDB = new MovieDatabase();
            MovieDB.SetDbSource(userPath + VideoDatabase);
            MovieDB.Open();
            List<Artist> list = MovieDB.GetMovieArtistList();
            MovieDB.Close();

            return list;
        }
Пример #2
0
        public List<MovieSumary> GetMovieInfoList()
        {
            string userPath = "C:\\Users\\user\\AppData\\Roaming\\XBMC\\userdata\\Database\\";
            string VideoDatabase = "MyVideos60.db";

            MovieDatabase MovieDB = new MovieDatabase();
            MovieDB.SetDbSource(userPath + VideoDatabase);
            MovieDB.Open();
            List<MovieSumary> list = MovieDB.GetMovieSummaryList();
            MovieDB.Close();

            return list;
        }
Пример #3
0
        public Stream GetMovieThumb(string id)
        {
            string userPath = "C:\\Users\\user\\AppData\\Roaming\\XBMC\\userdata\\Database\\";
            string VideoDatabase = "MyVideos60.db";

            MovieDatabase MovieDB = new MovieDatabase();
            MovieDB.SetDbSource(userPath + VideoDatabase);
            MovieDB.SetThumbsPath("C:\\Users\\user\\AppData\\Roaming\\XBMC\\userdata\\Thumbnails\\Video\\");
            MovieDB.Open();
            Stream movieThumb = MovieDB.GetMovieThumb(Int32.Parse(id));
            MovieDB.Close();
            WebOperationContext.Current.OutgoingResponse.ContentType = "image/jpeg";
            return movieThumb;
        }