Just updated @talkpython and @pythonbytes's websites to be more content type aware. If you're on an episode page such as
/episodes/show/415/just-put-the-fries-in-the-bag-bro
You can just append .jpg, .vtt, and .mp3 to get that content instead. cc @brianokken #python
Try it yourself! https://pythonbytes.fm/episodes/show/415/just-put-the-fries-in-the-bag-bro
=> More informations about this toot | More toots from mkennedy@fosstodon.org
@mkennedy
I´ve thought about something like this, extending out to getting views as .pdf or .txt or .json, etc.
Did plone do something like this? It´s been a while.
=> More informations about this toot | More toots from danhugo@fosstodon.org
@danhugo It's fun, right? :) I'm not sure about Plone, but I added it to my Quart view today. It's easy because I already have views for all that content. Just centralized it on the URL there.
=> More informations about this toot | More toots from mkennedy@fosstodon.org
@mkennedy
I´m thinking a standard endpoint interface with different content types delivered per… like index.html has been completely misused, I should be able to get a list of elements in a view, index.json or index.txt accordingly.
And yes, fun, hopefully useful or maybe interesting…
=> More informations about this toot | More toots from danhugo@fosstodon.org
On Ep 415 of @pythonbytes and this post, you mention appending the file-type extension (.vtt, .jpg, .mp3, etc) to get various relevant forms of the same item. I've been pushing this recommendation for years (apparently since at least early 2008)
https://blog.jonudell.net/2008/01/17/aspx-considered-harmful/#comment-122209
HTTP content-negotiation via "300 Multiple Choices" is poorly defined (what format does the list alternatives come back as? HTML? JSON? CSV? TOML?). But being able to use extensions makes it clear which file-type the user/User-Agent wants.
Glad to see others discovering it, too! ☺
@brianokken @mkennedy
=> More informations about this toot | More toots from gumnos@bsd.cafe This content has been proxied by September (ba2dc).Proxy Information
text/gemini