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