Ejemplo n.º 1
0
        public string ANALIZ_LINE(string line, out bool typelink)
        {
            string rezult      = line;
            Regex  regex_link  = new Regex("http://");
            Regex  regex_link2 = new Regex("https://");

            typelink = true;

            if (linkIsBad(line))
            {
                return(FileWork.Get_m3uPath() + rezult);
            }

            if (AnalizTYPElink(line))
            {
                Debug.WriteLine("find link >>>" + line);
                //в файле находится ссылка на m3u
                mode_work_with_links = true;
                wait_download        = true;
                Parsing_link(line);
                rezult = temppath;
                Debug.WriteLine("find link rezult download OK");
            }
            else
            {
                return(FileWork.Get_m3uPath() + rezult);
            }
            //--------------------------

            typelink = false;
            return(rezult);
        }
Ejemplo n.º 2
0
        public string ANALIZ_LINE(string line, out bool typelink)
        {
            string rezult = line;

            typelink = true;

            if (linkIsBad(line))
            {
                return(FileWork.Get_m3uPath() + rezult);
            }

            if (FindLINKinLine(line))
            {
                Debug.WriteLine("find link >>>" + line);
                rezult = data.temppath;
            }
            else
            {
                return(FileWork.Get_m3uPath() + rezult);
            }
            //--------------------------

            typelink = false;
            return(rezult);
        }