X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=today.py;h=c3f36295ec53afe20d457a5a9987e2e54f96ccc7;hb=351bfd36ac35e89494d696987486e093425371f0;hp=e430fd881a3030ab8768ced77b3ca24f4ae4366d;hpb=55c6c4b47884cda71e5560d25950add8b65f7382;p=today.git diff --git a/today.py b/today.py index e430fd8..c3f3629 100755 --- a/today.py +++ b/today.py @@ -270,6 +270,9 @@ def update_cyprien(newid): def update_grenier(newid): update_last_seen({"grenier" : int(newid)}) +def update_jl8(newid): + update_last_seen({"dc" : int(newid)}) + THINGS = { "dtc" : u"Quotes DTC", @@ -282,6 +285,7 @@ THINGS = { "norman" : u"Vidéos de Norman", "cyprien" : u"Vidéos de Cyprien", "grenier" : u"Épisodes du joueur du grenier", + "dc" : u"Épisodes de la BD youngDC", "birthdays" : u"Anniversaires à souhaiter", "saints" : u"Fêtes à souhaiter", @@ -419,6 +423,7 @@ OTHER_ACTIONS = { "norman" : update_norman, "cyprien" : update_cyprien, "grenier" : update_grenier, + "dc" : update_jl8, "dtc" : get_dtc, "ping" : ping, @@ -450,7 +455,7 @@ if __name__ == "__main__": output = ACTIONS[None]() else: commande = sys.argv[1] - args = sys.argv[2:] + args = [s.decode("utf-8") for s in sys.argv[2:]] output = ACTIONS[commande](*args) if output: print output.encode("utf-8")