예제 #1
0
    def sectionClicked(self):
        item = self.sectionList.getSelectedItem()
        if not item:
            return

        section = item.dataSource

        if section.type in ('show', 'movie', 'artist', 'photo'):
            self.processCommand(opener.sectionClicked(section))
        elif section.type in ('playlists', ):
            self.processCommand(opener.handleOpen(playlists.PlaylistsWindow))
예제 #2
0
 def showPhoto(self, photo):
     if isinstance(photo, plexnet.photo.Photo) or photo.TYPE == 'clip':
         self.processCommand(opener.open(photo))
     else:
         self.processCommand(opener.sectionClicked(photo))