def do_mythtv_getwatched(self, line): """Process MythTV get all watched/saved video details""" if self.verbose: print print u"Getting details on watched/saved Miro videos" self.videofiles = [] if len(views.watchableItems): if self.verbose: print u"%-20s %-10s %s" % (u"State", u"Size", u"Name") print "-" * 70 for item in views.watchableItems: # Skip any audio file as MythTV Internal player may abort the MythTV Frontend on a MP3 if not item.isVideo: continue state = item.get_state() if state == u'newly-downloaded': continue # Skip any bittorrent video downloads for legal concerns if filetypes.is_torrent_filename(item.getURL()): continue self.printItems(item) self.videofiles.append(self._get_item_dict(item)) if self.verbose: print if not len(self.videofiles): logging.info(u"No watched/saved Miro videos")
def looks_like_torrent(self): return self.is_torrent or filetypes.is_torrent_filename(self.url)