HI all,
I'm writing an application to generate an rss file which points to some items, generated over a period of time. The rss file and the mp3 files that it points to from it's items are all served using a ZnZincStaticServerAdapter. I have added this to my android podcast reader, BeyondPod. BeyondPod reads the rss file and it lists the items as podcast episodes, but it doesn't download the content. Anyone who knows rss - is there something fundamentally wrong with what I'm doing? -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Jeff,
You should log/debug the requests that are coming in from the podcast app. There you can see if/why the URL’s you create are not resolved properly.
Kind regards
Karsten
Georg Heeg eK Wallstraße 22 06366 Köthen Tel.: 03496/214328 FAX: 03496/214712 Amtsgericht Dortmund HRA 12812 Am 2. Dezember 2019 um 05:57:56 MEZ schrieb Jeff Gray <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
I don't think the problem is there, in that if I open the rss, copy the link
from the item and paste it into my browser then the mp3 file plays on the pc. -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
I have a clue!
When I copy the url of my item mp3 file into the browser it serves the media. When I copy the url of an item from an rss file that does work into the browser, the browser asks if I want to save the file -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Can you post a snippet from the RSS feed and also how the URLs are created in
Seaside? Jeff Gray wrote > I have a clue! > When I copy the url of my item mp3 file into the browser it serves the > media. When I copy the url of an item from an rss file that does work into > the browser, the browser asks if I want to save the file > > > > -- > Sent from: http://forum.world.st/Seaside-General-f86180.html > _______________________________________________ > seaside mailing list > seaside@.squeakfoundation > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Rss file:
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>PodcastFromFiles</title><link>http://rogerthedog.com:8081/PodcastFromFiles.rss</link><description>Podcasts from a set of files</description><item><title>01-ColourOfMagicU1.mp3</title><description>PodcastFromFiles 01-ColourOfMagicU1.mp3</description><pubDate>Sat, 30 Nov 2019 20:47:54 +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU1.mp3</link></item><item><title>01-ColourOfMagicU2.mp3</title><description>PodcastFromFiles 01-ColourOfMagicU2.mp3</description><pubDate>Sun, 1 Dec 2019 20:47:54 +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU2.mp3</link></item><item><title>01-ColourOfMagicU3.mp3</title><description>PodcastFromFiles 01-ColourOfMagicU3.mp3</description><pubDate>Mon, 2 Dec 2019 20:47:54 +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU3.mp3</link></item></channel></rss> I call this method to start the static file server: ZnZincStaticServerAdaptor startOn: aPort andServeFilesFrom: subFolderRef. 'subFolderRef' is a FileReference object on a folder on my hard disk, holding the mp3 files and the rss file. aPort matches the 8081 in the rss file. -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Normally this should be OK, but make sure that the following work correctly:
ZnMimeType forFilenameExtension: 'rss'. "application/x-rss+xml" ZnMimeType forFilenameExtension: 'mp3'. "audio/mpeg" It is necessary for a static file server (like ZnStaticFileServerDelegate) to serve a resource with the correct mime type, based on its extension. You can verify that your files are served correctly using curl with debugging options, for example, or the web inspector of your browser. > On 2 Dec 2019, at 22:30, Jeff Gray <[hidden email]> wrote: > > Rss file: > <?xml version="1.0" encoding="UTF-8"?><rss > version="2.0"><channel><title>PodcastFromFiles</title><link>http://rogerthedog.com:8081/PodcastFromFiles.rss</link><description>Podcasts > from a set of > files</description><item><title>01-ColourOfMagicU1.mp3</title><description>PodcastFromFiles > 01-ColourOfMagicU1.mp3</description><pubDate>Sat, 30 Nov 2019 20:47:54 > +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU1.mp3</link></item><item><title>01-ColourOfMagicU2.mp3</title><description>PodcastFromFiles > 01-ColourOfMagicU2.mp3</description><pubDate>Sun, 1 Dec 2019 20:47:54 > +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU2.mp3</link></item><item><title>01-ColourOfMagicU3.mp3</title><description>PodcastFromFiles > 01-ColourOfMagicU3.mp3</description><pubDate>Mon, 2 Dec 2019 20:47:54 > +1000</pubDate><link>http://rogerthedog.com:8081/01-ColourOfMagicU3.mp3</link></item></channel></rss> > > > I call this method to start the static file server: > ZnZincStaticServerAdaptor startOn: aPort andServeFilesFrom: subFolderRef. > > 'subFolderRef' is a FileReference object on a folder on my hard disk, > holding the mp3 files and the rss file. > aPort matches the 8081 in the rss file. > > > > > > -- > Sent from: http://forum.world.st/Seaside-General-f86180.html > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Jeff Gray
Hi Jeff,
the <link> in RSS Channel is meant for a link to the website, not a link to a file. If you want to link to files, put them in <enclosure> tags.
Kind Regards
Karsten
Georg Heeg eK Wallstraße 22 06366 Köthen Tel.: 03496/214328 FAX: 03496/214712 Amtsgericht Dortmund HRA 12812 Am 2. Dezember 2019 um 22:25:21, Jeff Gray ([hidden email]) schrieb:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks Karsten. That was it. My coding was fine. My knowledge of rss was not
:-) -- Sent from: http://forum.world.st/Seaside-General-f86180.html _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |