Open jace opened 11 years ago
Change of plans:
The feed should also include attachments for downloading and offline viewing. We need to check on the APIs for all sources to find and include download links in the feed.
If there are multiple download links available (for eg, video at various resolutions), we should pick the best for mobile.
This will require caching the download link in the Video model as querying the API every time the feed is requested is not tenable.
Initial feed support has been added in 6cfecd1. Todo: feed links from the view page.
HasGeek TV needs RSS or Atom feeds per channel and per playlist.
playlists_videos.created_at
. Don't useupdated_at
as that will change when the playlist order changes.Video.query.filter(Video.playlist.in_(channel.playlists).order_by('created_at')
I'm uncomfortable using
created_at
in a user-facing query, but I don't think we have another column with the same data.You can borrow the Atom feed template and code from Eventframe. See feed.xml and related code