1. Are the Previous/NextRedirectUrl attributes related to the PublisherUrl attribute? i.e. RedirectUrl gets stuck on the end of the PublisherUrl.
Comica looks at the page/site specified by the LatestComicUrl
attribute and then performs a search using Previous
within that returned page.
2. Is there an easy way to figure out what the index number of a given link is?
While it needs re-designing, you can use the Developer's Log within Comica for this. Press Ctrl+L to open the log and then click on the Developers tab at the top of the newly-opened window.
If you then try downloading a comic, you'll get a dump of information on the process. Each entry on the top-right of the window will have a number in square brackets prefixing it to show you its index.
In your specific case, you're interested in looking at the RedirectUrls
item that's in list on the left of the window.
3. Can you recomend a guide to the regular expresions used by Comica? I have a passing knoledge of regex but not enough to code Comica definitions.
I used these two sites to help at the beginning:
Regular Expressions Guide: Regular-Expressions.info
Regular Expressions Testing: RegExPal.com
Recently though I've been using the Comica Editor (as yet unfinished/unreleased) as it makes the process much easier/quicker. It should
be released with Comica v1.12.
There is something I should mention here...
Yesterday I greatly simplified the regex for almost all the comics in the database. While they're still regex as normal, they now are simple "contains" expressions. For example, most entries used to test for a file extension or a specific path, similar to this:
Code: Select all
But now I've changed them to be like this:
The reason being, most sites only place actual comic images within the comics/ directory, so it seemed pointless using a more complex expression (that tests for a date, etc) when just a simple directory match would work. This has the added bonus of being more flexible; comic authors can rename comics, etc, and it should work as they'll most likely keep the comic within its comics/ directory.
I've simplified almost all comic definitions down to this style. No regex unless required (to reduce multiple/false matches). They're essentially "does this Url contain
this string; if so, matched".
* Of course not all comics use "/comics/" - this is just an example of a site that does. Others might use "/uploads/strips/", etc.