mirror of
https://github.com/jellyfin/jellyfin-mpv-shim.git
synced 2025-02-23 16:11:46 +00:00
Allow disabling transcode warning.
This commit is contained in:
parent
30714a9b49
commit
d83dc722dd
@ -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
|
||||
|
||||
|
@ -100,6 +100,7 @@ class Settings(object):
|
||||
"menu_mouse": True,
|
||||
"media_keys": True,
|
||||
"connect_retry_mins": 0,
|
||||
"transcode_warning": True,
|
||||
}
|
||||
|
||||
def __getattr__(self, name):
|
||||
|
@ -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."),
|
||||
|
Loading…
x
Reference in New Issue
Block a user