hentaifox downloads are failing

Run into a problem? Report it here!
Post Reply
demondante
Posts: 6
Joined: Mon Aug 07, 2017 5:18 am

hentaifox downloads are failing

Post by demondante » Sun Nov 24, 2019 9:29 pm

Its weird. When I try to download manga from hentaifox, the download will initialize and appear to download a couple of files, but will ultimately fail, as seen below:

Image

This is another error that I am seeing when trying to download manga from hentaifox:

Image

demondante
Posts: 6
Joined: Mon Aug 07, 2017 5:18 am

Re: hentaifox downloads are failing

Post by demondante » Fri Nov 29, 2019 9:40 pm

Ok. So I don't know why it is taking so long for a response concerning this issue, much less a fix. Between now and the time I created this original post, even with my full time job, I was able to write a powershell script which successfully does what Hdoujin downloader no longer can. I will post the code below in the event that it potentially helps you push an updated version of the application more quickly.

Code: Select all

function download-manga
{
param (
    [String]$url
)
$web = invoke-webrequest $url
$folder = $web.ParsedHtml.title.TrimEnd(" - HentaiFox").replace("<", "").replace(">", "").replace("(", "").replace(")","").Replace(":", "").Replace("?", "").Replace("*", "").Replace("\", "").Replace("/", "").Replace("|", "").Replace("~", "")
New-Item "$env:USERPROFILE\Downloads\manga\$folder" -ItemType Directory -Force
$findp = $web.AllElements | Where-Object { $_.class -like "wrap" }
        $ind = $findp[0].Innertext.IndexOf("Pages")
        $sub = $findp[0].innerText.Substring($ind + 7)
        $o = 0
        $num = ""
        While ($sub[$o] -match "\d{1}")
        {
            $num = $num + $sub[$o]
            $o++
        }
		[int]$pagenum = $num
Foreach ($thing in $web.links)
{
    If ($thing.href -match "/g/\d+/1/")
    {
        $num = $($thing.href.split("/"))[2]
        Break
    }
}
$isfault = $false
For ($i = 1; $i -lt $pagenum + 1; $i++)
{
    $page = Invoke-WebRequest "https://hentaifox.com/g/$num/$i/"
        $split = $page.Images[0].src.Split("/")
        Invoke-WebRequest $page.Images[0].src -OutFile "$env:USERPROFILE\Downloads\manga\$folder\$($split[-1])"
}
}

DarkH
Posts: 1
Joined: Sat Nov 30, 2019 5:17 am

Re: hentaifox downloads are failing

Post by DarkH » Sat Nov 30, 2019 5:48 am

Instead of creating a duplicate thread, I will post in this one.
I am having the exact same problem.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests