]> git.street.me.uk Git - andy/viking.git/commitdiff
Enable handling compressed files when acquiring from an URL datasource.
authorRob Norris <rw_norris@hotmail.com>
Sun, 17 Jan 2016 15:09:18 +0000 (15:09 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sun, 17 Jan 2016 15:58:26 +0000 (15:58 +0000)
src/datasource_url.c

index 86181d6ae492c2f77fa89b2b92e3fb7aed13bffc..44891adf8b458ceebb501f8cba09dd040c731116 100644 (file)
@@ -152,7 +152,10 @@ static void datasource_url_get_process_options ( datasource_url_widgets_t *widge
                po->input_file_type = g_strdup ( ((BabelFile*)g_list_nth_data (a_babel_file_list, last_type))->name );
 
        po->url = g_strdup ( value );
-       download_options = NULL;
+
+       // Support .zip + bzip2 files directly
+       download_options->convert_file = a_try_decompress_file;
+       download_options->follow_location = 5;
 }
 
 static void datasource_url_cleanup ( gpointer data )