Garfield (en)

Plasma Comic Sources

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
Score 88%
Description:

Garfield plugin for plasma comic.

nece228

4 years ago

it no longer works, it just keeps displaying same garfield avatar image, altough if i go to website i can see new comics coming. probably some website change. could anyone fix this?

Report

jprofesorek2

4 years ago

Here's a working patch for that.

====================================
% diff -Naur .kde4/share/apps/plasma/comics/garfield/contents/code/main.es.orig .kde4/share/apps/plasma/comics/garfield/contents/code/main.es
--- .kde4/share/apps/plasma/comics/garfield/contents/code/main.es.orig 2014-05-27 17:00:46.000000000 +0200
+++ .kde4/share/apps/plasma/comics/garfield/contents/code/main.es 2014-05-27 17:11:46.000000000 +0200
@@ -76,7 +76,7 @@
comic.previousIdentifier = date.fromString(match[1], "yyyy/MM/dd");
}

- exp = new RegExp("class=\"strip\" src=\"([^\"]+)\\?width[^\"]+\"");
+ exp = new RegExp("class=\"strip\" src=\"([^\"]+)\" />");
match = exp.exec(data);
if (match != null) {
comic.requestPage(match[1], comic.Image, infos);
====================================

Is there an issue tracker? bug list? review board? Anything on this page to report such fixes?

Report

C

mfuchs

4 years ago

Thanks for the patch. :)

I slightly modified it and now both old and new strips should work again.

Report

mfraser

8 years ago

When I first installed the Garfield comic strip it worked on Sundays, but recently it has stopped displaying them.
Any ideas?

Report

oldium

8 years ago

The file extension have changed to jpg since 2011 on Sundays. Go to .kde/share/apps/plasma/comics/garfield/contents/code/main.es and edit fileName assignment in the getComic() method:

var extension = ".gif";
if (comic.identifier.year() >= 2011 && comic.identifier.dayOfWeek() == 7)
extension = ".jpg";
var fileName = "ga" + comic.identifier.toString("yyMMdd") + extension;

Report

mfraser

8 years ago

Thanks,
That now works.

Report

oldium

8 years ago

Latest version works, you just need to update via "Get new comics" for "Installed" ones.

Report

mfraser

8 years ago

Actually, it displays the Sunday comic strip up to the 26/12/2010. After that date it displays other weekdays, but not Sundays.

Report

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.6
updated Apr 11 2018
added Oct 28 2008
downloads today
13
page views today 4