config-imdbweb.php.default 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 imdb grabber
  22. *
  23. * TOOL_IMDBWEB_SEARCH can be 'movie = 'tv = 'episode = 'game = 'all'. Default is movie
  24. * TOOL_IMDBWEB_FIELDS is an array to define which fields from IMDB are displayed for selection
  25. * an empty array() shows all.
  26. * getAka, getAkas, getAspectRatio, getAwards, getBudget, getCast, getCastAndCharacter, CastAndCharacterAsUrl,
  27. * getCastAsUrl, getCertification, getColor, getCompany, getCompanyAsUrl, getCountry, getCountryAsUrl,
  28. * getCreator, getCreatorAsUrl, getDescription, getDirector, getDirectorAsUrl, getGenre, getGenreAsUrl,
  29. * getGross, getLanguage, getLanguageAsUrl, getLocation, getLocationAsUrl, getLocations, getMpaa, getPlot,
  30. * getPlotKeywords, getPoster, getRating, getRatingCount, getReleaseDate, getReleaseDates, getRuntime,
  31. * getSeasons, getSeasonsAsUrl, getSoundMix, getTagline, getTitle, getTrailerAsUrl, getUrl, getUserReview,
  32. * getVotes, getWriter, getWriterAsUrl, getYear
  33. * TOOL_IMDBWEB_FIELDS_TO is a array to define which imdbwebfield (see TOOL_IMDBWEB_FIELDS) should be saved into
  34. * a bibliotheca field. Those or the fields a collection can have. Use the identifier of a field.
  35. * Depends on your settings so make sure everything is setup first. Leave it commented if not needed.
  36. * nameFromService => bibFieldName
  37. * TOOL_IMDBWEB_BROWSERSTRING a current browser agent string. Should be updated from time to time. See default config file.
  38. * TOOL_IMDBWEB_BROWSER_ACCEPT_LANG should define in which language the content returns
  39. */
  40. const TOOL_IMDBWEB_SEARCH = 'movie';
  41. const TOOL_IMDBWEB_FIELDS = array(
  42. 'getCast', 'getDescription', 'getDirector', 'getGenre', 'getPlot', 'getRating', 'getRuntime', 'getTitle',
  43. 'getWriter', 'getYear'
  44. );
  45. /*
  46. const TOOL_IMDBWEB_FIELDS_TO = array(
  47. 'getCast' => 'actors', 'getDescription' => 'description', 'getDirector' => 'directors', 'getGenre' => 'genres',
  48. 'getPlot' => 'content', 'getRating' => 'imdbrating', 'getRuntime' => 'runtime', 'getTitle' => 'title',
  49. 'getWriter' => 'writers', 'getYear' => 'year'
  50. );
  51. */
  52. const TOOL_IMDBWEB_BROWSER_AGENT = BROWSER_AGENT;
  53. const TOOL_IMDBWEB_BROWSER_ACCEPT = BROWSER_ACCEPT;
  54. const TOOL_IMDBWEB_BROWSER_ACCEPT_LANG = BROWSER_ACCEPT_LANG;