]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/google/translate/translate.factor
http.download: fix downloading into a directory if it didnt exist
[factor.git] / extra / google / translate / translate.factor
index a8ddafa31fcbef820bbbe162b25b473c676002e6..175a66ee5264c3b136407db336b3cf4c03f3a0fd 100644 (file)
@@ -55,7 +55,7 @@ TUPLE: response-error response error ;
 : translate-tts ( text -- file )
     "https://translate.google.com/translate_tts?tl=en" >url
     swap "q" set-query-param [
-        "" ".mp3" unique-file download-to
+        "" ".mp3" unique-file download-as
     ] with-temp-directory ;
 
 ! Example: