using Hildon;
class IMDbDownloadDialog : Note {
- public IMDbDownloadDialog (Gtk.Window window) {
+ private bool plots;
+
+ public IMDbDownloadDialog (Gtk.Window window, bool _plots) {
transient_parent = window;
+ plots = _plots;
}
construct {
server.Progress += this.on_progress;
server.DescriptionChanged += this.on_description_changed;
- server.download (mirror, IMDbDownloader.MOVIES | IMDbDownloader.GENRES | IMDbDownloader.RATINGS);
+ int flags = IMDbDownloader.MOVIES | IMDbDownloader.GENRES | IMDbDownloader.RATINGS | IMDbDownloader.AKAS;
+ if (plots)
+ flags |= IMDbDownloader.PLOTS;
+
+ server.download (mirror, flags);
} catch (DBus.Error e) {
warning ("Failed to invoke IMDb downloader: %s", e.message);
}