#1
|
|||
|
|||
Append Specified text to Downloaded file
Is this possible? I was trying to see if I could do this
Have a file with a URL + Desired Append Text. - use jdownloader to - download the file with the URL - append the Desired text to the file. File URL + Dog URL + Cat Result Downloaded File Filename + Dog.<ext> Downloaded File Filename + Cat.<ext> Thanks |
#2
|
||||
|
||||
and how do you determine its a cat or a dog? if it has some logical identifiers you can use settings > package customiser and do that quite easily
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
|||
|
|||
Append the desired text to the url using an identifier string.
Code:
url#mytext=dog Create a packagizer rule to insert it in the filename: Code:
if -> sourceurl(s) -> contains : #mytext=* then set -> Filename : <jd:orgfilenamewithoutext> - <jd:source:1>.<jd:orgfiletype> |
#4
|
|||
|
|||
I have to manually specify it myself. There is nothing I can take from the actual URL itself.
|
#5
|
||||
|
||||
see
https://support.jdownloader.org/Know...the-packagizer https://support.jdownloader.org/Know...ame-via-anchor
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
So an example is **External links are only visible to Support Staff****External links are only visible to Support Staff**
using jdownloader I get: Code:
2021-06-12_@khaby.lame_6972918015830576390.mp4 Code:
if -> sourceurl(s) -> contains : #mytext=* then set -> Filename : <jd:orgfilenamewithoutext> - <jd:source:1>.<jd:orgfiletype> with the packagizer rule I get: Code:
_@khaby.lame_6972918015830576390 - cherry.mp4 Code:
2021-06-12_@khaby.lame_6972918015830576390 - cherry.mp4 thanks for all the help. greatly appreciated. Last edited by snuffleupagus; 20.06.2021 at 10:29. |
#7
|
||||
|
||||
@snuffleupagus: the date is only available after linkcheck, so you have to disable Settings->Plugins->tiktok -> "Enable fast linkcheck"
The name set by your rule has higher priority than the one set by plugin, so without linkcheck (fast linkcheck enabled) the date will be parsed after the packagizer name is already set and no longer available to the rule. you have to disable the fast linkcheck in order to have the full name available at the time the rule is processed
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
great! that did it! thank you
|
#9
|
||||
|
||||
You're welcome!
__________________
JD-Dev & Server-Admin |
|
|