parameters: (self, line)
docstring: Process MythTV update watched videos
docstring_summary: Process MythTV update watched videos
docstring_tokens: Process MythTV update watched videos
function: def do_mythtv_updatewatched(self, line):
          """Process MythTV update watched videos"""
          #items = views.watchableItems
          items = item.Item.downloaded_view()
          for video in self.videofiles:
              for it in items:
                  if it.get_filename() == video:
                       break
              else:
                  logging.info(u"Item for Miro video (%s) not found, skipping" % video)
                  continue
              if self.simulation:
                  logging.info(u"Simulation: Item (%s - %s) marked as seen and watched" % (it.get_channel_title(True), it.get_title()))
              else:
                  it.mark_item_seen(markOtherItems=True)
                  self.statistics[u'Miro_marked_watch_seen']+=1
                  logging.info(u"Item (%s - %s) marked as seen and watched" % (it.get_channel_title(True), it.get_title()))
function_tokens: def do_mythtv_updatewatched ( self , line ) : #items = views.watchableItems items = item . Item . downloaded_view ( ) for video in self . videofiles : for it in items : if it . get_filename ( ) == video : break else : logging . info ( u"Item for Miro video (%s) not found, skipping" % video ) continue if self . simulation : logging . info ( u"Simulation: Item (%s - %s) marked as seen and watched" % ( it . get_channel_title ( True ) , it . get_title ( ) ) ) else : it . mark_item_seen ( markOtherItems = True ) self . statistics [ u'Miro_marked_watch_seen' ] += 1 logging . info ( u"Item (%s - %s) marked as seen and watched" % ( it . get_channel_title ( True ) , it . get_title ( ) ) )