removing cookie approach again for proxy
This commit is contained in:
parent
a14a543aee
commit
2bd67261d1
1
torchlight_changes_unloze/config/yt-dlp/config
Normal file
1
torchlight_changes_unloze/config/yt-dlp/config
Normal file
@ -0,0 +1 @@
|
||||
--proxy
|
||||
@ -5,6 +5,8 @@ Description=Restarting torch on ze every 30 minutes
|
||||
Type=simple
|
||||
User=gameservers
|
||||
WorkingDirectory=/home/gameservers/css_ze/torchlight3
|
||||
Environment="http_proxy="
|
||||
Environment="https_proxy="
|
||||
ExecStart=/home/gameservers/css_ze/torchlight3/_start.sh
|
||||
Restart=always
|
||||
RuntimeMaxSec=1800
|
||||
|
||||
@ -114,7 +114,7 @@ class URLFilter(BaseCommand):
|
||||
if TimeStr:
|
||||
Time = Utils.ParseTime(TimeStr)
|
||||
|
||||
Proc = await asyncio.create_subprocess_exec("yt-dlp", "--cookies-from-browser", "chrome", "--dump-json", "-g", url,
|
||||
Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "-g", url,
|
||||
stdout = asyncio.subprocess.PIPE)
|
||||
Out, _ = await Proc.communicate()
|
||||
|
||||
@ -704,7 +704,7 @@ class YouTubeSearch(BaseCommand):
|
||||
message[1] = message[1][:Temp.value]
|
||||
|
||||
search_term = message[1].split("pitch=")[0].split("tempo=")[0].split('backward=')[0].split('backwards=')[0]
|
||||
Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "--cookies-from-browser", "chrome", "-xg", "ytsearch:" + search_term,
|
||||
Proc = await asyncio.create_subprocess_exec("yt-dlp", "--dump-json", "-xg", "ytsearch:" + search_term,
|
||||
stdout = asyncio.subprocess.PIPE)
|
||||
Out, _ = await Proc.communicate()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user