]> git.street.me.uk Git - andy/viking.git/blobdiff - src/babel.c
Add file content checking process
[andy/viking.git] / src / babel.c
index f44a977474cf1ed73b4d054d8e7fb840c631f088..a94322316f62f93e277f3e0ba98b38b385977c01 100644 (file)
@@ -202,6 +202,7 @@ gboolean a_babel_convert_from_shellcommand ( VikTrwLayer *vt, const char *input_
 
 gboolean a_babel_convert_from_url ( VikTrwLayer *vt, const char *url, const char *input_type, BabelStatusFunc cb, gpointer user_data )
 {
+  static DownloadOptions options = {NULL, 0, a_check_html_file};
   gint fd_src;
   int fetch_ret;
   gboolean ret = FALSE;
@@ -216,7 +217,7 @@ gboolean a_babel_convert_from_url ( VikTrwLayer *vt, const char *url, const char
 
     babelargs = g_strdup_printf(" -i %s", input_type);
 
-    fetch_ret = a_http_download_get_url(url, "", name_src, NULL);
+    fetch_ret = a_http_download_get_url(url, "", name_src, &options);
     if (fetch_ret == 0)
       ret = a_babel_convert_from( vt, babelargs, NULL, name_src, NULL);