config-musicbrainz.php.default 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Bibliotheca
  4. *
  5. * Copyright 2018-2024 Johannes Keßler
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
  19. */
  20. /**
  21. * Options for the musicbrainz class
  22. *
  23. * TOOL_BRAINZ_FIELDS_TO is a array to define which fields should be saved into
  24. * a bibliotheca field. Those or the fields a collection can have. Use the identifier of a field.
  25. * Depends on your settings so make sure everything is setup first. Leave it commented if not needed.
  26. * nameFromService => bibFieldName
  27. * TOOL_BRAINZ_BROWSER_AGENT a current browser agent string. Should be updated from time to time. See default config file.
  28. * TOOL_BRAINZ_BROWSER_ACCEPT A string what the browser does accept. Should be updated from time to time. See default config file.
  29. * TOOL_BRAINZ_BROWSER_ACCEPT_LANG should define in which language the content returns
  30. * TOOL_BRAINZ_RESULT_LIMIT How many entries the search will display
  31. */
  32. const TOOL_BRAINZ_BROWSER_AGENT = BROWSER_AGENT;
  33. const TOOL_BRAINZ_BROWSER_ACCEPT = BROWSER_ACCEPT;
  34. const TOOL_BRAINZ_BROWSER_ACCEPT_LANG = BROWSER_ACCEPT_LANG;
  35. const TOOL_BRAINZ_RESULT_LIMIT = 10;
  36. /*
  37. const TOOL_BRAINZ_FIELDS_TO = array(
  38. 'album' => 'title',
  39. 'date' => 'year',
  40. 'artist' => 'artist',
  41. 'image' => 'coverimage',
  42. 'tracks' => 'content',
  43. 'runtime' => 'runtime'
  44. );
  45. */