November 3rd, 2023, 08:50 PM | #411 |
Senior Member
Join Date: Oct 2012
Posts: 286
Thanks: 11,825
Thanked 1,535 Times in 222 Posts
|
Did something change again with imagebam?
Neither the latest nor the older codes by beechcott work,while the latest adds them to download but doesn't find the, the older doesn't even add them. Post I have trouble is: http://vintage-erotica-forum.com/sho...&postcount=105 |
The Following 6 Users Say Thank You to nobadguy For This Useful Post: |
November 5th, 2023, 06:29 PM | #412 | |||
Member
Join Date: Jan 2013
Posts: 64
Thanks: 2,030
Thanked 615 Times in 63 Posts
|
Quote:
Quote:
Quote:
ChatGPT is starting to get very finicky when I try to use it to update ImageHost Grabber code. Most of the time, it doesn't work anymore (and for some reason has a very specific glitch in which it thinks that I'm asking questions about terrorism). So I switched to Claude.ai. Claude.ai gave me this new search pattern for Imagebam: Code:
function(pageData, pageUrl) { const imgTag = pageData.match(/<img[^>]*class="main-image"[^>]*>/i); if (imgTag) { const imgSrc = imgTag[0].match(/src="([^"]+)"/i); if (imgSrc) { return { imgUrl: imgSrc[1], fileName: null, // filename not available status: "OK" }; } } return { imgUrl: null, fileName: null, status: "ABORT" }; } UPDATE: Now that new code isn't working either. Then I went back to this code and it's working again: Code:
function(pageData, pageUrl) { let retVal = { imgUrl: null, fileName: null, status: "ABORT" }; // Search for <img ... class="main-image ... > const iTag = pageData.match(/<img\b[^>]*?\bclass\s*=\s*('|")main-image\b[^>]*?>/i); if (iTag) { // Extract the image URL const iUrlMatch = iTag[0].match(/\bsrc\s*=\s*('|")(.*?)\1/i); if (iUrlMatch) { retVal.imgUrl = iUrlMatch[2]; retVal.status = "OK"; // Extract the image filename (using alt attribute) const iNameMatch = iTag[0].match(/\balt\s*=\s*('|")(.*?)\1/i); if (iNameMatch) { retVal.fileName = iNameMatch[2]; } } } return retVal; } Last edited by beechcott; November 5th, 2023 at 11:11 PM.. |
|||
The Following 7 Users Say Thank You to beechcott For This Useful Post: |
December 5th, 2023, 08:43 PM | #413 |
Vintage Member
Join Date: Mar 2016
Posts: 466
Thanks: 11,138
Thanked 10,946 Times in 475 Posts
|
Hey all, I was wondering if anybody has had a problem with Imagehostgrabber's 'select pics on page' coming up blank? The 'get all pics on page' & 'suck the current thread' still work but the 'select pics on page' option isnt. Im using palemoon 28.8.1 & imagehostgrabber 1.7.0.6 Ive never had a problem with this setup until now and Ive been using it for about 3 years....thanks in advance
__________________
My favorite woman of all time... To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
The Following 5 Users Say Thank You to venom6733 For This Useful Post: |
December 20th, 2023, 03:28 PM | #414 |
Vintage Member
Join Date: Feb 2013
Location: Celebes island rain forest
Posts: 8,315
Thanks: 95,772
Thanked 138,818 Times in 8,359 Posts
|
imagevenue file names
Folks:
Thank you for the update on imagevenue files, including the new, "ChatGPT patterns": URL Pattern: ^https?:\/\/.*imagevenue\.com\/.* Search Pattern: <img\s+src="([^"]+)"\s+id="main-image" Now IHG is retrieving the files, and I don't have to use the JDownloader workaround, but I'm getting the "internal" imagevenue file names, not the correct, renamed filenames. For instance, on the Danni test page: http://vintage-erotica-forum.com/sho...postcount=1854 I get: ME170N7T_o.jpg ME170N7U_o.jpg etc. I tried with ticked and unticked "autorename imagevenue and fapomatic files but the result is still the same: files downloaded but correct filenames not downloaded... I use IHG on PaleMoon Any suggestions? |
The Following 5 Users Say Thank You to pcaca For This Useful Post: |
December 20th, 2023, 03:47 PM | #415 |
Vintage Member
Join Date: Jan 2009
Posts: 841
Thanks: 4,463
Thanked 31,626 Times in 839 Posts
|
Re: imagevenue file names
Try replacing the search pattern with this one.
Code:
function(pageData, pageUrl) { var retVal = {imgUrl: null, fileName: null, status: "ABORT"}; // Search for <img ... id="main-image" ... > var iTag = (pageData.match(/<img\b[^>]*?\bid\s*=\s*('|")main-image\1[^>]*?>/i)||[])[0]; if (iTag) { var iUrl = (iTag.match(/\bsrc\s*=\s*('|")(.*?)\1/i)||[])[2]; var iName = (iTag.match(/\balt\s*=\s*('|")(.*?)\1/i)||[])[2]; if (iUrl) { retVal.imgUrl = iUrl; retVal.status = "OK"; if (iName) { // exists and is not empty retVal.fileName = iName; } } } return retVal; } |
The Following 9 Users Say Thank You to dave123 For This Useful Post: |
December 20th, 2023, 04:25 PM | #416 |
Vintage Member
Join Date: Feb 2013
Location: Celebes island rain forest
Posts: 8,315
Thanks: 95,772
Thanked 138,818 Times in 8,359 Posts
|
Last edited by Jazz67; December 20th, 2023 at 06:14 PM.. Reason: trimmed quote |
The Following 7 Users Say Thank You to pcaca For This Useful Post: |
March 7th, 2024, 04:48 AM | #417 |
Member
Join Date: Mar 2009
Posts: 13
Thanks: 71,437
Thanked 29 Times in 4 Posts
|
good day all
i have been having problems with imagefap. i use pale moon and last available ihg. i began getting only the sample pic (edged in click for better resolution) rather than the full pic about a month ago. this issue does not occur on all threads(yet). any updates for the host file? thanks\\lauren |
The Following 4 Users Say Thank You to sexylauren For This Useful Post: |
|
|