def __init__(self): GenericSource.__init__(self, 'itunes', groups=[ 'albums', 'artists', 'authors', 'desc', 'directors', 'genres', 'images', 'length', 'mpaa_rating', 'publishers', 'release_date', 'screenshots', 'tracks', ], kinds=[ 'person', 'media_collection', 'media_item', 'software', ], types=[ 'artist', 'album', 'track', 'book', 'movie', 'tv', 'app', ] )
def __init__(self): GenericSource.__init__(self, 'amazon', groups=[ 'artists', # 'genres', 'length', 'albums', 'release_date', 'authors', 'publishers', 'isbn', 'desc', 'sku_number', 'images', 'last_popular', ], kinds=[ 'media_collection', 'media_item', 'software', ], types=[ 'album', 'track', 'book', 'video_game', ] )
def __init__(self): GenericSource.__init__(self, 'factual', groups=[ 'address', 'alcohol_flag', 'coordinates', 'cuisine', 'foursquare', 'opentable', 'phone', 'price_range', 'singleplatform', 'site', ], kinds=[ 'place', ] ) self.__address_fields = { ('address_street',):_ppath('address'), ('address_street_ext',):_ppath('address_extended'), ('address_locality',):_ppath('locality'), ('address_region',):_ppath('region'), ('address_postcode',):_ppath('postcode'), ('address_country',):_ppath('country'), } self.__hours_map = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'] self.__simple_fields = { 'phone':'tel', 'site':'website', 'alcohol_flag':'alcohol', }
def __init__(self): GenericSource.__init__(self, 'instagram', groups=[ 'site', 'coordinates', 'gallery', ], kinds=[ 'place', ] )
def __init__(self, stamped_api = None): GenericSource.__init__(self, 'stamped', groups=['tombstone', 'nemeses'], kinds=[ 'person', 'place', 'media_collection', 'media_item', 'software', ] ) self._stamped_api = stamped_api
def __init__(self): GenericSource.__init__(self, 'googleplaces', groups=[ 'address', 'formatted_address', 'phone', 'site', 'neighborhood', 'coordinates', ], kinds=[ 'place', ] )
def __init__(self): GenericSource.__init__(self, 'thetvdb', groups=[ 'genres', 'desc', 'cast', 'imdb', 'networks', ], kinds=[ 'media_collection', ], types=[ 'tv', ] )
def getGroups(self, entity=None): groups = GenericSource.getGroups(self, entity) if entity.isType('album') or entity.isType('track'): groups.remove('desc') if entity.isType('artist'): groups.remove('images') return groups
def __init__(self): GenericSource.__init__(self, 'spotify', groups=[ 'albums', 'tracks', ], kinds=[ 'person', 'media_collection', 'media_item', ], types=[ 'artist', 'album', 'track', ] )
def __init__(self): GenericSource.__init__(self, 'tmdb', groups=[ 'directors', 'cast', 'desc', 'genres', 'imdb', 'length', 'release_date', ], kinds=[ 'media_item', ], types=[ 'movie', ] ) self.__max_cast = 6
def __init__(self): GenericSource.__init__(self, 'rdio', groups=[ 'images', 'albums', 'tracks', 'artists', 'rdio_available', ], kinds=[ 'person', 'media_collection', 'media_item', ], types=[ 'artist', 'album', 'track', ] )
def __init__(self): GenericSource.__init__(self, 'netflix', groups=[ 'release_date', 'desc', 'directors', 'cast', 'mpaa_rating', 'genres', 'directors', 'images', 'length', 'url', 'netflix_available', ], kinds=[ 'media_item', 'media_collection' ], types=[ 'movie', 'tv' ] )
def getGroups(self, entity=None): groups = GenericSource.getGroups(self, entity) if not entity.isType('app') and not entity.isType('movie') and not entity.isType('tv'): groups.remove('desc') return groups