steveway / papagayo-ng

Papagayo is a lip-syncing program designed to help you line up phonemes (mouth shapes) with the actual recorded sound of actors speaking. Papagayo makes it easy to lip sync animated characters by making the process very simple - just type in the words being spoken (or copy/paste them from the animation's script), then drag the words on top of the sound's waveform until they line up with the proper sounds.
http://steveway.github.io/papagayo-ng/
19 stars 3 forks source link

Unable to download Rhubarb in-app #39

Open dimitritholen opened 2 years ago

dimitritholen commented 2 years ago

Using Papagayo-NG 1.6.6.0

When I click "Download Rhubarb" in the toolbar, I get the following error:

Traceback (most recent call last):
  File "utilities.py", line 196, in run
  File "LipsyncFrameQT.py", line 473, in download_rhubarb
  File "urllib\request.py", line 214, in urlopen
  File "urllib\request.py", line 501, in open
  File "urllib\request.py", line 320, in __init__
  File "urllib\request.py", line 346, in full_url
  File "urllib\request.py", line 375, in _parse
ValueError: unknown url type: ''
steveway commented 2 years ago

I see, this happens because we are looking for specific file endings depending on the architecture:

if platform.system() == "Darwin":
    if download["name"].endswith("-osx.zip"):
        release_url = download["browser_download_url"]
    else:
        if download["name"].endswith("-win32.zip"):
            release_url = download["browser_download_url"]

Apparently they changed it so it now ends with "-macOS.zip" for macOS and "-Windows.zip" for Windows. I've updated the code in my branch, this is untested but if that is the only change it should work: https://github.com/steveway/papagayo-ng/blob/master/LipsyncFrameQT.py