mirror of
https://gitgud.io/Melon__Bread/auto-ttv-grabber.git
synced 2024-11-25 00:38:35 -05:00
Hell transfer2
This commit is contained in:
parent
fe61cdf07e
commit
bd874d7245
39
main.py
39
main.py
@ -57,27 +57,26 @@ def download_stream(channel):
|
|||||||
if skip_ads:
|
if skip_ads:
|
||||||
addtional_parms = "--twitch-proxy-playlist=https://lb-eu.cdn-perfprod.com,https://lb-eu2.cdn-perfprod.com,https://lb-na.cdn-perfprod.com,https://lb-as.cdn-perfprod.com,https://as.luminous.dev --twitch-disable-ads"
|
addtional_parms = "--twitch-proxy-playlist=https://lb-eu.cdn-perfprod.com,https://lb-eu2.cdn-perfprod.com,https://lb-na.cdn-perfprod.com,https://lb-as.cdn-perfprod.com,https://as.luminous.dev --twitch-disable-ads"
|
||||||
file_name = f"{channel}_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.ts"
|
file_name = f"{channel}_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.ts"
|
||||||
# cmd = [
|
cmd = [
|
||||||
# f"{streamlink_location} --loglevel none --retry-max 10 {addtional_parms} -o {download_location}/{channel}/{file_name} twitch.tv/{channel} best",
|
f"{streamlink_location} --loglevel none --retry-max 10 {addtional_parms} -o {download_location}/{channel}/{file_name} twitch.tv/{channel} best",
|
||||||
# ]
|
]
|
||||||
# with open("test.text", "w") as file:
|
with open("test.text", "w") as file:
|
||||||
# print(cmd)
|
print(cmd)
|
||||||
# print(" ".join(cmd))
|
print(" ".join(cmd))
|
||||||
# file.write(" ".join(cmd))
|
file.write(" ".join(cmd))
|
||||||
# subprocess.run(cmd, shell=True)
|
subprocess.run(cmd, shell=True)
|
||||||
|
|
||||||
downloading[channel] = subprocess.Popen(
|
# downloading[channel] = subprocess.Popen(
|
||||||
[
|
# [
|
||||||
f"{streamlink_location}",
|
# f"{streamlink_location}",
|
||||||
"--loglevel none",
|
# "--loglevel none",
|
||||||
"--retry-max 10",
|
# "--retry-max 10",
|
||||||
f"{addtional_parms}",
|
# f"{addtional_parms}",
|
||||||
f"-o {download_location}/{channel}/{file_name}",
|
# f"-o {download_location}/{channel}/{file_name}",
|
||||||
f"twitch.tv/{channel}",
|
# f"twitch.tv/{channel}",
|
||||||
"best",
|
# "best",
|
||||||
],
|
# ]
|
||||||
shell=True,
|
# )
|
||||||
)
|
|
||||||
|
|
||||||
# write_log(channel)
|
# write_log(channel)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user