Jump to content

xtin

Member
  • Content Count

    41
  • Joined

  • Last visited

  • Days Won

    1
  1. Unfortunately, I don't seem to have the code anymore.
  2. I no longer have a mac and therefore cannot provide any help here. If there's a willing developer to take over, I would be more than grateful. I think the source should be mostly self explanatory - and is mostly documented as well.
  3. I see, that means that something went wrong and no output was generated, hence nothing was cached... unfortunately I don't have a Mac anymore, so I can't really support this. Maybe one of the other active workflow devs could take this over?
  4. After running wlup, you should get a notification, that tells you how many tasks have been cached from the list. (Something like "223 Tasks in 20 Lists") do you get this or what content does the notification show?
  5. You may start here: http://www.alfredforum.com/topic/2632-wunderlist-2-workflow-alpha/
  6. Start here: http://www.alfredforum.com/topic/2632-wunderlist-2-workflow-alpha/
  7. Here's a quick workflow for wunderlist 2, it uses its undocumented api To use it you need to edit the file wunderfred.py in the workflow, there is a line that you need to edit your login credentials to: w = Wunderlist("email","password") #<<< Add login credentials here! It has 3 commands. wlup - updates the cached list (takes a while) wlt - lists the tasks filtered by whatever you type after the keyword. If you select a task and hit enter, it will be marked completed. wla - adds a new task to the list you select by searching. whatever is after the : will be written to the task WARNING: I do not have the time and will therefore not support this workflow, I just put it out there, for someone to pick it up and hone it into a more polished workflow. It works fine for me and has all that's necessary, but there are several things that could be improved. (e.g. login credentials, convenient way to set importance and other things required.). Also it might break at any time if wunderlist changes their api, as it is not documented, there is also no guarantee for it to stay that way. If you feel on improving on it, let me know, I will gladly link this thread to your version. Download: http://d.pr/f/J7v0 Credits: Based on the reverse engineering and code done by bsmt: http://bsmt.me/blog/2013/03/02/reverse-engineering-the-wunderlist-api/
  8. Thanks for digging into this and sorry for my sluggish reply. Interesting problem... if you delete the avatars folder in the extension directory and try again, does the same number of images show up again? It might be that something went wrong during extraction. The most general tip is to wrap with contextlib.closing(sqlite3.connect(path).cursor()) as db: for av in db.execute("SELECT skypename,avatar_image FROM Contacts WHERE type=1 AND is_permanent=1 UNION"\ " SELECT skypename,avatar_image from Accounts"): if av[1] is not None: with open("avatars/"+av[0]+".jpeg","wr") as f: f.write(str(av[1])[1:]) #For some reason, the first byte is 0, then the jpg starts. bg = Image.open("avatars/"+av[0]+".jpeg").resize((96,96),Image.ANTIALIAS) bg.save("avatars/"+av[0]+".jpeg") for v in vers: bg = Image.open("avatars/"+av[0]+".jpeg") #bg.thumbnail((96,96),Image.ANTIALIAS) fg = Image.open("images/status_"+v+".png") bg.paste(fg, (0, 0), fg) bg.save("avatars/"+av[0]+"_"+v+".jpeg") with try, except: with contextlib.closing(sqlite3.connect(path).cursor()) as db: for av in db.execute("SELECT skypename,avatar_image FROM Contacts WHERE type=1 AND is_permanent=1 UNION"\ " SELECT skypename,avatar_image from Accounts"): try: if av[1] is not None: with open("avatars/"+av[0]+".jpeg","wr") as f: f.write(str(av[1])[1:]) #For some reason, the first byte is 0, then the jpg starts. bg = Image.open("avatars/"+av[0]+".jpeg").resize((96,96),Image.ANTIALIAS) bg.save("avatars/"+av[0]+".jpeg") for v in vers: bg = Image.open("avatars/"+av[0]+".jpeg") #bg.thumbnail((96,96),Image.ANTIALIAS) fg = Image.open("images/status_"+v+".png") bg.paste(fg, (0, 0), fg) bg.save("avatars/"+av[0]+"_"+v+".jpeg") except IOError: pass
  9. That's great thank you, exactly what i needed! I will publish a version today that will remedy that problem What you you can do is rename your dad's visible name in skype so it contains "Dad", you should then be able to "s dad", where he should be the first hit. (If not, add "dad" twice, the entries are sorted by the number of characters that are match your query, e.g. if you do "s dad" and the skypename of your dad is daddaddad, it will return 9 as 9 chars have been matched ) After you changed the name, run "s update" to load the namechange into the cache. (Note: What is displayed as name is what the user has set as his full name, only if no fullname is set, the given name (the one you set) is displayed, for searching though, the account name, fullname and given name are used)
  10. That is awesome, will include it into mine asap. One neat thing would be to have another command "ooplist" or so, to see which workflows are oop-enabled.
  11. Interesting. What OSX Version are you on? When you s ... it does find all your friends? (BTW Skype stores many things one might believe to be lost in that database...)
  12. Hi, for the avatar in the directory, is there online one image or are there variants _online.jpg, _offline.jpg ... ?
  13. Can you check whether your icon is in the avatars folder (see previous post on how to get there)
  14. Yes, the convo is always loaded afterwards and cached. Did you do "s update"? If yes, and you still don't get the right icons, can you go to Alfred, select the Skype workflow, open a part of it (doesn't matter) and hit "open workflow" directory, then there is a folder "avatars" does it contain images? and if so, the avatars of your friends or just the skype icon multiplied? Thank you for your help, that part I couldn't test on another mac, so any feedback is important! The colored corner match the current status of a user, white offline, green online, yellow busy, red DND
×
×
  • Create New...