config.php 1.3 KB

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