View Single Post
Old April 6th, 2017, 11:59 AM   #2010
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,136
Thanks: 226,731
Thanked 356,785 Times in 21,631 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Quote:
Originally Posted by teodz1984 View Post
Did you ammend the section with the ff:

URL Pattern: ^https?:\/\/(?:image\.|www\.)?pimpandhost\.com\/image\/.+?$


Search Pattern: function(pageData, pageUrl) {
var iUrl = pageData.match(/img class="normal" src="(https?:\/\/.+?\.(jpe?g|png))"/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
I think what you've quoted there is what's currently provided by IHG, right?

I don't have an amendment that works, that's the problem. What amendment do you suggest one should make to solve this problem? I don't see where in the above to intercede and perform the type of intermediary amendment required--i.e. what I described above: either to
Quote:
Originally Posted by effCup View Post
append "?size=original" to it, or else take the img src link & parse out the trailing "_l".
Or do you perhaps think I've misstated the nature of the problem?

I think the format of the IHG function call doesn't allow one to intercede. The url pattern is for matching the thumb-link in the (vef) post, not for distinguishing between parallel urls on the host site (the reduced or original sizes). The match parses the img src value for the image url, it does not attempt to distinguish between different size images on p&h.
effCup is offline   Reply With Quote
The Following 4 Users Say Thank You to effCup For This Useful Post: