diff --git a/modules/reddit.py b/modules/reddit2org.py similarity index 94% rename from modules/reddit.py rename to modules/reddit2org.py index 834b3bd..0ac6edb 100755 --- a/modules/reddit.py +++ b/modules/reddit2org.py @@ -2,13 +2,14 @@ """ Better interface for reading saved reddit posts/comments """ -from orger import InteractiveView +from orger import Mirror from orger.inorganic import node, link from orger.common import dt_heading from my.reddit import saved -class RedditView(InteractiveView): + +class RedditView(Mirror): def get_items(self): for s in saved(): yield s.sid, node( @@ -21,6 +22,7 @@ def get_items(self): body=s.text, ) + # todo this could be generic, i.e. checking all urls? def is_dead_url(self, url: str) -> bool: assert self.cmdline_args is not None if not self.cmdline_args.mark_dead: