jellyfin-mpv-shim: replace disable-update-check.patch with substituteInPlace
This commit is contained in:
parent
474043fc5b
commit
4392bac997
|
@ -13,7 +13,6 @@ buildPythonApplication rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./disable-desktop-client.patch
|
./disable-desktop-client.patch
|
||||||
./disable-update-check.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# override $HOME directory:
|
# override $HOME directory:
|
||||||
|
@ -27,6 +26,12 @@ buildPythonApplication rec {
|
||||||
rm jellyfin_mpv_shim/win_utils.py
|
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 = [
|
propagatedBuildInputs = [
|
||||||
jellyfin-apiclient-python
|
jellyfin-apiclient-python
|
||||||
mpv
|
mpv
|
||||||
|
|
|
@ -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,
|
|
||||||
}
|
|
Loading…
Reference in New Issue