Ejemplo n.º 1
0
        public void AddList(string id, int listNumber)
        {
            if (listNumber == 0)
            {
                listNumber = 1;

                var videos = context.Videos;

                foreach (Video v in videos)
                {
                    if (v.List >= listNumber)
                    {
                        listNumber = v.List + 1;
                    }
                }
            }

            Logger.Info("Adding Playlist");

            DataRetriever fetcher = new DataRetriever();

            fetcher.AddPlaylist(listNumber, id);
        }