if (MOVIES in flags) {
description_changed ("Downloading movie list ...");
downloader.download (url + "movies.list.gz", Path.build_filename (cache_dir, "movies.list.gz"));
}
if (MOVIES in flags) {
description_changed ("Downloading movie list ...");
downloader.download (url + "movies.list.gz", Path.build_filename (cache_dir, "movies.list.gz"));
}
if (GENRES in flags) {
description_changed ("Downloading genre data ...");
downloader.download (url + "genres.list.gz", Path.build_filename (cache_dir, "genres.list.gz"));
}
if (GENRES in flags) {
description_changed ("Downloading genre data ...");
downloader.download (url + "genres.list.gz", Path.build_filename (cache_dir, "genres.list.gz"));
}
if (RATINGS in flags) {
description_changed ("Downloading rating data ...");
downloader.download (url + "ratings.list.gz", Path.build_filename (cache_dir, "ratings.list.gz"));
}
if (RATINGS in flags) {
description_changed ("Downloading rating data ...");
downloader.download (url + "ratings.list.gz", Path.build_filename (cache_dir, "ratings.list.gz"));
}
if (AKAS in flags) {
description_changed ("Downloading alternative titles ...");
downloader.download (url + "aka-titles.list.gz", Path.build_filename (cache_dir, "aka-titles.list.gz"));
}
if (AKAS in flags) {
description_changed ("Downloading alternative titles ...");
downloader.download (url + "aka-titles.list.gz", Path.build_filename (cache_dir, "aka-titles.list.gz"));
}
if (PLOTS in flags) {
description_changed ("Downloading plots ...");
downloader.download (url + "plot.list.gz", Path.build_filename (cache_dir, "plot.list.gz"));
}
if (PLOTS in flags) {
description_changed ("Downloading plots ...");
downloader.download (url + "plot.list.gz", Path.build_filename (cache_dir, "plot.list.gz"));
}
if (MOVIES in flags) {
description_changed ("Parsing movie list ...");
parser.parse (Path.build_filename (cache_dir, "movies.list.gz"), movie_parser);
}
if (MOVIES in flags) {
description_changed ("Parsing movie list ...");
parser.parse (Path.build_filename (cache_dir, "movies.list.gz"), movie_parser);
}
if (GENRES in flags) {
description_changed ("Parsing genre data ...");
parser.parse (Path.build_filename (cache_dir, "genres.list.gz"), genre_parser);
}
if (GENRES in flags) {
description_changed ("Parsing genre data ...");
parser.parse (Path.build_filename (cache_dir, "genres.list.gz"), genre_parser);
}
if (RATINGS in flags) {
description_changed ("Parsing rating data ...");
parser.parse (Path.build_filename (cache_dir, "ratings.list.gz"), rating_parser);
}
if (RATINGS in flags) {
description_changed ("Parsing rating data ...");
parser.parse (Path.build_filename (cache_dir, "ratings.list.gz"), rating_parser);
}
if (AKAS in flags) {
description_changed ("Parsing alternative titles ...");
parser.parse (Path.build_filename (cache_dir, "aka-titles.list.gz"), aka_parser);
}
if (AKAS in flags) {
description_changed ("Parsing alternative titles ...");
parser.parse (Path.build_filename (cache_dir, "aka-titles.list.gz"), aka_parser);
}
if (PLOTS in flags) {
description_changed ("Parsing plots ...");
parser.parse (Path.build_filename (cache_dir, "plot.list.gz"), plot_parser);
if (PLOTS in flags) {
description_changed ("Parsing plots ...");
parser.parse (Path.build_filename (cache_dir, "plot.list.gz"), plot_parser);
private void on_progress (int dltotal, int dlnow) {
stdout.printf ("%d / %d\r", dlnow, dltotal);
private void on_progress (int dltotal, int dlnow) {
stdout.printf ("%d / %d\r", dlnow, dltotal);