mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
104 lines
No EOL
3.6 KiB
Python
104 lines
No EOL
3.6 KiB
Python
# This file is part of PlexPy.
|
|
#
|
|
# PlexPy is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# PlexPy is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with PlexPy. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
'''
|
|
Created on Aug 1, 2011
|
|
|
|
@author: Michael
|
|
'''
|
|
import platform
|
|
|
|
import version
|
|
|
|
# Identify Our Application
|
|
USER_AGENT = 'PlexPy/-' + version.PLEXPY_BRANCH + ' v' + version.PLEXPY_RELEASE_VERSION + ' (' + platform.system() + \
|
|
' ' + platform.release() + ')'
|
|
|
|
PLATFORM = platform.system()
|
|
PLATFORM_VERSION = platform.release()
|
|
BRANCH = version.PLEXPY_BRANCH
|
|
VERSION_NUMBER = version.PLEXPY_RELEASE_VERSION
|
|
|
|
DEFAULT_USER_THUMB = "interfaces/default/images/gravatar-default-80x80.png"
|
|
DEFAULT_POSTER_THUMB = "interfaces/default/images/poster.png"
|
|
DEFAULT_COVER_THUMB = "interfaces/default/images/cover.png"
|
|
DEFAULT_ART = "interfaces/default/images/art.png"
|
|
|
|
PLATFORM_NAME_OVERRIDES = {'Konvergo': 'Plex Media Player',
|
|
'Mystery 3': 'Playstation 3',
|
|
'Mystery 4': 'Playstation 4',
|
|
'Mystery 5': 'Xbox 360'
|
|
}
|
|
|
|
PMS_PLATFORM_NAME_OVERRIDES = {'MacOSX': 'Mac'
|
|
}
|
|
|
|
MEDIA_FLAGS_AUDIO = {'ac.?3': 'dolby_digital',
|
|
'truehd': 'dolby_truehd',
|
|
'(dca|dta)': 'dts',
|
|
'dts(hd_|-hd|-)?ma': 'dca-ma',
|
|
'vorbis': 'ogg'
|
|
}
|
|
MEDIA_FLAGS_VIDEO = {'avc1': 'h264',
|
|
'wmv(1|2)': 'wmv',
|
|
'wmv3': 'wmvhd'
|
|
}
|
|
|
|
AUDIO_CODEC_OVERRIDES = {'truehd': 'TrueHD'}
|
|
|
|
VIDEO_RESOLUTION_OVERRIDES = {'sd': 'SD',
|
|
'480': '480p',
|
|
'576': '576p',
|
|
'720': '720p',
|
|
'1080': '1080p',
|
|
'4k': '4k'
|
|
}
|
|
|
|
AUDIO_CHANNELS = {'1': 'Mono',
|
|
'2': 'Stereo',
|
|
'3': '2.1',
|
|
'4': '3.1',
|
|
'6': '5.1',
|
|
'7': '6.1',
|
|
'8': '7.1'
|
|
}
|
|
|
|
QUALITY_PROFILES = {20000: '20 Mbps 1080p',
|
|
12000: '12 Mbps 1080p',
|
|
10000: '10 Mbps 1080p',
|
|
8000: '8 Mbps 1080p',
|
|
4000: '4 Mbps 720p',
|
|
3000: '3 Mbps 720p',
|
|
2000: '2 Mbps 720p',
|
|
1500: '1.5 Mbps 480p',
|
|
720: '720 kbps',
|
|
320: '320 kbps',
|
|
208: '208 kbps',
|
|
96: '96 kbps',
|
|
64: '64 kbps'
|
|
}
|
|
|
|
SCHEDULER_LIST = ['Check GitHub for updates',
|
|
'Check for active sessions',
|
|
'Check for recently added items',
|
|
'Check for Plex updates',
|
|
'Check for Plex remote access',
|
|
'Refresh users list',
|
|
'Refresh libraries list',
|
|
'Refresh Plex server URLs',
|
|
'Refresh Plex server name',
|
|
'Backup PlexPy database',
|
|
'Backup PlexPy config'
|
|
] |