jellyfin-mpv-shim: replace disable-update-check.patch with substituteInPlace

This commit is contained in:
Johannes Schleifenbaum 2021-03-10 12:41:09 +01:00
parent 474043fc5b
commit 4392bac997
No known key found for this signature in database
GPG Key ID: 059093B1A278BCD0
2 changed files with 6 additions and 16 deletions

View File

@ -13,7 +13,6 @@ buildPythonApplication rec {
patches = [
./disable-desktop-client.patch
./disable-update-check.patch
];
# override $HOME directory:
@ -27,6 +26,12 @@ buildPythonApplication rec {
rm jellyfin_mpv_shim/win_utils.py
'';
postPatch = ''
substituteInPlace jellyfin_mpv_shim/conf.py \
--replace "check_updates: bool = True" "check_updates: bool = False" \
--replace "notify_updates: bool = True" "notify_updates: bool = False"
'';
propagatedBuildInputs = [
jellyfin-apiclient-python
mpv

View File

@ -1,15 +0,0 @@
diff --git a/jellyfin_mpv_shim/conf.py b/jellyfin_mpv_shim/conf.py
index 0ab9326..ccedc17 100644
--- a/jellyfin_mpv_shim/conf.py
+++ b/jellyfin_mpv_shim/conf.py
@@ -88,8 +88,8 @@ class Settings(object):
"sync_revert_seek": True,
"sync_osd_message": True,
"screenshot_menu": True,
- "check_updates": True,
- "notify_updates": True,
+ "check_updates": False,
+ "notify_updates": False,
"lang": None,
"desktop_scale": 1.0,
}