Hot-Honeys



.

Author Topic: The Atlantic  (Read 81 times)

0 Members and 1 Guest are viewing this topic.

Offline lavidanovalenada

  • Newbie
  • *
  • Joined: Jan 2017
  • Posts: 2
  • Reputation: 0
The Atlantic
« on: January 08, 2017, 08:41 pm »
Hi

From a past few weeks i can't no longer use IHG o site http://www.theatlantic.com/photo
IHG worked perfectly since 2015, but recently they have made some changes on the site i guess.
Right now after starting IHG, this "alert" appears:
No images or links supported by ImageHost Grabber have been found.

Can anybody help and update search pattern, url pattern or else  :huh:
Here are the data which were made by (i think) Rookie in 2015:

url pattern:

Code: [Select]
^http:\/\/www\.theatlantic\.com\/photo\/.+\/#img\d+$
search pattern:

Code: [Select]
function(pageData, pageUrl) {
var tmp = pageUrl.replace(/^http:.+?(?=\/photo\/)/,'').replace(/\//g,'\\\/');
if (tmp) var link = pageData.match(new RegExp("<a[^>]+?data-share-url=\"" + tmp+ "\"[^]+?>"));
if (link) var iUrl = link.toString().match(/data-share-image="([^"]+)"/);

return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"};
}

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 584
  • Images: 653
  • Reputation: 25
  • Gender: Male
Re: The Atlantic
« Reply #1 on: January 08, 2017, 09:07 pm »
Minor fix, try this:

Topic: http://hot-honeys.com/index.php?topic=5501.0

Label: theatlantic

Type: update

URL Pattern:

Code: [Select]
^https?:\/\/www\.theatlantic\.com\/photo\/.+\/#img\d+$
Search Pattern:

Code: [Select]
function(pageData, pageUrl) {
var tmp = pageUrl.replace(/^https?:.+?(?=\/photo\/)/,'').replace(/\//g,'\\\/');
if (tmp) var link = pageData.match(new RegExp("<a[^>]+?data-share-url=\"" + tmp+ "\"[^]+?>"));
if (link) var iUrl = link.toString().match(/data-share-image="([^"]+)"/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"};
}



Offline lavidanovalenada

  • Newbie
  • *
  • Joined: Jan 2017
  • Posts: 2
  • Reputation: 0
Re: The Atlantic
« Reply #2 on: January 09, 2017, 06:51 pm »
man, you are great  :)
thanks for that fix, everything works perfect right now
i must donate you or something  :thumbsup: