From 517644febd8d6ceffcf0e4f99afa22ddc4b87faf Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 15 Nov 2020 02:37:03 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0eb6285..350980d 100644 --- a/README.md +++ b/README.md @@ -21,15 +21,15 @@ class DownloadExample(Coordinator): def name(cls): return "DownloadExample" + @property + def input(self): + return RssInput(f"http://www.obsrv.com/General/ImageFeed.aspx?{self.query}", + lambda x: FileData(x.title, x["media_content"][0]["url"], False)) + @property def pipeline(self) -> List[Union[Pipe, Callable[[APData], Union[APData, Pipe]]]]: return [Output(DownloaderPipe())] - def get_input(self): - return RssInput(f"http://www.obsrv.com/General/ImageFeed.aspx?{self.query}", - lambda x: FileData(x.title, x["media:content"], True)) - - ``` ### For this coordinator to be found by autopipe, you must use one of the three following way