GLib.Object (active: true);
}
- public override async void get_movies (MovieFilter filter, MovieSource.ReceiveMovieFunction callback, int limit, Cancellable? cancellable) {
+ public override async int get_movies (MovieFilter filter, MovieSource.ReceiveMovieFunction callback, int limit, Cancellable? cancellable) {
var parser = new GoogleParser ();
- yield parser.query (filter, location, callback, cancellable);
+ int n = yield parser.query (filter, location, callback, cancellable);
if (location == null) {
location = parser.location;
}
+
+ return n;
}
public override void add_movie (Movie movie) {