Skip to content

Instantly share code, notes, and snippets.

@themoken
Created November 24, 2014 16:39
Show Gist options
  • Save themoken/63f7eed82add3a018972 to your computer and use it in GitHub Desktop.
Save themoken/63f7eed82add3a018972 to your computer and use it in GitHub Desktop.
diff --git a/canto_next/feed.py b/canto_next/feed.py
index 1b3a387..65f000c 100644
--- a/canto_next/feed.py
+++ b/canto_next/feed.py
@@ -382,6 +382,13 @@ class CantoFeed(PluginHandler):
log.debug("Discarding: %s", olditem["id"])
continue
+ cacheitem = self._cacheitem(olditem)
+ tags_to_add.append((cacheitem["id"], "maintag:" + self.name))
+
+ if "canto-tags" in olditem:
+ for user_tag in olditem["canto-tags"]:
+ tags_to_add((cacheitem["id"], user_tag))
+
update_contents["entries"].append(olditem)
# Allow plugins DaemonFeedPlugins defining edit_* functions to have a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment