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

🧹 Apply PyCharm's PEP8 autoformatter

This commit is contained in:
Steffo 2020-10-11 15:30:31 +02:00
parent 4880902cc3
commit 970557d720

View file

@ -2,7 +2,6 @@ import os
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
import urllib import urllib
# Base link to the lessons page # Base link to the lessons page
edunovaLink = "https://davy04.edunova.it/presentation/" edunovaLink = "https://davy04.edunova.it/presentation/"
# Relative path to the slides video # Relative path to the slides video
@ -23,10 +22,8 @@ meetingsID = {
'091020': '17d59e4eb742c498e605406fd441c1a2d7eb4bf0-1602232967548', '091020': '17d59e4eb742c498e605406fd441c1a2d7eb4bf0-1602232967548',
} }
for (date, meetId) in meetingsID.items(): for (date, meetId) in meetingsID.items():
if(os.path.exists(f"Gestione{date}joinedWithSlide.mp4")): if os.path.exists(f"Gestione{date}joinedWithSlide.mp4"):
print("Il video e' gia' stato scaricato") print("Il video e' gia' stato scaricato")
continue continue
@ -42,12 +39,12 @@ for (date, meetId) in meetingsID.items():
start = img.get('in') start = img.get('in')
end = img.get('out') end = img.get('out')
imgLink = img.get('xlink:href') imgLink = img.get('xlink:href')
if(not imgLink.endswith("deskshare.png")): if not imgLink.endswith("deskshare.png"):
usefulImg.append([float(start), float(end), imgLink]) usefulImg.append([float(start), float(end), imgLink])
imgSorted = sorted(usefulImg) imgSorted = sorted(usefulImg)
print(imgSorted) print(imgSorted)
if(len(imgSorted)==0): if len(imgSorted) == 0:
os.rename(f"Gestione{date}joined.mp4", f"Gestione{date}joinedWithSlide.mp4") os.rename(f"Gestione{date}joined.mp4", f"Gestione{date}joinedWithSlide.mp4")
continue continue