1.x - Chizra
- * Config change. Added new entry. See upgrade/from-version-1.5.txt. It won't work if it is missing.
+ * Config change. Added new entries. See upgrade/from-version-1.5.txt. It won't work if it is missing.
* Licence change to GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* Cleanups
* Fixed: #21 Debug? string in error log
** https://watercss.kognise.dev/
* create a real fallback theme, which does not depend on any styling/css
** change the css and js lookup too in main file
-* central user-agent and browser info in config. Remove from tools
* i18n support
* Automatic upgrades of DB
* drop in updates
-# Added new const to config.php file.
-Use config.php.default as a help. The new line is:
-const LOGFILE = PATH_SYSTEMOUT.'/bibliotheca.log';
\ No newline at end of file
+## Added new constants to config.php file.
+Use config.php.default as a help. The new lines are:
+const LOGFILE = PATH_SYSTEMOUT.'/bibliotheca.log';
+
+# CURL browser settings
+const BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0';
+const BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
+const BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
+
+
+## Updated tools configs
+Please compare the default config files for googlebooks, imdbweb and musicbrainz and make the required
+changes.
* TOOL_GOOGLEBOOKS_BROWSER_ACCEPT_LANG should define in which language the content returns
*/
-const TOOL_GOOGLEBOOKS_BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0';
-const TOOL_GOOGLEBOOKS_BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
-const TOOL_GOOGLEBOOKS_BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
+const TOOL_GOOGLEBOOKS_BROWSER_AGENT = BROWSER_AGENT;
+const TOOL_GOOGLEBOOKS_BROWSER_ACCEPT = BROWSER_ACCEPT;
+const TOOL_GOOGLEBOOKS_BROWSER_ACCEPT_LANG = BROWSER_ACCEPT_LANG;
const TOOL_GOOGLEBOOKS_FIELDS_TO = array(
'title' => 'title',
);
*/
-const TOOL_IMDBWEB_BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0';
-const TOOL_IMDBWEB_BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
-const TOOL_IMDBWEB_BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
+const TOOL_IMDBWEB_BROWSER_AGENT = BROWSER_AGENT;
+const TOOL_IMDBWEB_BROWSER_ACCEPT = BROWSER_ACCEPT;
+const TOOL_IMDBWEB_BROWSER_ACCEPT_LANG = BROWSER_ACCEPT_LANG;
* TOOL_BRAINZ_RESULT_LIMIT How many entries the search will display
*/
-const TOOL_BRAINZ_BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0';
-const TOOL_BRAINZ_BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
-const TOOL_BRAINZ_BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';
+const TOOL_BRAINZ_BROWSER_AGENT = BROWSER_AGENT;
+const TOOL_BRAINZ_BROWSER_ACCEPT = BROWSER_ACCEPT;
+const TOOL_BRAINZ_BROWSER_ACCEPT_LANG = BROWSER_ACCEPT_LANG;
const TOOL_BRAINZ_RESULT_LIMIT = 10;
# view options
const RESULTS_PER_PAGE = 24;
+
+# CURL browser settings
+const BROWSER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0';
+const BROWSER_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
+const BROWSER_ACCEPT_LANG = 'en-US,en;q=0.5';