JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07.04.2018, 20:32
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default 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
Reply With Quote
  #2  
Old 09.04.2018, 16:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Please show the script. Looks like it contains a typo
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 09.04.2018, 18:57
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default

// 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.
Reply With Quote
  #4  
Old 10.04.2018, 10:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
  #5  
Old 10.04.2018, 10:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Mistery View Post
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 ?
I'm sorry but I don't undertand. What exactly do you want to achieve?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 10.04.2018, 18:07
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default

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.
Reply With Quote
  #7  
Old 10.04.2018, 18:33
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

@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.
Reply With Quote
  #8  
Old 10.04.2018, 19:01
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default

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 ...
Reply With Quote
  #9  
Old 10.04.2018, 19:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@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
Reply With Quote
  #10  
Old 10.04.2018, 19:52
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default

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.
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 19:36.
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 - 2024, Jelsoft Enterprises Ltd.