Fix colored output, and added vim swapfiles to gitignore
This commit is contained in:
@@ -6,10 +6,10 @@ with open("linklist-videos.yaml", "r") as yamlfile:
|
||||
config = yaml.safe_load(yamlfile)
|
||||
|
||||
for entry in config:
|
||||
print(f"\033[92mGrabbing '{entry['url']}':")
|
||||
print(f"\033[92mGrabbing '{entry['url']}':\033[0m")
|
||||
|
||||
folderName = entry["folder-name"] if "folder-name" in entry else "%(uploader)s"
|
||||
|
||||
folderName = entry["folder-name"] if "folder-name" in entry else "%(uploader)s"
|
||||
|
||||
os.system(f"""
|
||||
yt-dlp
|
||||
-c
|
||||
@@ -22,7 +22,6 @@ with open("linklist-videos.yaml", "r") as yamlfile:
|
||||
'{entry['url']}'
|
||||
""".replace('\n', " ")
|
||||
)
|
||||
|
||||
|
||||
except yaml.YAMLError as exc:
|
||||
print("You fucked up the yaml format.")
|
||||
|
||||
Reference in New Issue
Block a user