Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
Old 04-30-2006, 06:23 AM   #1
Schmickers
Junior Member
Schmickers began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2006
Device: Tungsten E
Question Sunrise XP Link Rewriting for Webcomic

I have a question about link rewriting.

I want to download an RSS feed for a webcomic, Ctrl+Alt+Del. The RSS feed links to both news items and comic pages. The comic page links, from the XML page of the RSS feed, are in the format:

http://cad-comic.com/comic.php?d=2006-04-29

When the actual link is follow, though, it appears as:

http://cad-comic.com/comic.php?d=20060429

...in the location bar of the browser.

On each of these pages, the comic is a JPG image, with the link:

http://cad-comic.com/comics/20060429.jpg

What I want to do is re-write the RSS feed links to point directly to the jpg images, rather than the entire page, which contains a heap of formatting and graphics and has no printable/PDA version. I've tried...

(.*)/comic\.php?d=(.*)-(.*)-(.*)

...rewritten into...

$1/comics/$2$3$4.jpg

And also...

(.*)/comic\.php?d=(.*)

...rewritten into...

$1/comics/$2.jpg

...and neither seem to work. They still link to the full pages. Any suggestions? Does Sunrise XP support rewriting URL links to direct image links?

I am using Sunrise XP Beta 9f.
Schmickers is offline  
Old 04-30-2006, 06:44 AM   #2
Laurens
Jah Blessed
Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.
 
Laurens's Avatar
 
Posts: 1,295
Karma: 1373
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
You need to escape the question mark as well:

(.*)/comic\.php\?d=(.*)-(.*)-(.*)
Laurens is offline  
Advert
Old 04-30-2006, 10:32 AM   #3
Schmickers
Junior Member
Schmickers began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2006
Device: Tungsten E
Ah - awesome. Thanks for the prompt reply, Laurens. This is an awesome piece of software you have here - as far as I'm concerned, it is the most essential piece of software I have on my PDA. And that includes Calendar! *grin*
Schmickers is offline  
 


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware Update 2.3.3 download link? kaiynne Amazon Kindle 14 07-30-2010 11:33 AM
Apple Censors 'Ulysses' Webcomic, Fails to See Irony of Situation m-reader General Discussions 95 06-28-2010 05:26 AM
A Question about a Link patrisha w Amazon Kindle 2 02-21-2009 05:16 PM
the feed only contains a link ... alexxxm Calibre 7 02-18-2009 08:43 AM


All times are GMT -4. The time now is 03:01 AM.


MobileRead.com is a privately owned, operated and funded community.