]> gitweb.pimeys.fr Git - today.git/blobdiff - today_server.py
[server] jl8 : BD héros DC dans leur enfance
[today.git] / today_server.py
index 398b32bde12cf52eba0b1ebe191cef86f3320f3e..7e31652e9d049afb771de33c3857478d499db901 100755 (executable)
@@ -102,6 +102,8 @@ 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:
+                continue
             try:
                 if DEBUG:
                     print titre
@@ -137,6 +139,14 @@ def last_grenier():
     titles = parse_youtube("joueurdugrenier")
     return len(titles)
 
+def last_jl8():
+    rss = urllib.urlopen("http://limbero.org/jl8/rss/")
+    t = rss.read()
+    x = etree.fromstring(t)
+    links = x.xpath("//link")
+    maxnum = links[1].text.split("/")[-1]
+    maxnum = int(maxnum)
+    return maxnum
 
 def get_file():
     """Récupère la liste des derniers ids de chaque truc, stockée dans le fichier."""
@@ -162,6 +172,7 @@ FETCHS = {
           "norman" : last_norman,
           "cyprien" : last_cyprien,
           "grenier" : last_grenier,
+          "dc" : last_jl8,
          }
 
 def fetch_all():