Downloading Workflow from Github does not work if extension is .alfred3workflow

Created by: skleinei

Hey @deanishe, first of all thanks for this great lib. It helped me building a Confluence workflow to find and open Confluence pages (more info).

Ok, enough said – here is the issue: The self-update (and especially the download part) is not working if the extension .alfred3workflow. If I change the extension to .alfredworkflow it works fine.

Being a Python noob and not having troubles getting the build+test to work, I don't have time to add a PR, but the issue is in workflow/update.py, lines ~206/207. If changed to this, it should work:

    :
    if (not (url.endswith('.alfredworkflow') or url.endswith('.alfred3workflow')) or
            not (filename.endswith('.alfredworkflow') or filename.endswith('.alfred3workflow'))):
    :

Hope this helps.