Plugin interface, IMDb plugin: add REFERENCE flag
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 19 Aug 2010 17:12:08 +0000 (19:12 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 19 Aug 2010 17:12:08 +0000 (19:12 +0200)
Reference sources strive to be comprehensive. The selected reference source
will be used to augment other sources' incomplete movie data where possible.

src/plugin-interface.vala
src/plugins/imdb-plugin.vala

index d1f538d..09d7fec 100644 (file)
@@ -32,6 +32,7 @@ public enum SourceFlags {
        ONLINE = 2,
        RATING = 4,
        NOEMPTY = 8,
+       REFERENCE = 16,
 }
 
 public abstract class MovieSource : Object {
index ee7f6af..d427902 100644 (file)
@@ -286,7 +286,7 @@ class IMDBSource : MovieSource {
        }
 
        public override SourceFlags get_flags () {
-               return 0;
+               return SourceFlags.REFERENCE;
        }
 }