Allow disabling transcode warning.

This commit is contained in:
Ian Walton 2020-08-17 19:21:34 -04:00
parent 30714a9b49
commit d83dc722dd
3 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,7 @@ You can adjust the basic transcoder settings via the menu.
- `direct_paths` - Play media files directly from the SMB or NFS source. Default: `false`
- `remote_direct_paths` - Apply this even when the server is detected as remote. Default: `false`
- `transcode_to_h265` - Allow the server to transcode media *to* `hevc`. Default: `false`
- `transcode_warning` - Display a warning the first time media transcodes in a session. Default: `true`
### Features

View File

@ -100,6 +100,7 @@ class Settings(object):
"menu_mouse": True,
"media_keys": True,
"connect_retry_mins": 0,
"transcode_warning": True,
}
def __getattr__(self, name):

View File

@ -413,7 +413,8 @@ class PlayerManager(object):
self.update_check.check()
if not self._video.parent.is_local and self._video.is_transcode and not self.warned_about_transcode:
if (not self._video.parent.is_local and self._video.is_transcode
and not self.warned_about_transcode and settings.transcode_warning):
self.warned_about_transcode = True
self._player.show_text(
_("Your remote video is transcoding!\nPress c to adjust bandwidth settings if this is not needed."),