]> gitweb.pimeys.fr Git - today.git/blobdiff - today_server.py
Un titre de vidéo qui fait foirer le parseur.
[today.git] / today_server.py
index 7e31652e9d049afb771de33c3857478d499db901..abff785e5a957ba29c5677d0d77cdaae9a94ced8 100755 (executable)
@@ -102,7 +102,7 @@ def last_noob_warpzone():
     for serie in [noobs, warpzones]:
         # Les titres sont dans l'ordre antichronologique, on s'arrête donc au premier qu'on comprend
         for titre in serie:
-            if "noob le film" in titre or "making of" in titre:
+            if "noob le film" in titre or "making of" in titre or "noob versus rct" == titre:
                 continue
             try:
                 if DEBUG:
@@ -209,8 +209,11 @@ if __name__ == "__main__":
         DEBUG = True
     if sys.argv[1] == "check":
         news = fetch_all()
-        olds = get_file()
-        olds.update(news)
+        if "--init" in sys.argv:
+            olds = news
+        else:
+            olds = get_file()
+            olds.update(news)
         update_file(olds)
     elif sys.argv[1] == "whatsup":
         news = get_file()