constants.py 564 B

12345678910111213141516
  1. from showroom.settings import settings
  2. from showroom.index import ShowroomIndex
  3. # these might only be needed in check.py
  4. ENGLISH_INDEX = ShowroomIndex(settings.directory.index, language='eng')
  5. JAPANESE_INDEX = ShowroomIndex(settings.directory.index, language='jpn')
  6. # GOOD_HEIGHTS = (180, 198, 270, 360, 396, 720, 1080)
  7. # heights known to signify bad streams, still won't fail a stream unless it fails other tests
  8. BAD_HEIGHTS = (540,)
  9. STREAM_FOUND = True
  10. STREAM_NOT_FOUND = False
  11. # TODO: allow the user to set this
  12. MAX_GAP = 300.0
  13. ffmpeg = settings.ffmpeg.path