Categories
Technology

moonmoon 0.1.5 beta

La version 0.1.5 beta de moonmoon est (enfin) disponible. Je pensais sortir une version 0.2, mais je crois qu’il va falloir attendre de voir comment avance SimplePie pour décider si je conserve ce parser ou non. Peu importe, voyons ce qu’il y’a de nouveau:

La version 0.1.5 beta de moonmoon est (enfin) disponible. Je pensais sortir une version 0.2, mais je crois qu’il va falloir attendre de voir comment avance SimplePie pour décider si je conserve ce parser ou non. Peu importe, voyons ce qu’il y’a de nouveau:

  • on oublie le fichier people.yml pour n’utiliser qu’un fichier OPML, exportable directement depuis votre agrégateur favori;
  • le rafraîchissement des flux ne se fera plus exactement à la période définie, mais à plus ou moins 30 minutes. Cela évite de charger trop de flux en même temps, ce qui risque d’arriver tout de même si tous les flux sont périmés depuis trop longtemps;
  • deux nouveaux thèmes, un sombre et un clair;
  • deux nouvelles options, une pour virer le HTML et une autre pour tronquer les articles.

Comme d’habitude, les téléchargements se passent sur le site officiel de moonmoon et la démo est toujours disponible

Comment mettre à jour ?

Ceux qui utilisaient déjà la précédente version de moonmoon, voilà quelques instructions pour mettre à jour:

  • faites une sauvegarde;
  • récupérez la liste des flux au format OPML depuis votre moonmoon actuel;
  • supprimez l’ancienne installation;
  • remplacez-la par la nouvelle version, en prenant soin d’y déposer votre OPML.

Voilà!

La suite ?

Vous remarquerez que l’installation et l’utilisation ne sont pas vraiment simples. Je prévois d’intégrer un vrai panneau d’administration permettant d’importer les flux et de gérer la configuration, mais cela n’arrivera pas avant deux ou trois versions. L’autre point important pour le futur est le développement de la bibliothèque SimplePie. Ces derniers mois, elle a grossi et pose quelques problèmes. S’il le faut, j’irais voir ailleurs, notamment du côté de Dotclear 2 qui semble avoir quelques fonctionnalités intéressantes.

7 replies on “moonmoon 0.1.5 beta”

In your post, you mentioned that you were having some problems with SimplePie. I’d be interested to know what they are. SimplePie has already been successfully integrated into several open source projects, and we are willing to help you in any way we can with any issues, bugs, and feature requests.

Hi Ryan, thanks for your interest about moonmoon.

My main concern is the growing size of the library. I guess it means that the project is going well and you’re putting all your efforts in it. But I was looking for a lightweight lib while simplepie.inc almost doubled its filesize in 6 months (I’m wondering now if it’s possible to go lightweight in the feed format jungle).

The second issue is about encoding detection. But it seems that some neat stuff are coming for the next release. Be sure I’ll give it a try.

The last problem I encountered, was my PHP dying without any reason on some feeds. I couldn’t work any more with the current version because of that. I think one of my PHP extension is broken and I’ll investigate about that.

Anyway, SimplePie remains one of the coolest RSS lib in PHP.

Pourquoi ne pas garder le format yaml ?
Quitte à proposer un service de conversion en ligne OPML=>YML

OPML est tellement mal branlé que l’OPML editor propose des convertisseurs d’OPML à OPML.

OPML – the XML format with no friends
minilien.com/?C49Bx6O53d

Maurice, Moonmoon is very nice & does pretty much exactly what I was looking to do. Thanks for creating it! Quick question for you, I usually work in ASP and haven’t done much with PHP. I’d like to display the feed image to the left of each item. I took a look at SimplePie’s documentation. It looks like I can get the feed image via SimplePie’s get_image_url() (returns FALSE if there is no image). The question is, where should I put the code in MoonMoon to get_image_url() for each feed and then tuck it into a variable that I can disply in the template file? I’d appeciate it if you could either point me in the right direction or even rough out some code for me.

Finally, when are you planning to upgrade MoonMoon to use the latest SimplePie? Can I make a donation to you to help advance the project?

pgrand: for the moment, moonmoon doesn’t use simplepie objects so feed images are not available in the template file.
You can alter the loadFeeds method to load feed images so you can use them in your template.
When moonmoon will use the new Simplepie (which works in an object-oriented way), any Simplepie item method will be available in templates.

About donation, my Paypal account is maurice@svay.com.

Maurice, thanks. I’ve now done a good bit of modification to my version of moonmoon. I’ve hard-coded the config to eliminate the config file & the SPYC class to parse it, and I’m loading the list of feeds from a SQL server instead of the opml file so that I can add / edit feeds from a webpage. Performance is an issue, and I’m going to be tackling that next. I’d like to ideally load the feeds list only once and populate a session variable to avoid further SQL calls. I also plan to add paging (e.g. go to previous next N posts) & the ability to load feeds from a given date. Will updating to the current version of simplepie hurt or help performance?

Paul

Comments are closed.