JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #61  
Old 27.02.2020, 11:15
RPNet-user RPNet-user is offline
JD Addict
 
Join Date: Apr 2017
Posts: 169
Default

Quote:
Originally Posted by mgpai View Post
Context menu command scripts which query 'selected links' cannot be executed by clicking the 'test run' button. It can only be run by clicking the corresponding 'custom' eventscripter trigger button with the matching 'name' in the context menu.

Do you want to export only the selected links or all links from the list? If it is the latter I can provide a different script which can be executed by clicking test run or a custom toobar button.
Yes the latter one(all links).
Reply With Quote
  #62  
Old 27.02.2020, 11:48
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 919
Default

Quote:
Originally Posted by RPNet-user View Post
Yes the latter one(all links).
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);
}
Reply With Quote
  #63  
Old 27.02.2020, 12:58
RPNet-user RPNet-user is offline
JD Addict
 
Join Date: Apr 2017
Posts: 169
Default

mgpai, thanks, it works perfectly.

When i create a custom toolbar button, this should work as well correct?
Reply With Quote
  #64  
Old 27.02.2020, 13:13
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 919
Default

Quote:
Originally Posted by RPNet-user View Post
When i create a custom toolbar button, this should work as well correct?
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
    }
}
Reply With Quote
  #65  
Old 27.02.2020, 16:56
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 53,757
Default

Quote:
Originally Posted by RPNet-user View Post
You mentioned earlier in this post that you restored an old plugin functionality to grab thumbnails, can the plugin be made to grab the thumbnails cover poster instead of the video-screencaps?
Added "video poster covers".
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
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || 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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #66  
Old 28.02.2020, 01:59
RPNet-user RPNet-user is offline
JD Addict
 
Join Date: Apr 2017
Posts: 169
Default

Thank you mgpai, psp, raztoki, and tony.

It is much appreciated; your entire support team here is beyond awesome.
Reply With Quote
  #67  
Old 28.02.2020, 02:43
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,183
Default

most welcome
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #68  
Old 02.03.2020, 16:24
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 53,757
Default

Thanks for your nice feedback

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || 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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #69  
Old 09.03.2020, 18:31
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 53,757
Default

Quote:
Originally Posted by pspzockerscene View Post
Now regarding your observations / bugreport:
Indeed the "Filter" rule somehow also filters out two video-type URLs.
I was able to reproduce this and I've created a ticket:


I was unable to find a way around this bug so you will have to use the "View" and simply permanently leave it disabled.
We've done some interesting bughunting and the bug was indeed not in the filter system - it was in the crawler plugin.
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
How to create a log || Wie man einen Log erstellt
Captcha FAQ EN || Captcha FAQ DE || 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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
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 02:05.
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 - 2020, Jelsoft Enterprises Ltd.