JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 31.01.2022, 10:07
Totto Totto is offline
Baby Loader
 
Join Date: Jan 2022
Location: Italy
Posts: 7
Question [EventScripter] Is there a way to parse Hash out of URL

I searched in the forum and also in the docs, but there seems to be no way to parse a hash out of an url, even if I used packagizer to parse something like url#sha256=... it didn't recognize the name in the file, so I am asking, if there even is a way to do something like that, preferably without modifying packagizer, since hashs are very useful, they should be able to be passed as some parameter in the url.
Reply With Quote
  #2  
Old 31.01.2022, 16:04
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 66,620
Default

Hi,
I don't think I get 100% what you want but I'll try to answer anyways:
- Yes you can remove parts of URLs using the Packagizer rule
- Yes you can work with parts of URLs (e.g. that hash) via Packagizer

What do you want to do with that hash value?
Please provide real life example URLs.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #3  
Old 31.01.2022, 16:47
Totto Totto is offline
Baby Loader
 
Join Date: Jan 2022
Location: Italy
Posts: 7
Default

Sorry for the unclear formulation, The Question is, if I can "set" (aka if I add that URL to Downloader, it sets the hash field) the hash field of the file to download in some way, an example would be:
"**External links are only visible to Support Staff**

(some_url#hash=91e84fbfb701e8be5228b32735696fbd7996428dcc96dcede706468135b144bb)

And then that Jdownloader can recognize the hash in the url, (or when I parse it somehow into the name, eg. the parsed name would be "check [sha256=91e84fbfb701e8be5228b32735696fbd7996428dcc96dcede706468135b144bb].mp4" ) and then put that value into the hash field, prefixed with [SHA256] ,
but also if I put the value "9 .. b" manually into the hash filed, it detects sha256 automatically, but is it possible to automatically "put" that in there?

Last edited by Totto; 31.01.2022 at 16:51.
Reply With Quote
  #4  
Old 31.01.2022, 17:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 66,620
Default

Quote:
Originally Posted by Totto View Post
but also if I put the value "9 .. b" manually into the hash filed, it detects sha256 automatically, but is it possible to automatically "put" that in there?
I don't understand this part of your post but for the rest:

Setting hashes it not possible via Packagizer.
However, you can do it using an EventScripter script or alternatively write a custom plugin for that website (we're open source).

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #5  
Old 31.01.2022, 17:13
Totto Totto is offline
Baby Loader
 
Join Date: Jan 2022
Location: Italy
Posts: 7
Default

Ok, so I was correct, that setting the hashes isn't possible via Packagizer, any reasons, why, since I find it a important feature, to set hashes automatically.

Regarding the part that you don't understand: If I put a hashsum manually in the hash field of a file, it recognizes the type of the hash, so that feature is already implemented, but what If I wanted to access the hash field and put a value there, you said that its possible with The EventScripter, thats awesome.

But regarding a plugin, its not that I wanted to have hashes for a single website, but for many websites, that don't need any plugin, since they offer a one click intergation, via simple direct download url, and the most of them have hashes, but I am unable to get that hash automatic into the hash field of the parsed file (its just an url#hash=...)

So I'll try the Eventscripter, but may I ask why hashes are used, but no possibility to add them without a plugin that parses them automatically, also the localhost API (**External links are only visible to Support Staff****External links are only visible to Support Staff**) can add passwords, encrypted links, but no hashes, is that, because thats deprecated, or because no one uses hashes with normal direct download?

EDIT:
And additionally I can't find any method in the EventScripter to set hashes, only to get the info:
"var myString = myCrawledLink.getHashInfo();" does exist, but not "myCrawledLink.setHashInfo(myString);"

Last edited by Totto; 31.01.2022 at 17:37.
Reply With Quote
  #6  
Old 31.01.2022, 17:57
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 66,620
Default

Quote:
Originally Posted by Totto View Post
Ok, so I was correct, that setting the hashes isn't possible via Packagizer, any reasons, why, since I find it a important feature, to set hashes automatically.
It just hasn't been requested by any of our users within the last ~10 years.
If you want I can create a ticket for this feature suggestion.

Quote:
Originally Posted by Totto View Post
Regarding the part that you don't understand: If I put a hashsum manually in the hash field of a file, it recognizes the type of the hash...
Okay now I understand this part.

Quote:
Originally Posted by Totto View Post
may I ask why hashes are used, but no possibility to add them without a plugin that parses them automatically
As said you should be able to set them without a plugin too, just not user-friendly via Packagizer.

Quote:
Originally Posted by Totto View Post
also the localhost API (**External links are only visible to Support Staff****External links are only visible to Support Staff**) can add passwords, encrypted links, but no hashes, is that, because thats deprecated, or because no one uses hashes with normal direct download?
It has been deprecated a long time ago.
You might be able to set hashes using our newer myjd API.

Quote:
Originally Posted by Totto View Post
EDIT:
And additionally I can't find any method in the EventScripter to set hashes, only to get the info:
"var myString = myCrawledLink.getHashInfo();" does exist, but not "myCrawledLink.setHashInfo(myString);"
Please wait for developer Jiaz to comment on this and/or ask for it in this EventScripter thread too.

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #7  
Old 31.01.2022, 18:11
Totto Totto is offline
Baby Loader
 
Join Date: Jan 2022
Location: Italy
Posts: 7
Default

Ok thank you very much
Reply With Quote
  #8  
Old 31.01.2022, 18:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 66,620
Default

I've created a ticket for your request anyways:


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #9  
Old 31.01.2022, 18:25
Totto Totto is offline
Baby Loader
 
Join Date: Jan 2022
Location: Italy
Posts: 7
Default

Thanks :)
Reply With Quote
  #10  
Old 31.01.2022, 18:31
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 66,620
Default

No problem.
Please still keep in mind that:
- This is just a ticket - it doesn't mean that this feature will be added soon/ever!
- As explained, your request has been requested only by one user (=you) within 10+ years so far

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
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 06:41.
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 - 2023, Jelsoft Enterprises Ltd.