def get_movie_trivia(self, movieID): triv = parseMinusList(movieID, '%strivia.data' % self.__db, '%strivia.index' % self.__db) trefs, nrefs = self._extractRefs(triv) if triv: return {'data': {'trivia': triv}, 'titlesRefs': trefs, 'namesRefs': nrefs} return {'data': {}}
def get_movie_crazy_credits(self, movieID): cc = parseMinusList(movieID, '%scrazy-credits.data' % self.__db, '%scrazy-credits.index' % self.__db) trefs, nrefs = self._extractRefs(cc) if cc: return {'data': {'crazy credits': cc}, 'titlesRefs': trefs, 'namesRefs': nrefs} return {'data': {}}
def get_movie_soundtrack(self, movieID): goo = parseMinusList(movieID, '%ssoundtracks.data' % self.__db, '%ssoundtracks.index' % self.__db) trefs, nrefs = self._extractRefs(goo) if goo: return {'data': {'soundtrack': goo}, 'titlesRefs': trefs, 'namesRefs': nrefs} return {'data': {}}
def get_movie_alternate_versions(self, movieID): av = parseMinusList(movieID, '%salternate-versions.data' % self.__db, '%salternate-versions.index' % self.__db) trefs, nrefs = self._extractRefs(av) if av: return {'data': {'alternate versions': av}, 'titlesRefs': trefs, 'namesRefs': nrefs} return {'data': {}}