mirror of
https://gitgud.io/Melon__Bread/auto-ttv-grabber.git
synced 2024-11-24 16:28:30 -05:00
F is for f-strings
This commit is contained in:
parent
f987443654
commit
3ed0035dd7
11
main.py
11
main.py
@ -6,11 +6,21 @@ import sys
|
|||||||
import time
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import configparser
|
import configparser
|
||||||
|
from pathlib import Path
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
channel_list = []
|
channel_list = []
|
||||||
downloading = {}
|
downloading = {}
|
||||||
|
|
||||||
|
# Config Settings
|
||||||
|
streamlink_location = "streamlink"
|
||||||
|
download_location = str(f"{Path.home()}/Downloads/Streams/")
|
||||||
|
skip_ads = False
|
||||||
|
|
||||||
|
|
||||||
|
def load_config():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def write_log(channel):
|
def write_log(channel):
|
||||||
"""Writes the latest stdout of a process to log.txt"""
|
"""Writes the latest stdout of a process to log.txt"""
|
||||||
@ -97,6 +107,7 @@ def main():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
""" This is executed when run from the command line """
|
""" This is executed when run from the command line """
|
||||||
try:
|
try:
|
||||||
|
load_config()
|
||||||
check_system()
|
check_system()
|
||||||
main()
|
main()
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user