#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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 |
#3
|
|||
|
|||
![]() 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); }) |
![]() |
Thread Tools | |
Display Modes | |
|
|