asciinema2gif
asciinema2gif copied to clipboard
asciinema2gif always results in Error 404
I just cannot get it to work.
$ asciinema2gif 125790 ERROR: https://asciinema.org/api/asciicasts/125790 returns 404
Thanks.
Try to open that link in the browser; it’s indeed a 404. You cannot convert a page that does not exist. Looks like the asciinema website changed something.
I think they removed /api/asciicasts
, even the sample url given in README results in 404
I haven't really dug into this code much but here's a start at getting it partially working. Edit the asciinema2gif script and take out
# Show warning if a URL not containing '/api/asciicasts/' is given
if [[ $asciinema_url != *'/api/asciicasts/'* ]]; then
echo -e "\n$(tput setaf 1)Wrong URL format. See https://github.com/tav/asciinema2gif#url-format.$(tput sgr0)\n"
exit 1
fi
then run it like asciinema2gif https://asciinema.org/a/111474
. You'll see it prepare
>> Dimensions: 1542.9375x896
>> Preparing window ...
and get stuck here.
The code that triggers the playback does still work. If you go to any public cast and run https://github.com/tav/asciinema2gif/blob/master/render.js#L156-L160 in the console you'll see it start playing. I'm guessing there's not a whole lot left to get it all working again...