JDownloader Community - Appwork GmbH
 

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 15.10.2020, 03:04
svArtist svArtist is offline
Vacuum Cleaner
 
Join Date: Mar 2015
Posts: 15
Default LinkGrabber stripping URL components?

I'm heavily using userScripts in my browser to handle titles for all kinds of downloads, and at some point, I wanted to integrate that into JDownloader and wrote a script for that.
Originally, I wrote it for single URLs that I would copy from my browser's address bar:
My userScripts would get the appropriate title for the download and, depending on how the website was set up, append it to the URL, usually either as a query string ("?title=Good%20Title"), or hash ("#Good%20Title").
When I copied the URL, the JDownloader would grab the URL, and if I wanted, I could run the script from the context menu after right clicking the desired link in the list.
The script would look at the link (myCrawledLink.getUrl()), extract the title and rename the file and the package accordingly.

Today, I wanted to expand on this, but I noticed that now, after some update, the URLs are being stripped from their titles.
What used to be "һttps://aparatꓸcam/35sfec251822/Fargo.S04E03.1080p.WEB.H264-CAKES.mkv.mp4.html#Fargo%20Season%204%20Episode%203%20-%20Raddoppiarlo"
Spoiler:
=Superfluous, I guess, added by the site to make it more readable/for SEO
=Superfluous, added by me to assign the title I acquired before
is now "һttps://aparatꓸcam/35sfec251822"
The components that aren't strictly necessary to identify the link are gone.

For URLs that I copied directly (from the Address Bar, for example), the original URL is still visible in myCrawledLink.getContentURL(), but no such luck for cases where the "extra info" was in the href property of <a> elements that were selected in the site text flow.

Is there a way to change that?

Last edited by svArtist; 15.10.2020 at 03:16. Reason: Link detection broke example highlighting
Reply With Quote
 

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 08:11.
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 - 2021, Jelsoft Enterprises Ltd.