diff --git a/README.md b/README.md index bd59b6a..b2e5b4c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/jellyfin_mpv_shim/conf.py b/jellyfin_mpv_shim/conf.py index b8ef7df..653c112 100644 --- a/jellyfin_mpv_shim/conf.py +++ b/jellyfin_mpv_shim/conf.py @@ -100,6 +100,7 @@ class Settings(object): "menu_mouse": True, "media_keys": True, "connect_retry_mins": 0, + "transcode_warning": True, } def __getattr__(self, name): diff --git a/jellyfin_mpv_shim/player.py b/jellyfin_mpv_shim/player.py index 3408231..9020b2d 100644 --- a/jellyfin_mpv_shim/player.py +++ b/jellyfin_mpv_shim/player.py @@ -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."),