def open_item(self, item): if isinstance(item, jamaendo.Album): wnd = ShowAlbum(item) wnd.show_all() elif isinstance(item, jamaendo.Artist): wnd = ShowArtist(item) wnd.show_all() elif isinstance(item, jamaendo.Track): wnd = open_playerwindow() wnd.play_tracks([item])
def open_item(self, item): if isinstance(item, jamaendo.Album): wnd = ShowAlbum(item) wnd.show_all() elif isinstance(item, jamaendo.Artist): wnd = ShowArtist(item) wnd.show_all() elif isinstance(item, jamaendo.Track): playlist = Playlist(self.items) playlist.jump_to(item.ID) wnd = open_playerwindow() wnd.play_tracks(playlist) elif isinstance(item, jamaendo.Tag): self.start_tag_fetcher(item.ID)