MarcusOtter / APOD.Net

An unofficial .NET wrapper for NASA's Astronomy Picture of the Day API.
https://marcusotter.github.io/APOD.Net/
MIT License
9 stars 2 forks source link

Add method to download the image/video #37

Open MarcusOtter opened 4 years ago

MarcusOtter commented 4 years ago

Is your feature request related to a problem? Please describe. Currently the library only gives the users an URL and tell them if it's an image or a video and leave the downloading up to the user.

Describe the feature you'd like It would be nice to provide a DownloadMedia method on the ApodClient that downloads the content and returns it (maybe as byte[]? I'm not sure what format would be preferred for users).

MarcusOtter commented 4 years ago

Known video sources: youtube.com (example: 2019-02-05) vimeo.com (example: 2019-01-20) ustream.tv (example: 2019-06-02)

Youtube is most common by far. Videos would probably not be downloadable