Garfield [eng]

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
4.6
Description:

Garfield plugin for plasma comic.
Last changelog:

1.7 1 year ago

Use HTTPS

nece228

7 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

7 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

7 years ago

Thanks for the patch. :)

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

Report

mfraser

10 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

10 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

10 years ago

Thanks,
That now works.

Report

oldium

10 years ago

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

Report

mfraser

10 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

1.7 1 year ago

Use HTTPS

12345678910
41
product-maker lost Jun 20 2011 9 excellent
product-maker SylviaGO Dec 17 2010 3 bad
product-maker xulien Oct 14 2010 3 bad
product-maker auratux Oct 13 2010 3 bad
product-maker ducvuanh Sep 24 2010 3 bad
Be the first to comment
drdanz
Mar 31 2010
auratux
Feb 26 2010
rezzabuh
Jan 27 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.7
updated Sep 24 2019
added Oct 28 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2