#1
|
|||
|
|||
Script error
Hello
Since the last updates, I have this error message for all my scripts : CaptureScriptBugJD.PNG What should I do please ? Thank you in advance |
#2
|
||||
|
||||
Please show the script. Looks like it contains a typo
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
// Trigger: Packagizer Hook
var url = link.getSourceUrls().pop(); var rtbf = (/www.rtbf.be/).test(url); if (rtbf) { var page = getPage(url); var titre = page.match(/<title>(.+)<\/title>/)[1]; link.setPackageName(titre); } example: **External links are only visible to Support Staff****External links are only visible to Support Staff** mgpai helped me ;-) But (here and in general) it's possible to obtain a url, example in the page as above and replace the original by this one ? Last edited by Mistery; 10.04.2018 at 01:12. |
#4
|
||||
|
||||
The eventscript works fine here. Do you still have those issues?
Please know that the script will fail for links without source urls. Mgpai should update script to handle that case as the .pop() may fail.
__________________
JD-Dev & Server-Admin |
#5
|
||||
|
||||
I'm sorry but I don't undertand. What exactly do you want to achieve?
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
Ok i understand
I just want to update the script to find the video url in the page scanned and use it to find video... So in summary, I would scan a link to find another link (and other info) and use it to find the video url If it's possible, I can sometimes create a little support for a site by myself ... ;-) Last edited by Mistery; 10.04.2018 at 18:09. |
#7
|
|||
|
|||
@Mistery: Have you tried adding the main url direcltly to JD? It seems JD is finding the videos and also setting the package name, without the need for any scripts or crawler rules.
|
#8
|
|||
|
|||
Yes i tested all types urls but not work fine
The only solution (in my opinion) is to proceed via the research I mentioned above to get the links of the videos ... |
#9
|
||||
|
||||
@Mistery: the link from your third post is supported by JDownloader and shows all found resolutions.
You should not *abuse* the packagizer hook to add new links. Packagizer hook is only called for processed/supported links. In case you want to add support for non supported links, please try to use Linkcrawler rules. We can help with that but we need example links
__________________
JD-Dev & Server-Admin |
#10
|
|||
|
|||
Yes work but no fine, can you test download the file and you will see the problem...
Here jd find urls and resolutions but download nothing... Ps: for this url type, i give you details here https://board.jdownloader.org/showthread.php?p=421866 and other similar case here https://board.jdownloader.org/showthread.php?p=421558 Changes due to new open view to Europe... And the eventscript work fine and i updated it for find url video but i do that and other actions on my computer to get the result I want. So now... I just have to know how to do what I wanted and, if it's better, via the linkcrawler Last edited by Mistery; 10.04.2018 at 20:14. |
Thread Tools | |
Display Modes | |
|
|