Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

CF Workaround: LHTranslation

SDXC edited this page Mar 30, 2019 · 1 revision

LHTranslation uses a background first-tier Cloudflare instance that sets a browser session id at the first visit. The lifespan of Cloudflare browser sessions are normally relatively short and you will have to repeat the following steps everytime that session id changes or if you get to see the Cloudflare browser check.


The problem

When trying to fetch manga info or checking for new chapters FMD can't get any infos or chapters. Trying to manually check the manga info, could result in this:

FMDMangaInfoNotFound


Go to the website

Go to LHTranslation and wait until the page has finished loading.


Get the UserAgent string

The following steps were done with Mozilla Firefox. Other browsers also have developer tools, but are a bit different.

After the website is loaded properly, press F12 to open the developer tools. When the bottom bar of the devtools has popped up, refresh the website by hitting F5. Go to the "Networkanalysis" tab in the devtools pane and select an element in the list (the top element is probably the best choice). Next to the element list you can now find the detailed session information, such as the UserAgent string and cookies. Start with getting the UserAgent of your browser:

FirefoxUserAgent

Now you have to put the UserAgent string into the advanced settings for LHTranslation in FMD and set all shown values to 1:

FMDAddUserAgent


Get the session cookies

To get the cookies you can change to the Cookies tab in the detailed session pane of the selected element:

FirefoxCookies

These cookies all have to be added to the advanced settings for LHTranslation in FMD:

FMDAddCookieSettings

The cookies in FMD should be set in the following format:
__cfduid=xxxxxx;
PHPSESSID=xxxxxx

Please note, that you have to correctly set the '=' and ';' characters!


Get manga info and download chapters

If everything was done correctly, you should be able to get the manga info...:

FMDMangaInfoFound

...and download the chapters:

FMDDownloadWorks