Pārlūkot izejas kodu

Mise à jour de 'notification.py'

master
TheBidouilleur pirms 8 mēnešiem
vecāks
revīzija
920b5fecf4
1 mainītis faili ar 16 papildinājumiem un 10 dzēšanām
  1. +16
    -10
      notification.py

+ 16
- 10
notification.py Parādīt failu

@@ -13,7 +13,7 @@ from config import series
import os.path
from os import path
import datetime
import time


def main():
@@ -28,16 +28,19 @@ def main():
print("Pour arreter le script : CTRL+Z")
now = datetime.datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))
if type(series) == str :
check_latest(series)
while 1 :
now = datetime.datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))
if type(series) == str :
check_latest(series)
else:
for i in range(len(series)):
thetvdb_id = series[i]
check_latest(thetvdb_id)
else:
for i in range(len(series)):
thetvdb_id = series[i]
check_latest(thetvdb_id)
time.sleep(1800)
@@ -47,4 +50,7 @@ def main():


if __name__ == '__main__':
main()
try :
main()
except :
main()

Notiek ielāde…
Atcelt
Saglabāt