Hi!
I use Text_Wiki package to parse database of polish wikipedia. I need some information about commons, i.e.: i've got something like that: [[Image:Violin case.jpg|thumb|right|200px|Skrzypce w futerale|]] and i wanna link it to: http://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Violin_case.jpg/200.... What I need is the unknown part of url string: "/c/c0/", how could I establish it? I've been looking for any data quering wiki's database, but i don't see useful information, unfortunately.
Those are the first two characters from the MD5 hash of the name, take a look at includes/Image.php.
-- [[cs:User:Mormegil | Petr Kadlec]]