X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;ds=sidebyside;f=today.py;h=c3f36295ec53afe20d457a5a9987e2e54f96ccc7;hb=351bfd36ac35e89494d696987486e093425371f0;hp=ee21fbb814eb485d050ab8aec785d3a69b2c712e;hpb=e351dbb1a65bc7277da83a836e7e974aac2d8cb7;p=today.git diff --git a/today.py b/today.py index ee21fbb..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, @@ -442,8 +447,6 @@ if __name__ == "__main__": if "--no-color" in sys.argv: config.nocolor() sys.argv.remove("--no-color") - # pimeys is down - sys.argv.append("--no-remote") if "--no-remote" in sys.argv: config.do_remote = False sys.argv.remove("--no-remote") @@ -452,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")