#61
|
||||
|
||||
Quote:
|
#62
|
|||
|
|||
Code:
// Export linkgrabber links // Trigger: None (Click 'Test Run' button to execute) var exportFolder = JD_HOME + "/auto/export/"; // <- Folder for exporting the text files var now = new Date().toString().substring(4, 24).replace(/:/g, "."); // <- Timestamp used in file name var exportFile = now + " - lingkrabber links.txt"; // <- Filename for exporting the URLs var urls = []; getAllCrawledLinks().forEach(function(link) { var fileName = link.getName(); var downloadURL = link.getContentURL(); urls.push(downloadURL + "," + fileName); }) if (urls.length) { if (!getPath(exportFolder).exists()) getPath(exportFolder).mkdirs(); writeFile(exportFolder + exportFile, urls.join("\r\n"), true); } |
#63
|
||||
|
||||
mgpai, thanks, it works perfectly.
When i create a custom toolbar button, this should work as well correct? |
#64
|
|||
|
|||
Quote:
Code:
// Export linkgrabber links on button pressed // Trigger: Amy toolbar/context menu button pressed trigger if (name == "Export linkgrabber links") { var exportFolder = JD_HOME + "/auto/export/"; // <- Folder for exporting the text files var now = new Date().toString().substring(4, 24).replace(/:/g, "."); // <- Timestamp used in file name var exportFile = now + " - lingkrabber links.txt"; // <- Filename for exporting the URLs var myWavFile = JD_HOME + "/themes/standard/org/jdownloader/sounds/captcha.wav"; // path to 'wav' file var urls = []; getAllCrawledLinks().forEach(function(link) { var fileName = link.getName(); var downloadURL = link.getContentURL(); urls.push(downloadURL + "," + fileName); }) if (urls.length) { if (!getPath(exportFolder).exists()) getPath(exportFolder).mkdirs(); writeFile(exportFolder + exportFile, urls.join("\r\n"), true); //playWavAudio(myWavFile); // Uncomment this line to play sound file after file is created } } |
#65
|
||||
|
||||
Quote:
If you do not want to have the screencaps, make a filter/view to exclude them. Wartest du auf einen angekündigten Bugfix oder ein neues Feature? Updates werden nicht immer sofort bereitgestellt! Bitte lies unser Update FAQ! | Please read our Update FAQ! --- Are you waiting for recently announced changes to get released? Updates to not necessarily get released immediately! Bitte lies unser Update FAQ! | Please read our Update FAQ! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#66
|
||||
|
||||
Thank you mgpai, psp, raztoki, and tony.
It is much appreciated; your entire support team here is beyond awesome. |
#67
|
||||
|
||||
most welcome
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#68
|
||||
|
||||
Thanks for your nice feedback
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#69
|
||||
|
||||
Quote:
It returned multiple newline separated items as one which then resulted in this strange behavior. This bug will be fixed via the next update! Huge thanks to Jiaz who helped me finding this! Wartest du auf einen angekündigten Bugfix oder ein neues Feature? Updates werden nicht immer sofort bereitgestellt! Bitte lies unser Update FAQ! | Please read our Update FAQ! --- Are you waiting for recently announced changes to get released? Updates to not necessarily get released immediately! Bitte lies unser Update FAQ! | Please read our Update FAQ! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|