def _load_page_content(self, page, artist): """ Load artist page content @param page as str @param artist as str """ wp = Wikipedia() (url, image_url, content) = wp.get_page_infos(page) if artist == self._artist: ArtistContent.populate(self, content, image_url, 'wikipedia')
def _load_page_content(self, artist): """ Load artist page content @param artist as str """ self._menu_model.remove_all() wp = Wikipedia() (url, image_url, content) = wp.get_page_infos(artist) if not self._stop: InfoContent.set_content(self, self._artist, content, image_url, 'wikipedia') t = Thread(target=self._setup_menu, args=(self._artist, self._album)) t.daemon = True t.start()
def __load_page_content(self, artist): """ Load artist page content @param artist as str """ GLib.idle_add(self.__menu_model.remove_all) wp = Wikipedia() try: (url, content) = wp.get_page_infos(artist) except: url = content = None if not self._stop: InfoContent.set_content(self, self._artist, content, url, 'wikipedia') t = Thread(target=self.__setup_menu, args=(self._artist, self.__album)) t.daemon = True t.start()
def _load_page_content(self, artist): """ Load artist page content @param artist as str """ GLib.idle_add(self._menu_model.remove_all) wp = Wikipedia() try: (url, content) = wp.get_page_infos(artist) except: url = content = None if not self._stop: InfoContent.set_content(self, self._artist, content, url, 'wikipedia') t = Thread(target=self._setup_menu, args=(self._artist, self._album)) t.daemon = True t.start()