Update README.md

This commit is contained in:
Zoe Roux
2020-11-15 02:37:03 +01:00
parent f4441c00b4
commit 517644febd

View File

@@ -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