mirror of
https://github.com/zoriya/Autopipe.git
synced 2025-12-06 02:56:09 +00:00
Update README.md
This commit is contained in:
10
README.md
10
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
|
||||
|
||||
Reference in New Issue
Block a user