Skip to content

Commit

Permalink
Tidy up setting constants
Browse files Browse the repository at this point in the history
- No content change, only re-ordering to match general settings layout
  • Loading branch information
MoojMidge committed Mar 19, 2024
1 parent 90b8e65 commit f5bf31b
Showing 1 changed file with 45 additions and 37 deletions.
82 changes: 45 additions & 37 deletions resources/lib/youtube_plugin/kodion/constants/const_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,61 @@
from __future__ import absolute_import, division, unicode_literals


THUMB_SIZE = 'kodion.thumbnail.size' # (int)
SHOW_FANART = 'kodion.fanart.show' # (bool)
SAFE_SEARCH = 'kodion.safe.search' # (int)
ITEMS_PER_PAGE = 'kodion.content.max_per_page' # (int)
SEARCH_SIZE = 'kodion.search.size' # (int)
CACHE_SIZE = 'kodion.cache.size' # (int)
SETUP_WIZARD = 'kodion.setup_wizard' # (bool)
SETUP_WIZARD_RUNS = 'kodion.setup_wizard.forced_runs' # (int)

MPD_VIDEOS = 'kodion.mpd.videos' # (bool)
MPD_STREAM_SELECT = 'kodion.mpd.stream.select' # (int)
MPD_QUALITY_SELECTION = 'kodion.mpd.quality.selection' # (int)
MPD_STREAM_FEATURES = 'kodion.mpd.stream.features' # (list[string])
VIDEO_QUALITY_ASK = 'kodion.video.quality.ask' # (bool)
VIDEO_QUALITY = 'kodion.video.quality' # (int)
AUDIO_ONLY = 'kodion.audio_only' # (bool)
AGE_GATE = 'kodion.age.gate' # (bool)

SUBTITLE_SELECTION = 'kodion.subtitle.languages.num' # (int)
SUBTITLE_DOWNLOAD = 'kodion.subtitle.download' # (bool)
SETUP_WIZARD = 'kodion.setup_wizard' # (bool)
SETUP_WIZARD_RUNS = 'kodion.setup_wizard.forced_runs' # (int)
LABEL_COLOR = 'youtube.view.label.color' # (string)
LANGUAGE = 'youtube.language' # (str)
REGION = 'youtube.region' # (str)
LOCATION = 'youtube.location' # (str)
LOCATION_RADIUS = 'youtube.location.radius' # (int)
PLAY_COUNT_MIN_PERCENT = 'kodion.play_count.percent' # (int)
USE_LOCAL_HISTORY = 'kodion.history.local' # (bool)
USE_REMOTE_HISTORY = 'kodion.history.remote' # (bool)

ITEMS_PER_PAGE = 'kodion.content.max_per_page' # (int)
HIDE_SHORT_VIDEOS = 'youtube.hide_shorts' # (bool)
DETAILED_DESCRIPTION = 'youtube.view.description.details' # (bool)
DETAILED_LABELS = 'youtube.view.label.details' # (bool)

SUPPORT_ALTERNATIVE_PLAYER = 'kodion.support.alternative_player' # (bool)
ALTERNATIVE_PLAYER_WEB_URLS = 'kodion.alternative_player.web.urls' # (bool)
SAFE_SEARCH = 'kodion.safe.search' # (int)
AGE_GATE = 'kodion.age.gate' # (bool)

API_CONFIG_PAGE = 'youtube.api.config.page' # (bool)
API_KEY = 'youtube.api.key' # (string)
API_ID = 'youtube.api.id' # (string)
API_SECRET = 'youtube.api.secret' # (string)
ALLOW_DEV_KEYS = 'youtube.allow.dev.keys' # (bool)

VIDEO_QUALITY = 'kodion.video.quality' # (int)
VIDEO_QUALITY_ASK = 'kodion.video.quality.ask' # (bool)
WATCH_LATER_PLAYLIST = 'youtube.folder.watch_later.playlist' # (str)
HISTORY_PLAYLIST = 'youtube.folder.history.playlist' # (str)

CLIENT_SELECTION = 'youtube.client.selection' # (int)
SUPPORT_ALTERNATIVE_PLAYER = 'kodion.support.alternative_player' # (bool)
ALTERNATIVE_PLAYER_WEB_URLS = 'kodion.alternative_player.web.urls' # (bool)

USE_ISA = 'kodion.video.quality.isa' # (bool)
LIVE_STREAMS = 'kodion.live_stream.selection' # (int)
MPD_VIDEOS = 'kodion.mpd.videos' # (bool)
MPD_QUALITY_SELECTION = 'kodion.mpd.quality.selection' # (int)
MPD_STREAM_FEATURES = 'kodion.mpd.stream.features' # (list[string])
MPD_STREAM_SELECT = 'kodion.mpd.stream.select' # (int)

USE_LOCAL_HISTORY = 'kodion.history.local' # (bool)
USE_REMOTE_HISTORY = 'kodion.history.remote' # (bool)

SEARCH_SIZE = 'kodion.search.size' # (int)
CACHE_SIZE = 'kodion.cache.size' # (int)

DETAILED_DESCRIPTION = 'youtube.view.description.details' # (bool)
DETAILED_LABELS = 'youtube.view.label.details' # (bool)
LABEL_COLOR = 'youtube.view.label.color' # (string)

THUMB_SIZE = 'kodion.thumbnail.size' # (int)
SHOW_FANART = 'kodion.fanart.show' # (bool)

LANGUAGE = 'youtube.language' # (str)
REGION = 'youtube.region' # (str)
LOCATION = 'youtube.location' # (str)
LOCATION_RADIUS = 'youtube.location.radius' # (int)

PLAY_COUNT_MIN_PERCENT = 'kodion.play_count.percent' # (int)

VERIFY_SSL = 'requests.ssl.verify' # (bool)
CONNECT_TIMEOUT = 'requests.timeout.connect' # (int)
Expand All @@ -56,13 +74,3 @@
HTTPD_PORT = 'kodion.http.port' # (number)
HTTPD_LISTEN = 'kodion.http.listen' # (string)
HTTPD_WHITELIST = 'kodion.http.ip.whitelist' # (string)

API_CONFIG_PAGE = 'youtube.api.config.page' # (bool)
API_KEY = 'youtube.api.key' # (string)
API_ID = 'youtube.api.id' # (string)
API_SECRET = 'youtube.api.secret' # (string)

CLIENT_SELECTION = 'youtube.client.selection' # (int)

WATCH_LATER_PLAYLIST = 'youtube.folder.watch_later.playlist' # (str)
HISTORY_PLAYLIST = 'youtube.folder.history.playlist' # (str)

0 comments on commit f5bf31b

Please sign in to comment.