Skip to content

HOST Configuration Guide ​

How to Fix Movie Wall Data Scraping Failures by Configuring HOST ​

Introduction ​

Problem scenario: When your movie wall application (such as "Fan Video") shows "Failed to connect to TMDB" or is unable to scrape movie information for a long time, even if your API key is correct, it may be due to network DNS pollution (i.e., the domain name is resolved incorrectly), preventing access to The Movie Database (TMDB) servers.

Solution: By configuring the HOSTS file of 【Fan Video】, we can manually point the TMDB service domain to its correct IP address, bypassing unreliable DNS resolution and establishing a direct connection.

This tutorial will guide you through the process.

Find the TMDB API Server Address ​

Before modifying the HOST file, you need to obtain the real IP address of the TMDB API service domain. Since some regions may experience DNS resolution errors that prevent normal access to the TMDB API, it is recommended to manually query the currently valid IP address using the following method:

  1. Visit any online DNS query / IP query tool, and enter the TMDB API domain in the query box: api.themoviedb.org, then run the query.

Recommended query platforms:

  1. Taking DNS Checker as an example, the operation steps are as follows:

On the website's homepage search box, enter api.themoviedb.org, select type A, and click Search.

image1

Scroll down the page, select China as the region, and view the IP addresses corresponding to this domain. Copy or record this IP for subsequent HOST configuration.

image2

Configure HOST ​

  1. Open the 【Fan Video】 application and click the 【Settings】 button in the upper-right corner.
  2. In the settings menu, select the 【Scraping Settings】 option from the left side.
  3. On the Scraping Settings page, find 【Data Source】, and click the 【Configure】 button below to set it up.
image3
  1. In the "HOST Configuration" input box, paste the IP address you queried earlier, and make sure the format meets the requirements:

    IP address + space + domain name

  2. Fill in the 【HOST rule】. In the input box, fill in the following format. You can add multiple entries at once, one per line.

    Example:

    3.175.86.103 api.themoviedb.org

    3.175.86.37 api.themoviedb.org

    Additional domain names:

    image.themoviedb.org

    www.themoviedb.org

image4
  1. After checking that the input is correct, click 【Save Config】 to take effect.

FAQ ​

Q1: What should I do if it still shows "Unable to access API" after configuration?

Please confirm that the IP address you entered is the latest valid address. If the API is still inaccessible, the IP may have changed. It is recommended to use an IP query tool (such as IPAddress.com) again to obtain the latest IP and retry.

If the problem persists, try temporarily changing the device's DNS server to another public DNS to rule out local DNS resolution issues.

Q2: TMDB is configured correctly, but the media library content has not updated. What should I do?

After configuring the TMDB data source, the system will not automatically update the existing media library content.

To update, go to 【Media Library Management】 and run 【Scan Media Library】. The system will re-fetch metadata and poster information based on the new data source.

Q3: Why can't the NAS USB drive save the hosts file information?

Because the NAS USB drive program runs on a Windows system, it calls the computer's local 【Hosts file】. You need to configure the TMDB hosts address locally on the computer.

Released under the MIT License.