public static string getPlaybackUrl(string playerUrl, Movie2KSerienUtil Util)
 {
     string data = WebCache.Instance.GetWebData(playerUrl, cookies: Util.GetCookie(), forceUTF8: Util.forceUTF8Encoding, allowUnsafeHeader: Util.allowUnsafeHeaders, encoding: Util.encodingOverride);
     Match m = Regex.Match(data, Util.hosterUrlRegEx);
     string url = m.Groups["url"].Value;
     Uri uri = new Uri(url);
     foreach (HosterBase hosterUtil in HosterFactory.GetAllHosters())
         if (uri.Host.ToLower().Contains(hosterUtil.GetHosterUrl().ToLower()))
         {
             Dictionary<string, string> options = hosterUtil.GetPlaybackOptions(url);
             if (options != null && options.Count > 0)
             {
                 url = options.Last().Value;
             }
             break;
         }
     return url;
 }
            public static string getPlaybackUrl(string playerUrl, Movie2KSerienUtil Util)
            {
                string data = WebCache.Instance.GetWebData(playerUrl, cookies: Util.GetCookie(), forceUTF8: Util.forceUTF8Encoding, allowUnsafeHeader: Util.allowUnsafeHeaders, encoding: Util.encodingOverride);
                Match  m    = Regex.Match(data, Util.hosterUrlRegEx);
                string url  = m.Groups["url"].Value;
                Uri    uri  = new Uri(url);

                foreach (HosterBase hosterUtil in HosterFactory.GetAllHosters())
                {
                    if (uri.Host.ToLower().Contains(hosterUtil.GetHosterUrl().ToLower()))
                    {
                        Dictionary <string, string> options = hosterUtil.GetPlaybackOptions(url);
                        if (options != null && options.Count > 0)
                        {
                            url = options.Last().Value;
                        }
                        break;
                    }
                }
                return(url);
            }