JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 10.06.2015, 14:03
iFlame
Guest
 
Posts: n/a
Post ClickNLoadv2 vs Paste Link

Hey there,
I'm trying to add the following link (googlevideo, mp4 file) into JDownloader 2: **External links are only visible to Support Staff**huge link incoming
However, while it works when I press right click -> paste link in the Link finder, I can't add it via the API, after pressing allow no links appear. Other links (filehosters) seem to work just fine. By the way, would there be a way to specify a filename?

regards and thx
Reply With Quote
  #2  
Old 10.06.2015, 14:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

Can you provide Test CnL2 Button? I guess wrong line seperator/wrong encoding.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 10.06.2015, 14:36
iFlame
Guest
 
Posts: n/a
Default

Unfortunately I got no HTML form, I'm using Java. If needed I could setup one, tell me if that's the case.

I'm separating with \r\n, I just made sure it's not appended to the last url, but didn't change anything. Depending on the host, JDownload won't take the URL.

When using the following URLs, JDownloader won't take the fourth one.
Spoiler:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**


I can understand that the last one does not work because the hoster is not supported, even LinkGrabber finds 4 links inside it, where only one is the actual video. However, I don't get why it does not take a direct mp4 link.
You mentioned encoding, I'll try to encode the URL UTF-8, and report back in a few mins.
Edit: UTF-8 URLs don't work at all.

I'm using this code:
Code:
Jsoup.connect(link + "add").data("urls", sbUrls.toString()).timeout(100).post();
where urls is **External links are only visible to Support Staff****External links are only visible to Support Staff**

Last edited by iFlame; 10.06.2015 at 14:41.
Reply With Quote
  #4  
Old 10.06.2015, 14:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

append .jdeatme at the end of the link
The link is not "eaten" because it does not end with known/supported file extension.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 10.06.2015, 14:47
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

youtube links are not hotlinkable if you change ip for memory,

your best off adding the youtube id and let jd plugin do the hardwork (selecting quality etc)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #6  
Old 10.06.2015, 14:54
iFlame
Guest
 
Posts: n/a
Default

Thank you, that works! :D
Since JDownloader recognizes the Content Type anyway, wouldn't it make sense to eat links with unknown file extensions though?
And one more question: there isn't any way to specify a filename via ClickNLoadv2, or is there?
Reply With Quote
  #7  
Old 10.06.2015, 14:58
iFlame
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by raztoki View Post
youtube links are not hotlinkable if you change ip for memory,

your best off adding the youtube id and let jd plugin do the hardwork (selecting quality etc)
I'm not sure wether or not this is a youtube link, it's actually scraped from kissanime.com, I don't think it is. I already got quality selection, only thing I'd need would be a method to set the filename, so I can name the video based on s1e1 - episodename, so that they are importable into libraries. If there is no way that is possible with JDownloader, I guess I could try to implement that into ClickNLoad myself, but let's see if I'm experienced enough to do so.
Reply With Quote
  #8  
Old 10.06.2015, 15:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

JDownloader only recognizes content type because that is special mode when you paste single links. JDownloader needs a known/supported extension else JDownloader would "download all" Each single Link/Website/OnlineShop/OnlineBanking....I'm sure you don't want that
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 10.06.2015, 15:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

You can use the flashgot api, it is possible to set downloadfolder/names/packagenames with it.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 10.06.2015, 15:23
iFlame
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
You can use the flashgot api, it is possible to set downloadfolder/names/packagenames with it.
I think that will hardly be possible since I'm not using any browser. I fear ClickNLoad is all I got. Would really be a good thing if ClickNLoad could set filenames. I'm already excited to see wether or not I'll be able to implement that into JDownloader myself. Would feel like a pro then Sadly I probably won't have time to look into it until in a few weeks.
Or do you mean I could use the API which flashgot uses to connect to JDownloader? Is there any documentation available?
Reply With Quote
  #11  
Old 10.06.2015, 15:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

FlashgotAPI is another API, just different params No need for a browser
https://support.jdownloader.org/inde...hgot-Interface
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 10.06.2015, 16:09
iFlame
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
FlashgotAPI is another API, just different params No need for a browser
**External links are only visible to Support Staff**...
Okay thank you
I was googling for Flashgot and API, but you can only find that article when you search for interface instead of API
Reply With Quote
  #13  
Old 10.06.2015, 16:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

In case you need help, have problems...just contact us at support@jdownloader.org
You can also use the myjdownloader api (client available in java) to use a more powerful api
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 10.06.2015, 17:00
iFlame
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
In case you need help, have problems...just contact us at support@jdownloader.org
You can also use the myjdownloader api (client available in java) to use a more powerful api
Okay, thx. One last question about the flashgot API for today: it sets the filename to the package name. So it isn't possible to add a package for a TV-Show and then add the mp4 files with a specified filename, or is it?
I really should check out that Java API, but just when I read about that API I finished my Flashgot class
Reply With Quote
  #15  
Old 10.06.2015, 17:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

You can set package name and filenames for each link (only works with direct links)
fnames is an array for filenames
same as for urls

fnames=name1\r\name2
urls=url1\r\nurl2
then name1 will be set for url1 and so on
See ExternInterfaceImpl.java in JDownloader source
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 10.06.2015, 17:57
iFlame
Guest
 
Posts: n/a
Default

Perfect, thx
Just took a look at the source, there seem to be quite a bunch of params not mentioned in the wiki/documentation/knowledgebase about ClickNLoadv2 and Flashgot. I'll be sure to check the implementation in the future.
Reply With Quote
  #17  
Old 10.06.2015, 19:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

As Flashgot api only used by flashgot I never updated api doc In case you need further help, just contact us
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 13.11.2015, 14:56
Domination
Guest
 
Posts: n/a
Default

Thanks @Jiaz, been looking for the solution to this problem for a while
Reply With Quote
  #19  
Old 13.11.2015, 15:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,544
Default

You are welcome. If you need any help, please contact us via support@jdownloader.org
__________________
JD-Dev & Server-Admin
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 18:52.
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.