瀏覽代碼

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

Loading…
取消
儲存