config.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?
  2. # Debug output
  3. define('DEBUG', false);
  4. # Set locale and TZ to make things sane
  5. define('TZ', 'America/Los_Angeles');
  6. date_default_timezone_set(TZ);
  7. setlocale(LC_ALL, 'en_US.UTF8');
  8. # TVDB API
  9. define('TVDB_URL', 'http://thetvdb.com');
  10. define('TVDB_API_KEY', '26877109147D171D');
  11. define('TVDB_DBN', 'pgsql:dbname=tv');
  12. define('TVDB_UPDATE_TIMEOUT', 86400 * 7);
  13. ### Config
  14. define('TV_PATH', '/mnt/media/TV');
  15. $MAX_AGE = 86400 * 90; # Consider a series "old" if it has not been updated for this many seconds
  16. $CACHE_AGE = 300;
  17. $CACHE_FILE = '/var/tmp/php/tv_web.cache';
  18. ### TVDB
  19. $ENABLE_TVDB = true; # Master enable/disable flag
  20. $TVDB_DELAY = 20; # Minimum delay between TVDB downloads
  21. $TVDB_DELAY_COUNT = 3; # Number of TVDB requests allowed without throttling
  22. $TVDB_TIMEOUT = 15; # Maximum load time for TVDB pages
  23. $TVDB_LANG_ID = 7; # Default language ID for TVDB URLs
  24. $TVDB_URL = 'http://thetvdb.com/?tab=series';
  25. ### App Config
  26. $EXISTS_FILES = array('scan_now', 'no_quality_checks', 'more_number_formats', 'skip');
  27. $CONTENT_FILES = array('must_match', 'search_name', 'excludes', 'search_by_date', 'source_excludes');
  28. ### Login Config
  29. $LOGIN_PAGE = 'login';
  30. $MAIN_PAGE = '/tv/';
  31. ### PAM Config
  32. $PAM_SERVICE = 'tv_web';
  33. ### MyPlex Config
  34. $PLEX_PRODUCT = 'UberZach TV';
  35. $PLEX_VERSION = '0.1';
  36. $PLEX_ID = 'UberZach-TV-v' . $PLEX_VERSION;
  37. $PLEX_AUTH_URL = 'https://my.plexapp.com/users/sign_in.xml';
  38. $PLEX_SERVERS_URL = 'https://my.plexapp.com/pms/servers?auth_token=';
  39. # Import the secret (i.e. non-repo) config
  40. require_once('secrets.php');
  41. ?>