Femjoy Davina E - Impress Me - 79 pictures - 4000px (30 Mar, 2015)

timw

Member
Does anyone know the new code for imagehostgrabber to access imgspice? I can't get anything from imgspice now.
Edit your hostf.xml file and replace the existing imgspice entry with this.


<host id="imgspice.com">
<urlpattern>^https?:\/\/([^/]+\.)?imgspice\.com\/[a-z\d]+\/[^/]+\.html</urlpattern>
<searchpattern><![CDATA[function(pageData, pageUrl) {
var retVal = {imgUrl: null, fileName: null, status: "ABORT"};
// Search for <img ... id="imgpreview" ... />
var iTag = (pageData.match(/<img\b[^>]*?\bid\s*=\s*('|")imgpreview\1[^>]*?>/i)||[])[0];
// Fallback: Search for <img ... onclick ... >
if (!iTag) iTag = (pageData.match(/<img\b[^>]*?\bonclick[^>]*?>/i)||[])[0];
if (iTag) {
var iUrl = (iTag.match(/\bsrc\s*=\s*('|")(.*?)\1/i)||[])[2];
if (iUrl) {
retVal.imgUrl = iUrl;
retVal.status = "OK";
// Get original filename from alt attribute
var iName = (iTag.match(/\balt\s*=\s*('|")(.*?)\1/i)||[])[2];
// Fallback: Get original filename from url
if (!iName) iName = (pageUrl.match(/\/([^/]*)\.html/i)||[])[1];
if (iName) retVal.fileName = iName;
}
}
return retVal;
}
]]></searchpattern>
</host>
 
Top