【问题标题】:Force jdownloader to name the file for any url without setting the name manually in UI强制 jdownloader 为任何 url 命名文件,而无需在 UI 中手动设置名称
【发布时间】:2018-10-22 16:20:24
【问题描述】:

我有一个 url,我希望 jdownloader 使用预定义的名称保存文件,忽略名称服务器提供的名称

例如

我有一个类似http://server.com/server-file.mp4 的网址,我希望在不使用 UI 的情况下将此文件另存为 custom-filename.mp4

是否可以将特殊的 URL 参数传递给下载 URL,以便 jDownloader 可以识别并使用该特定名称保存文件?

例如,对于上述情况,我可以paste jdownloader 中的以下网址吗

http://server.com/server-file.mp4?jdSaveAs=custom-filename.mp4 让 jdownloader 自动将此文件另存为custom-filename.mp4

【问题讨论】:

    标签: jdownloader


    【解决方案1】:

    您可以将自定义文件名附加到 URL 并使用打包程序规则对其进行解析。

    以这种格式重写 URL:

    https://board.jdownloader.org/server-file.mp4#filename=custom-filename.mp4
    

    文件名下载:custom-filename.mp4

    在Packagizer中导入此规则(右键单击“Raw”按钮将文件保存到磁盘)

    https://gist.github.com/rodrigolmacedo/231a7692ace1b0cbf6aa7dc82d0e665a
    

    original post outdated

    
    <jd:append>
    -> this placeholder will be replaced by previous value where the placeholder is being used in
    
    <jd:prop:KEY>
    -> this placeholder reads out an internal property of the downloadlink itself. properties are plugin specific and there are plans that plugins can return a list of supported properties that can be used here
    
    <jd:indexof>
    -> this placeholder will be replaced by number of index of the downloadlink within its package. first link will be 1, second link will be 2 and so on. It's just the index within the package!
    -> will be replaced in real time
    
    <jd:subfolderbyplugin>
    -> some plugins support recursive folder support. if supported by plugin, then the downloads will have same directory structure like shown in browser
    
    <jd:env:KEY>
    -> this placeholder will be replaced by KEY environment variable of your system
    -> will be replaced in real time
    
    <jd:orgfilename> <jd:orgfilename:number>
    -> this placeholder will be replaced by original filename or matching group(number) of filename pattern
    
    <jd:packagename>
    -> this placeholder will be replaced by the current package name
    -> will be replaced in real time
    
    <jd:orgfiletype> <jd:orgfiletype:Pattern>
    -> this placeholder will be replaced by the file extension of the file or the match of the given pattern
    
    <jd:orgfilenamewithoutext>
    -> this placeholder will be replaced by original filename without file extension
    
    <jd:hoster:number>
    -> this placeholder will be replaced by the matching group(number) of downloadurl pattern or the host itself if number is -1
    
    <jd:source:(number)pattern>
    -> this placeholder will be replaced by the match of sourceurl pattern. with number you can specify which sourceurl to process
    
    <jd:simpledate:simpleDateFormatString>
    -> this placeholder will be replaced by time formatted with simpleDateFormatString, see docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
    -> will be replaced in real time
    
    <jd:orgpackagename>
    -> this placeholder will be replaced by the original package name  ```
    
    
    
      https://board.jdownloader.org/showthread.php?p=421993
    
    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-06
      • 1970-01-01
      • 2018-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多