// Load List 2
        public void LoadM3u(string[] FilePaths)
        {
            if (Path.GetExtension(FilePaths[0]).ToLower() != ".m3u")
            {
                return;
            }

            string[] L = M3U.Load(FilePaths[0]);
            AddNewFiles(L);
        }
Exemple #2
0
        public void LoadM3u(string FilePath)
        {
            if (Path.GetExtension(FilePath).ToLower() != ".m3u")
            {
                return;
            }

            //ClearList();
            string[] L     = M3U.Load(FilePath);
            var      fpath = FilePath.Replace("\\m3u.m3u", "\\");

            foreach (string st in L)
            {
                if (st == String.Empty)
                {
                    break;
                }
                string path = fpath + st;
                AddNewFile(path);
            }
        }