#1
|
||||
|
||||
How to pass information from a decrypter to another decrypter plugin?
How to pass information from a decrypter to another decrypter plugin?
Sometimes we need to pass filename to another decrypter plugin. Error: The method getStringProperty(String, null) is undefined for the type CryptedLink
__________________
FAQ: How to upload a Log |
#2
|
||||
|
||||
CrawledLink source = getCurrentLink();
if (source != null) { source.get...
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
Thanks, raztoki, but it still get error:
The method getStringProperty(String, null) is undefined for the type CrawledLink The method getFinalFileName() is undefined for the type CrawledLink
__________________
FAQ: How to upload a Log |
#4
|
||||
|
||||
getDownloadLink first? everything is within DownloadLink for memory and not CrawledLink
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#5
|
||||
|
||||
CrawledLink source = getCurrentLink();
if (source != null) { DownloadLink link = source.getDownloadLink(); // This gives link == null if (link != null) { String filename = link.getStringProperty("filename", null); logger.info("filename: " + filename); } }
__________________
FAQ: How to upload a Log |
#6
|
||||
|
||||
@Jiaz,
Can you help this? Thanks.
__________________
FAQ: How to upload a Log |
#7
|
||||
|
||||
Please contact me via support@jdownloader.org and explain what you want to do/maybe provide example links/code?
__________________
JD-Dev & Server-Admin |
#8
|
||||
|
||||
@Jiaz,
I had sent an email yesterday. Thanks.
__________________
FAQ: How to upload a Log |
#9
|
||||
|
||||
I've responded to your mail but not checked for new answers yet
__________________
JD-Dev & Server-Admin |
#10
|
||||
|
||||
Wait for next Core Update. You can then call CryptedLink.getDownloadLink to get source of the current CryptedLink to process. You can store/read properties that way. You have to check getDownloadLink != null !
__________________
JD-Dev & Server-Admin |
#11
|
||||
|
||||
Thanks, Jiaz.
For the record: See Revision 43201 (and 43203). 1st decrypter: final DownloadLink downloadLink = createDownloadlink(url); if (!StringUtils.isEmpty(name)) { downloadLink.setProperty("file_name", name); } 2nd decrypter: String name = param.getDownloadLink() != null ? param.getDownloadLink().getStringProperty("file_name", null) : null;
__________________
FAQ: How to upload a Log |
Thread Tools | |
Display Modes | |
|
|