Esto es importantisimo (es)

Plasma Comic Sources

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

2
Become a Fan
5.0

Description:
Last changelog:

* Add icon
* Get the comic title


Ratings & Comments

3 Comments

aldobelus

Hola. Supongo que ha pasado mucho tiempo y quizá nadie responda pero, por si acaso, Manel Fontdevila ha cambiado de periódico. Ahora dibuja para eldiario.es. Esta es la dirección: http://www.eldiario.es/autores/manel_fontdevila/ Es una pena que se haya desconfigurado. No soy tan manitas como el compañero de este hilo, que ha cambiado el código con otra dirección. Sin embargo, me gustan los dibujos de Manel. Sería genial si pudieras ponerlo a funcionar de nuevo. Un saludo. Que vaya bien...

osado

He hecho parte de las modificaciones indicadas en el post anterior, más la siguiente: // getting the image re = new RegExp("<p><img class=\"[^\"]+\" src=\"([^\"]+)\""); ¿Estos de Público cambian frecuentemente? Además, diría que no funciona el histórico, pero bueno, eso ya es un poco secundario. Saludos y Feliz Año Nuevo

lordt

Ha dejado de funcionar. Lo he arreglado modificando así el código de tu script:

var infos = {
  "accept": "text/html, image/jpeg, image/png, text/*, image/*, */*",
  "referrer": "http://blogs.publico.es/manel/"
}

function init()
{
    comic.comicAuthor = "Manel Fontdevila";
    comic.firstIdentifier = "2009/01/02";
    comic.websiteUrl = "http://blogs.publico.es/manel/date/" + comic.identifier.toString("yyyy/MM/dd/");
    comic.requestPage( comic.websiteUrl, comic.Page, infos );
}

function pageRetrieved(id, data)
{
    if ( id == comic.Page ) {
      // getting the title
      var re = new RegExp("<h3 class=\"storytitle\"><a href=\"[^\"]+\" rel=\"bookmark\">([^<]+)</a></h3>");
      var match = re.exec( data );
      if (match != null) {
        comic.title = match[1];
      }

      // getting the image
      re = new RegExp("<p><img src=\"(http://blogs.publico.es/manel/files/[^\"]+)\"");
      match = re.exec( data );

      if (match != null) {
        var urlImg = match[1];
        comic.requestPage( urlImg, comic.Image, infos );
      } else {
        re = new RegExp("<p><img class=\"[^\"]+\" src=\"(http://blogs.publico.es/manel/files/[^\"]+)\"");
        match = re.exec( data );
        if (match != null) {
          var urlImg = match[1];
          comic.requestPage( urlImg, comic.Image, infos );
        } else {
          comic.error();
        }
      }
    }
}

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Plasma Comic Sources:

EL Mundo de Joe
hompis
last update date: 15 years ago

Score 5.0

el joven lovecraft
2cats
last update date: 16 years ago

Score 5.0

Everybody loves Eric Raymond
lordt
last update date: 15 years ago

Score 5.7

Gunnerkrigg Court
konny77
last update date: 14 years ago

Score 4.7

Good Times Comics (en)
mfuchs
last update date: 16 years ago

Score 5.0

Tira Ecol (en)
mfuchs
last update date: 16 years ago

Score 5.0