JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10.01.2021, 15:41
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default How to add any direct link with two protocols?

How to add any direct link with two protocols?
JD2-> BUTTON-> [Add New Links]
When adding a link, it always splits into two links and analyzes two links. One good and one bad.
I tried to add two signs [url] and [\ ur] but this doesn't solve the problem, because it adds [url] to the link
Reply With Quote
  #2  
Old 11.01.2021, 04:49
tony2long's Avatar
tony2long tony2long is offline
English Supporter
 
Join Date: Jun 2009
Posts: 6,507
Default

Please provide example links.
__________________
FAQ: How to upload a Log
Reply With Quote
  #3  
Old 11.01.2021, 10:46
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Links are private. Direct links are always different. It has to work universally.
But how do I turn off link recognition?
I just want to add one link and don't want it to be recognized as plain text. I can't find advanced options.
Reply With Quote
  #4  
Old 11.01.2021, 10:53
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

**External links are only visible to Support Staff****External links are only visible to Support Staff**

https://postimg.cc/nXWBdbns
Reply With Quote
  #5  
Old 11.01.2021, 16:42
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Settings -> Advanced Settings -> "Add links pre parser"
... but this might not necessarily solve your issue.
Without actually knowing your URLs I will not be able to check this.

If in doubt and your URLs are direct-URLs, add ".jdeatme" to the end of them and/or try to add a LinkCrawler Rule.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

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?
Reply With Quote
  #6  
Old 11.01.2021, 17:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@sharkboy: Parser finds all 3 URLs(combined + two single ones). so that's no problem.
You must create/use Linkcrawler rule as the example url isn't supported and doesn't contain any known file extension to be picked up by generic http plugin
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 11.01.2021, 22:30
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

There would have to be thousands of direct links for different direct link patterns, this is not an easy task. I searched on the forum but couldn't find anything universal.
Reply With Quote
  #8  
Old 11.01.2021, 23:47
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Why do I have to play with===> ANY<=== direct link editing every time?
Can't really add one download link without complicated procedures?
Reply With Quote
  #9  
Old 12.01.2021, 11:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@sharkboy: JDownloader doesn't know that those are direct links because of missing known file extension and no plugin support. Only supported links are processed by JDownloader.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 12.01.2021, 11:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by sharkboy View Post
There would have to be thousands of direct links for different direct link patterns, this is not an easy task. I searched on the forum but couldn't find anything universal.
No it won't. You simply don't want to learn it yourself.
If those links are direct http ones, then simply append in front
Quote:
direct**External links are only visible to Support Staff**
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 12.01.2021, 15:32
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Add quick button "on / off" option without having to edit links in "Add Links"
Reply With Quote
  #12  
Old 12.01.2021, 15:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

You don't have to edit anything. JDownloader will find all 3 URLs because it cannot know if the combined url is the correct one, or the first/last URL. All 3 are processed and without directhttp or linkcrawler rule, non will be processed because of missing file extension
__________________
JD-Dev & Server-Admin
Reply With Quote
  #13  
Old 12.01.2021, 20:36
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Sorry, but I'd like to avoid analyzing links for a long time.
Reply With Quote
  #14  
Old 13.01.2021, 10:19
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

LinkgrabberSetting: Add Links Pre Parser
Disabling - solved the problem
Reply With Quote
  #15  
Old 13.01.2021, 12:08
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Doesn't solve the problem because internally JDownloader will still process all 3 links
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 13.01.2021, 13:10
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

I added a rule so it's okay.

However, what if I encounter other, different links without an extension. Eg I want to download some html page.
I don't want to use a text editor every time to add .jdeatme to the end

Example:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #17  
Old 13.01.2021, 13:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Then use tools designed to download/mirror websites. Or just save the website directly from browser
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 13.01.2021, 14:23
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

If target files do not have extension then the file mask must end with
Code:
.
Reply With Quote
  #19  
Old 13.01.2021, 21:54
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Quote:
Originally Posted by Jiaz View Post
Doesn't solve the problem because internally JDownloader will still process all 3 links
Yes problem...
Source for photo link (multi protocol)

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #20  
Old 14.01.2021, 12:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

How about a proper pre-filtering of your links!
Your link is a perfect example that JDownloader cannot know what link/link combination is the right one/the one you are interested in. But still works fine and finds the embedded image link
__________________
JD-Dev & Server-Admin
Reply With Quote
  #21  
Old 14.01.2021, 12:35
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

Here it gives 2 links (small + high), and I always like the highest resolution. It can be different with these links, I will try to provide more test links in the future if I run into problems.

**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #22  
Old 14.01.2021, 12:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

You can use REWRITE Linkcrawler Rule to rewrite the URL to parse the rlt_url only.
For this case prefiltering is the best solution as JDownloader cannot know if you are interested in the smaller version or the rlt_url or the yandex link itself
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 14.01.2021, 13:07
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

"rlt_url" - I am not familiar with this terminology. More details needed.

Google search engine practically does not return any deeper information:
Code:
"rlt_url"
Reply With Quote
  #24  
Old 14.01.2021, 13:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

See your example url, that's the url query parameter that holds the high resolution image in your case
__________________
JD-Dev & Server-Admin
Reply With Quote
  #25  
Old 14.01.2021, 13:47
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

There is an application in which the user can view images in Yandex images via webbrowser, and then download the ones they like. Up to this point, a direct link to the image could be obtained as follows:

Code:
urlImage = HD.DocumentNode.SelectSingleNode("//a[@class='MMButton MMButton_type_link MMViewerButtons-OpenImage MMViewerButtons-OpenImage_isOtherSizesEnabled']").GetAttributeValue("href", "");
Reply With Quote
  #26  
Old 14.01.2021, 13:52
sharkboy sharkboy is offline
Banned
 
Join Date: Apr 2020
Posts: 171
Default

The application has a function for viewing images from Yandex images via webbrowser and downloading the selected one. I got the link like this:
Code:
1
urlImage = HD.DocumentNode.SelectSingleNode("//a[@class='MMButton MMButton_type_link MMViewerButtons-OpenImage MMViewerButtons-OpenImage_isOtherSizesEnabled']").GetAttributeValue("href", "");
Recently they have made changes to the code and now the data is loaded dynamically. The href attribute now contains "#", so the data cannot be downloaded.
Thought cefsharp would help, but it returns "#" too. Moreover, if you open the developer tools in the same chrome, the link to the image is displayed in the desired class. So, is it possible, through webbrowser or cefsharp, to get me to return the source code of the page with the already existing link to the picture?

The ways

Code:
var jsResponse = await chromeBrowser.EvaluateScriptAsync(@"document.getElementsByTagName ('html')[0].innerHTML");
            if (jsResponse.Success)
            {
                string source = jsResponse.Result.ToString();
            }
and

Code:
var source = await chromeBrowser.GetSourceAsync();
return the variant with "#" in the desired class, not with a reference.
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 00:39.
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.