File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- pip install --no-cache-dir -t $YDL_PYTHONPATH --upgrade $YOUTUBE_DL
4
- PYTHONPATH=" ${PYTHONPATH} :${YDL_PYTHONPATH} " python -u ./youtube-dl-server.py
3
+ PYTHONPATH=" ${PYTHONPATH} :${YDL_PYTHONPATH} " python -u ./youtube-dl-server.py
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ def worker(self):
105
105
self .queue .task_done ()
106
106
107
107
def update (self ):
108
+ if self .app_config ["ydl_server" ].get ("no_updates" , False ):
109
+ return 0 , ""
108
110
print (f"Updating: Current { self .ydl_module_name } version: { self .ydl_version } " )
109
111
if os .environ .get ("YDL_PYTHONPATH" ):
110
112
command = [
@@ -226,4 +228,4 @@ def resume_pending(self):
226
228
227
229
def join (self ):
228
230
if self .thread is not None :
229
- return self .thread .join ()
231
+ return self .thread .join ()
You can’t perform that action at this time.
0 commit comments