#1
|
|||
|
|||
Keep "Downloaded from - Download url" in the "File name".
Hello, how about I have been viewing the JDownloader forum for 9 hours but there is nothing that is exact for what I am looking for.
I give you an example of a website: Original Link: **External links are only visible to Support Staff****External links are only visible to Support Staff** File name: ed4c85679cf0100d7b1a62cea923978b.png use this rule: Url Fonts: Contains ^ ([^ + *] +) \. * $ Regular expressions are enabled File name: <jd: source: 1> And it returns the file name to me: https_font-1001freefonts.netdna-ssl.com_storage_preview_cache_1257_ed4c85679cf0100d7b1a62cea923978b.png If you see the Original link and the link that Returns with the rule, the lines / converts them to _, I would like to keep the original link within the file name so that I can review it in the excel table. I found out that if I do this: use this rule: Url Fonts: Contains * Regular expressions are disabled File name: <jd: source: 1> returns the file name: https_font-1001freefonts.netdna-ssl.com_storage_preview_cache_1257_ed4c85679cf0100d7b1a62cea923978b.png In short I need the "Original Link" as filename all in one folder: **External links are only visible to Support Staff****External links are only visible to Support Staff** I ask you to help me with this rule. And in advance I thank you for your collaboration. |
#2
|
||||
|
||||
You cannot place URL into filename because URLs contain forbidden chars like /
You can customize the copy action, see https://board.jdownloader.org/showpo...76&postcount=5 and https://board.jdownloader.org/showpo...65&postcount=7 Then you can mass select the links -> copy -> contains the information you want
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
You can also use Eventscripter (see https://board.jdownloader.org/showthread.php?t=70525) and write/use script that exports the information you need. Ask mgpai for help/hints
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
Quote:
It happens that there are more than 100,000 links, if I do it that way it would take me a lifetime. For that reason I chose the packer tool to do it automatically. |
#5
|
|||
|
|||
Quote:
When I referred to a folder, this is what the system does by default, I just need to convert the _ to the / so that the original link is preserved. |
#6
|
|||
|
|||
I don't know anything about programming, for that reason I was looking at how to use regular expressions.
|
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
It's not just about the /, there are other characters as well. You can also use mass selection and copy to clipboard or use Eventscripter script (ask mgpai for help/hints) that writes out the information that you need. But doesn't make sense putting url into filename because of special/forbidden characters and length of filename
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Quote:
Well, maybe it doesn't make sense, but in an excel list of 100,000 links, it does make sense, because if you don't have the full link, Excel won't find the file, it already does several tests. all without success, if you have a better idea I would receive it. |
#10
|
||||
|
||||
I'm sorry but I don't understand url - filename and excel list. What exactly do you want to achieve?
You can create a script that reads text file and then for example remove lines that have file in list, or anything else We can provide better help but you must better explain what you are trying to do
__________________
JD-Dev & Server-Admin |
#11
|
|||
|
|||
Quote:
name. Example: Name: Merry Original Link: **External links are only visible to Support Staff****External links are only visible to Support Staff** When the image is downloaded it must have a reference name, in this case the download link to identify it in the database and then name it Merry. I use Excel and Cal from LibreOficce. |
#12
|
|||
|
|||
So, after the file is downloaded, you want to replace the file name from the url, with the one in the spreadsheet? Or, do you need to access the url for any other purpose?
|
#13
|
|||
|
|||
Quote:
Exactly, when the image is downloaded I will rename it with the real name Merry that is in the database. To do that, I take the Original link from the download and look for it in excel, and I look at the previous cell to name the image "Merry" in the folder that Jdownloader creates called "miscellaneous". |
#14
|
|||
|
|||
Quote:
Example URL Format: Code:
https://board.jdownloader.org/images/logo.png#filename=merry Packagizer Rule: Code:
If sourceurl(s) > contain > #filename=* Then set > Filename > <jd:source:1>.<jd:orgfiletype> JD will then download the file with the new name. |
#15
|
|||
|
|||
Quote:
When I mean to take the original link, it is to go to the "Various" folder and look for the downloaded file, in this case the image, which has a name for example this: https_font-1001freefonts.netdna-ssl.com_storage_preview_cache_25729_ed4c85679cf0100d7b1a62cea923978b **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** Most of the images have this string at the end of the link: ed4c85679cf0100d7b1a62cea923978b. What JDownloader does is: ed4c85679cf0100d7b1a62cea923978b ed4c85679cf0100d7b1a62cea923978b_2 ed4c85679cf0100d7b1a62cea923978b_3 If you carry that fragment of link it is useless, because they all have that same chain. In order to be more accurate, you should have at least this fragment: > 25729 / ed4c85679cf0100d7b1a62cea923978b Create a rule in the packager in the option Sources Url - Contains - * and it returns the link: https_font-1001freefonts.netdna-ssl.com_storage_preview_cache_25729_ed4c85679cf0100d7b1a62cea923978b It is an advance, but since I cannot transform the _ to / from JDownloader, then I would have to look for another formula. Last edited by andersontad; 21.11.2020 at 18:12. |
#16
|
|||
|
|||
Perhaps I have not understood your requirement correctly. If you are free, can you contact me in JD Chat?
Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader |
#17
|
|||
|
|||
Thank you very much for your collaboration.
|
#18
|
||||
|
||||
Did you find a working solution?
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#19
|
|||
|
|||
Yes sir, the answer was given by mgpai. Anyway I leave the solution here: Code:
https://board.jdownloader.org/images/logo.png#filename=merry Code:
If sourceurl(s) > contain > #filename=* Then set > Filename > <jd:source:1>.<jd:orgfiletype> |
#20
|
||||
|
||||
@mgpai: Thanks for the help Fast/correct, on the point Perfect!
@andersontad; Thanks for the feedback, so it comes down to set pre-defined names for downloading
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|