Image 01
profile-image

Sword2

Marlon Rodriguez
Plasma Comic Sources
test
Looking for Group (en)

Plasma Comic Sources 2 comments

Score 58.0%
Apr 06 2016
Yeah it wont work since it's a different package altogether. You have to uninstall the previous one, close the settings window, then install it after that. I cant remember if I had to reboot the machine(or close the comics plasmoid) before installing the new version. - Apr 08 2011
Pearls Before Swine

Plasma Comic Sources 7 comments

by s2r2
Score 50.0%
Mar 17 2009
Sorry, I left the print command on the previous one...

--- main.es 2009-03-17 06:24:39.000000000 -0500
+++ main.es 2009-12-08 13:20:29.000000000 -0600
@@ -49,7 +49,7 @@
}
}
if ( id == comic.Page ) {
- const expImage = new RegExp( "<img src=\"(http://assets.comics.com/dyn/str_strip/(\\d+/)+\\d+\\.full[^\"]+)\"" );
+ const expImage = new RegExp( "<img src=\"(http://([^\/]+)/dyn/str_strip/[^\.]+\.full[^\"]+)\"" );
const matchImage = expImage.exec( data );
if ( matchImage != null ) {
comic.requestPage( matchImage[1], comic.Image );
@@ -57,7 +57,14 @@
comic.error();
}

- const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
+ //Alternate Text
+ re = new RegExp("class=\"STR_StripImage\" title=\"([^\"]+)\"");
+ match = re.exec(data);
+ if (match != null) {
+ comic.additionalText = match[1];
+ }
+
+ const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
const matchPrev = expPrev.exec( data );
if ( matchPrev != null ) {
comic.previousIdentifier = date.fromString( matchPrev[1], date.ISODate );
- Dec 08 2009
Since the title has already the name of the comic from the .desktop file I changed it to put the title of the strip and the date on the "alternate text" popup with this patch:

--- main.es 2009-03-17 06:24:39.000000000 -0500
+++ main.es 2009-12-08 13:11:16.000000000 -0600
@@ -49,7 +49,7 @@
}
}
if ( id == comic.Page ) {
- const expImage = new RegExp( "<img src=\"(http://assets.comics.com/dyn/str_strip/(\\d+/)+\\d+\\.full[^\"]+)\"" );
+ const expImage = new RegExp( "<img src=\"(http://([^\/]+)/dyn/str_strip/[^\.]+\.full[^\"]+)\"" );
const matchImage = expImage.exec( data );
if ( matchImage != null ) {
comic.requestPage( matchImage[1], comic.Image );
@@ -57,7 +57,15 @@
comic.error();
}

- const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
+ //Alternate Text
+ re = new RegExp("class=\"STR_StripImage\" title=\"([^\"]+)\"");
+ match = re.exec(data);
+ if (match != null) {
+ comic.additionalText = match[1];
+ print(comic.additionalText);
+ }
+
+ const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
const matchPrev = expPrev.exec( data );
if ( matchPrev != null ) {
comic.previousIdentifier = date.fromString( matchPrev[1], date.ISODate );
- Dec 08 2009
I fixed the file main.es to make it work...
Follows the patch hopefully it will show correctly...

--- main.es 2009-03-17 06:24:39.000000000 -0500
+++ main.es 2009-12-08 12:37:27.895469170 -0600
@@ -49,7 +49,7 @@
}
}
if ( id == comic.Page ) {
- const expImage = new RegExp( "<img src=\"(http://assets.comics.com/dyn/str_strip/(\\d+/)+\\d+\\.full[^\"]+)\"" );
+ const expImage = new RegExp( "<img src=\"(http://([^\/]+)/dyn/str_strip/[^\.]+\.full[^\"]+)\"" );
const matchImage = expImage.exec( data );
if ( matchImage != null ) {
comic.requestPage( matchImage[1], comic.Image );
@@ -57,7 +57,14 @@
comic.error();
}

- const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
+ //title
+ re = new RegExp("class=\"STR_StripImage\" title=\"([^\"]+)\"");
+ match = re.exec(data);
+ if (match != null) {
+ comic.title = match[1];
+ }
+
+ const expPrev = new RegExp( "Link_Previous: '/pearls_before_swine/(\\d{4}-\\d{2}-\\d{2})/'" );
const matchPrev = expPrev.exec( data );
if ( matchPrev != null ) {
comic.previousIdentifier = date.fromString( matchPrev[1], date.ISODate );

- Dec 08 2009