WIP Ember Media Manager 1.9.x - Download & Discussion Thread
(2020-12-26, 23:23)DanCooper Wrote:
(2020-12-20, 00:07)ralfonat Wrote: anything we can help there? is it just a user-agent thing or something more complex?
I'm not shure. The connection will be closed by remote host if i use a simpel System.Net.WebClient. If you've time than try to create a solution in VisualStudio (please use a new project and don't change Embers source code).

Works flawlessly for me.

Code goes here: (needs NuGet package Fizzler.Systems.HtmlAgilityPack)


    WebClient wc = new WebClient();
    string srchHtml = wc.DownloadString("https://www.videobuster.de/titlesearch.php?search_title=die+croods");

    string movieUrl = "";

    HtmlAgilityPack.HtmlDocument html = new HtmlAgilityPack.HtmlDocument();
    HtmlAgilityPack.HtmlNode doc = html.DocumentNode;
    foreach (HtmlAgilityPack.HtmlNode resNode in doc.QuerySelectorAll("ul.list div.infos"))
        HtmlAgilityPack.HtmlNode linkNode = resNode.QuerySelector("a.title");
        movieUrl = new Uri(new Uri("https://www.videobuster.de"), linkNode.GetAttributeValue("href", "")).ToString();

    if (movieUrl.Length>0)
        string movieHtml = wc.DownloadString(movieUrl);

        HtmlAgilityPack.HtmlDocument htmlMovie = new HtmlAgilityPack.HtmlDocument();
        HtmlAgilityPack.HtmlNode docMovie = htmlMovie.DocumentNode;
        foreach (HtmlAgilityPack.HtmlNode resNode in docMovie.QuerySelectorAll("div#trailer div.playlist div.item"))

            foreach (HtmlAgilityPack.HtmlNode metaNode in resNode.QuerySelectorAll("meta[itemprop=contentUrl]"))
                string videoFileUrl = metaNode.GetAttributeValue("content", "");


                string tmpFile = System.IO.Path.GetTempFileName();
                wc.DownloadFile(videoFileUrl, tmpFile);


            //HtmlAgilityPack.HtmlNode linkNode = resNode.QuerySelector("a.title");
            //movieUrl = new Uri(new Uri("https://www.videobuster.de"), linkNode.GetAttributeValue("href", "")).ToString();


Messages In This Thread
Miscellaneous > Media List Editor - by pstrg - 2020-06-09, 02:38
MovieSets - by pstrg - 2020-06-11, 22:01
RE: Ember Media Manager 1.5.x - Download & Discussion Thread - by ralfonat - 2020-12-27, 01:41
Logout Mark Read Team Forum Stats Members Help
Ember Media Manager 1.9.x - Download & Discussion Thread2
This forum uses Lukasz Tkacz MyBB addons.