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