config.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_UPDATE_TIMEOUT', 86400 * 7);
  11. ### Config
  12. define('TV_PATH', '/mnt/media/TV');
  13. $MAX_AGE = 86400 * 90; # Consider a series "old" if it has not been updated for this many seconds
  14. $CACHE_AGE = 300;
  15. $CACHE_FILE = '/var/tmp/php/tv_web.cache';
  16. ### TVDB
  17. $ENABLE_TVDB = true; # Master enable/disable flag
  18. $TVDB_DELAY = 20; # Minimum delay between TVDB downloads
  19. $TVDB_DELAY_COUNT = 3; # Number of TVDB requests allowed without throttling
  20. $TVDB_TIMEOUT = 15; # Maximum load time for TVDB pages
  21. $TVDB_LANG_ID = 7; # Default language ID for TVDB URLs
  22. $TVDB_URL = 'http://thetvdb.com/?tab=series';
  23. ### App Config
  24. $EXISTS_FILES = array('scan_now', 'no_quality_checks', 'more_number_formats', 'skip');
  25. $CONTENT_FILES = array('must_match', 'search_name', 'excludes', 'search_by_date', 'source_excludes');
  26. ### Login Config
  27. $LOGIN_PAGE = 'login';
  28. $MAIN_PAGE = '/tv/';
  29. ### PAM Config
  30. $PAM_SERVICE = 'tv_web';
  31. ### MyPlex Config
  32. $PLEX_PRODUCT = 'UberZach TV';
  33. $PLEX_VERSION = '0.1';
  34. $PLEX_ID = 'UberZach-TV-v' . $PLEX_VERSION;
  35. $PLEX_AUTH_URL = 'https://my.plexapp.com/users/sign_in.xml';
  36. $PLEX_SERVERS_URL = 'https://my.plexapp.com/pms/servers?auth_token=';
  37. # Import the secret (i.e. non-repo) config
  38. require_once('secrets.php');
  39. ?>