Exemple #1
0
	def on_task_output(self, task, config):
		for entry in task.accepted:
			seen.forget(entry['title'])
			log.info('Removed %s from seen database' % entry['title'])
			try:
				forget_series_episode(entry['series_name'], entry['series_id'])
				log.info('Removed episode `%s` from series `%s`.' % (entry['series_id'], entry['series_name']))
			except ValueError:
    				log.debug("Series (%s) or id (%s) unknown." % (entry['series_name'],entry['series_id']))
Exemple #2
0
 def on_task_output(self, task, config):
     for entry in task.accepted:
         seen.forget(entry['title'])
         log.info('Removed %s from seen database' % entry['title'])
         try:
             forget_series_episode(entry['series_name'], entry['series_id'])
             log.info('Removed episode `%s` from series `%s`.' %
                      (entry['series_id'], entry['series_name']))
         except ValueError:
             log.debug("Series (%s) or id (%s) unknown." %
                       (entry['series_name'], entry['series_id']))
Exemple #3
0
def seen_forget(manager, options):
    forget_name = options.forget_value
    if is_imdb_url(forget_name):
        imdb_id = extract_id(forget_name)
        if imdb_id:
            forget_name = imdb_id

    count, fcount = plugin_seen.forget(forget_name)
    console('Removed %s titles (%s fields)' % (count, fcount))
    manager.config_changed()
Exemple #4
0
def seen_forget(manager, options):
    forget_name = options.forget_value
    if is_imdb_url(forget_name):
        imdb_id = extract_id(forget_name)
        if imdb_id:
            forget_name = imdb_id

    count, fcount = seen.forget(forget_name)
    console("Removed %s titles (%s fields)" % (count, fcount))
    manager.config_changed()