Hot-Honeys



.

Author Topic: Imagetwist broken  (Read 4009 times)

0 Members and 1 Guest are viewing this topic.

Offline datboi

  • Newbie
  • *
  • Joined: Jun 2016
  • Posts: 3
  • Reputation: 0
  • Gender: Male
Imagetwist broken
« on: June 21, 2016, 07:06 pm »
Hi.
For the past few days I haven't been able to download anything from imagetwist.com. Perhaps it has something to do with changed img tag attributes, I reviewed the source code of a few hosted images and noticed the attributes within the target image's tag don't match what's specified in the IMG's code (there are now a few more attributes in imagetwist's pictures in a different order).

Can this be fixed?
I'm using Palemoon Portable 26.3.0 with ImageHostGrabber 1.7.0.3

Offline artfulbodger

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: Northern Hemisphere
  • Posts: 146
  • Reputation: 14
Re: Imagetwist broken
« Reply #1 on: June 21, 2016, 07:56 pm »
Hi datboi and welcome to the forum. Please post a link to the site / page / set / images that IHG doesn't work on.

Offline datboi

  • Newbie
  • *
  • Joined: Jun 2016
  • Posts: 3
  • Reputation: 0
  • Gender: Male
Re: Imagetwist broken
« Reply #2 on: June 21, 2016, 08:25 pm »
Thanks.
Here's an example containing four NSFW images:

Code: [Select]
http://www.planetsuzy.org/showpost.php?p=10419263&postcount=3

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 584
  • Images: 653
  • Reputation: 25
  • Gender: Male
Re: Imagetwist broken
« Reply #3 on: June 21, 2016, 08:47 pm »
Try this:

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

Label: imagetwist

Type: update

URL Pattern:

Code: [Select]
http:\/\/(?:www\.)?imagetwist\.com\/.+\/.+
Search Pattern:

Code: [Select]
function(pageData, pageUrl) {
var iUrl = pageData.match(/src="(.+?)" class="pic.+?" alt=".+?"/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
}

Offline Megaboost

  • Newbie
  • *
  • Joined: Jun 2016
  • Posts: 1
  • Reputation: 0
  • Gender: Male
  • "Keeping it Real"
    • Megas Portal
Re: Imagetwist broken
« Reply #4 on: June 21, 2016, 09:40 pm »
That worked a treet SenileDog,  :thumbsup:

Offline artfulbodger

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: Northern Hemisphere
  • Posts: 146
  • Reputation: 14
Re: Imagetwist broken
« Reply #5 on: June 21, 2016, 10:04 pm »
Hi Megaboost welcome to the forum. Thank you for taking the time and trouble to reply to this topic - and to say thank you.

Everyone on the forum gives their time and expertise for free. A thank you is always appreciated - cuz that's all the coders ever get!

And we're lucky to have them, so it's a thank you from me as well.

Offline datboi

  • Newbie
  • *
  • Joined: Jun 2016
  • Posts: 3
  • Reputation: 0
  • Gender: Male
Re: Imagetwist broken
« Reply #6 on: June 21, 2016, 10:24 pm »
The new code worked. Thank you artfulbodger and SenileDog.

Offline smaldini

  • Newbie
  • *
  • Joined: Apr 2016
  • Posts: 9
  • Reputation: 0
Re: Imagetwist broken
« Reply #7 on: June 22, 2016, 05:33 am »
thanks, works for me too on another gallery.

Offline artfulbodger

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: Northern Hemisphere
  • Posts: 146
  • Reputation: 14
Re: Imagetwist broken
« Reply #8 on: June 24, 2016, 03:45 pm »
It's another thank you SD, came across an imagetwist gallery that didn't work - your solution fixed it. Ta.

Offline Mike

  • Newbie
  • *
  • Joined: Jun 2016
  • Posts: 8
  • Reputation: 0
  • Gender: Male
Re: Imagetwist broken
« Reply #9 on: June 29, 2016, 09:24 am »
The new code is working, but the original image names which are given in the "alt" tag are not used anymore. I have added them in the following code:

Search Pattern:
Code: [Select]
function(pageData, pageUrl) {
var iUrl = pageData.match(/src="(.+?)" class="pic.+?" alt="(.+?)"/);
return iUrl ? {imgUrl: iUrl[1], fileName: iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"}
}


Here is the old code for comparison:
Search Pattern:
Code: [Select]
function(pageData, pageUrl) {
var retVal = {};

var iUrl = pageData.match(/<img src="([^"]+)" class="pic" alt="([^"]+)"/);

if (!iUrl) {
retVal.imgUrl = null;
retVal.status = "ABORT";
}
else {
retVal.imgUrl = iUrl[1];
retVal.status = "OK";
retVal.fileName = iUrl[2];
}

return retVal;
}

The problem with this old code is that imagetwist has changed the class tag from "pic" to "pic img img-responsive".

Example image page here: http://imagetwist.com/fvnh73d1tggf/81540006_094.jpg

Offline sexylauren

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: us
  • Posts: 13
  • Reputation: 0
  • Gender: Female
Re: Imagetwist broken
« Reply #10 on: July 01, 2016, 01:15 am »
Aloha

I too have had issues with imagetwist.  I am not really a code person.  I read the code but do not understand where and how to type the commands to make it work.   this is a sample url that does not work.

http://www.nudecelebforum.com/showpost.php?p=949021&postcount=329

do I open the xpi file and over type the code there with what is in this post to make it work?

thanks for all your hard work and sharing.

lauren

Offline SenileDog

  • Moderator
  • *****
  • Joined: Apr 2016
  • Location: US West Coast
  • Posts: 584
  • Images: 653
  • Reputation: 25
  • Gender: Male
Re: Imagetwist broken
« Reply #11 on: July 01, 2016, 01:32 am »
Mahalo, Aloha Po! sorry not shaka smiley  :)

This is what you do:

right-click in your browser > ImageHostGrabber > Host File Editor

Select Host > Imagetwist

copy and paste URL Pattern and Search Pattern

Click on Save Changes

then like me, you will be able to download 70 pics from http://www.nudecelebforum.com/showpost.php?p=949021&postcount=329

Ask again if it not working for you.

Cheers, SD

Offline sexylauren

  • Newbie
  • *
  • Joined: Jun 2016
  • Location: us
  • Posts: 13
  • Reputation: 0
  • Gender: Female
Re: Imagetwist broken
« Reply #12 on: July 01, 2016, 11:55 pm »
SD

THANKS!!!   For your time and your simple clear directions.  If you are in the US...HAPPY 4th!!!

lauren

Offline Jetsetter

  • Newbie
  • *
  • Joined: Jul 2016
  • Posts: 3
  • Reputation: 0
Re: Imagetwist broken
« Reply #13 on: July 02, 2016, 09:40 am »
Hello everyone,
here's a new newbie.
Sorry, I can't write code for my life :blush: so I won't be helpful.
Just signed up in this forum to say:
- a very good extension, this IHG (I'm using 1.7.0.3 version on Palemoon 26.2.2 )
- the update for imagetwist works.
Thanks, coders!  :thumbsup:

Offline airscrew

  • Newbie
  • *
  • Joined: May 2016
  • Location: England
  • Posts: 7
  • Reputation: 0
  • Gender: Male
Re: Imagetwist broken
« Reply #14 on: July 08, 2016, 05:11 pm »
I just want to thank Mike for this solution.  I've missed some good posts that have been uploaded to Imagetwist.  I couldn't even get the zip file for this one as you have to be a paid up member.
Here's the thread.  http://kitty-kats.net/threads/divina-a-daydream-x125-3744x5616.2426504/