1
Fork 0
mirror of https://github.com/Steffo99/bbbdl.git synced 2024-11-22 07:44:18 +00:00

🧹 Wrap everything in a __name__ == "__main__"

This commit is contained in:
Steffo 2020-10-11 15:39:07 +02:00
parent 9fad3e894d
commit 0d0843545d

View file

@ -10,9 +10,6 @@ videoSuffix = "/deskshare/deskshare.webm"
audioSuffix = "/video/webcams.mp4"
# slides = "https://davy04.edunova.it/presentation/17d59e4eb742c498e605406fd441c1a2d7eb4bf0-1601024050226/shapes.svg"
os.makedirs("VideoLezioni", exist_ok=True)
os.chdir("VideoLezioni")
# Dictionary containing the id of the saved lessons
meetingsID = {
'021020': '17d59e4eb742c498e605406fd441c1a2d7eb4bf0-1601628738707',
@ -22,7 +19,11 @@ meetingsID = {
'091020': '17d59e4eb742c498e605406fd441c1a2d7eb4bf0-1602232967548',
}
for (date, meetId) in meetingsID.items():
if __name__ == "__main__":
os.makedirs("VideoLezioni", exist_ok=True)
os.chdir("VideoLezioni")
for (date, meetId) in meetingsID.items():
if os.path.exists(f"Gestione{date}joinedWithSlide.mp4"):
print("Il video e' gia' stato scaricato")
continue