JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 03.03.2025, 21:31
wkearney99 wkearney99 is offline
Wind Gust
 
Join Date: May 2024
Posts: 41
Default Logging source URL?

Is there a way to have JD save the source URL used for a Ctrl-L analyze link crawl?

I'd like to save a separate document in the same folder as the package being created.

I'm assuming this might be something best done in an Event Script?

I just don't know which trigger to use, or where to find the source URL.

Is there a trigger that happens once a link analysis completes? And could it create a text document in the Download Destination folder?

As in, Ctrl-L, give it a package name and desired save location "c:\some\folder\<jd:packagename>"

Once the linkgrabber completes for that source, save a text document with the source URL in it.
Reply With Quote
  #2  
Old 04.03.2025, 08:58
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 74,768
Default

You can view the source URL in GUI as explained here:
https://support.jdownloader.org/know...iew-added-urls

You should be able to write a script that writes into a separate text-file.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 19.03.2025, 12:47
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,692
Default

Code:
/*
    save origin urls
    trigger : package finished
*/

var file = package.downloadFolder + "/origin_urls.htm";
var cur = "";

try {
    cur = readFile(file);
} catch (e) {};

package.downloadLinks.forEach(function(item) {
    var url = item.originURL;
    var a = "<a href=" + url + ">" + url + "</a><br>";
    url && cur.indexOf(a) == -1 && (cur += a) && writeFile(file, a, true);
})
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:15.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.