소스 검색

Mise à jour de 'notification.py'

master
TheBidouilleur 8 달 전
부모
커밋
920b5fecf4
1개의 변경된 파일16개의 추가작업 그리고 10개의 파일을 삭제
  1. +16
    -10
      notification.py

+ 16
- 10
notification.py 파일 보기

@@ -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()

불러오는 중...
취소
저장