Skip to content
Snippets Groups Projects
Commit 5a92a8cf authored by Hector's avatar Hector
Browse files

correction des tabs 2

parent 9cfefe1d
No related branches found
No related tags found
No related merge requests found
......@@ -75,9 +75,9 @@ while True :
os.system('sudo echo "\n la dernière actualisation date de : " >> history.txt')
os.system('date >> history.txt')
t = tt
with open("playlists.json",'r') as f :
with open("playlists.json",'r') as ff :
data = load(f)
data = load(ff)
for playlist in data :
if playlist not in os.listdir("musics"):
......@@ -98,6 +98,7 @@ while True :
#A supprimer lorsque tout le code aura �t� fait proprement
if "seen_names.json" not in os.listdir("musics/"+playlist):
print("seen_names.json n\'est pas dans le r�pertoire de la playlist")
with open("musics/"+playlist+"/seen_names.json",'w') as f :
f.write("[]")
......@@ -132,7 +133,7 @@ while True :
i += 1
os.chdir("../")
with open('seen.json','w') as f2 :
with open('seen.json','w') as f :
f2.write(dumps(seen_videos))
with open('seen_names.json','w') as f :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment