removing cookie approach again for proxy

This commit is contained in:
jenz 2025-10-15 01:26:10 +02:00
parent a14a543aee
commit 2bd67261d1
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
--proxy

View File

@ -5,6 +5,8 @@ Description=Restarting torch on ze every 30 minutes
Type=simple Type=simple
User=gameservers User=gameservers
WorkingDirectory=/home/gameservers/css_ze/torchlight3 WorkingDirectory=/home/gameservers/css_ze/torchlight3
Environment="http_proxy="
Environment="https_proxy="
ExecStart=/home/gameservers/css_ze/torchlight3/_start.sh ExecStart=/home/gameservers/css_ze/torchlight3/_start.sh
Restart=always Restart=always
RuntimeMaxSec=1800 RuntimeMaxSec=1800

View File

@ -114,7 +114,7 @@ class URLFilter(BaseCommand):
if TimeStr: if TimeStr:
Time = Utils.ParseTime(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) stdout = asyncio.subprocess.PIPE)
Out, _ = await Proc.communicate() Out, _ = await Proc.communicate()
@ -704,7 +704,7 @@ class YouTubeSearch(BaseCommand):
message[1] = message[1][:Temp.value] message[1] = message[1][:Temp.value]
search_term = message[1].split("pitch=")[0].split("tempo=")[0].split('backward=')[0].split('backwards=')[0] 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) stdout = asyncio.subprocess.PIPE)
Out, _ = await Proc.communicate() Out, _ = await Proc.communicate()