This script is designed to fetch the Blu-ray database from the FindVUK Online Database. It performs the following operations:
-
Determines the target directory based on the user's privileges. If the user is root, it uses the global directory; otherwise, it uses the local directory.
-
Checks if the target directory exists. If it doesn't, the script creates it. If it does exist, the script removes the existing
KEYDB.cfg
file. -
Fetches a list of zip file links from the FindVUK Online Database website.
-
Creates a temporary directory.
-
Iterates over each link, performing the following actions:
- Downloads the zip file.
- Unzips the file.
- Appends the contents of the
keydb.cfg
file to theKEYDB.cfg
in the target directory. - Removes the downloaded and extracted files.
-
Finally, it removes the temporary directory.
This script is useful for automating the process of updating your Blu-ray database from the FindVUK Online Database.