View Single Post
  #402  
Old 03.04.2018, 15:46
patriks's Avatar
patriks patriks is offline
DSL Light User
 
Join Date: Aug 2017
Location: Brasil
Posts: 30
Default

Hello, I'm using this script to generate files with the name I want while I wait for this new functionality (link), however I had a problem recently, I periodically delete the downloadlist to be able to check if the vk.com images have a new version, but it does not can I ignore the duplicates and show an error, can I suppress this error and cause jd to detect and ignore the existing file?

script
Code:
// Trigger: "A Download Stopped"
disablePermissionChecks(); {
    link.setName(link.getProperty("LINKDUPEID") + " - " + link.getProperty("FINAL_FILENAME"));
    link.setComment(link.getProperty("picturedirectlink"));
}
I reproduced the error in a test and created a log:
Spoiler:


url used for test: **External links are only visible to Support Staff****External links are only visible to Support Staff**

logs:
03.04.18 10.18.57 <--> 03.04.18 10.33.35 jdlog://8805654433151/

error details
jd.plugins.FileExistsException: Creating file C:\Users\Disaeon\Desktop\tst\_x3\392220242_00\album392220242_00_392220242_456239144 - XcPSjYTp12c.jpg failed. C:\Users\Disaeon\Desktop\tst\_x3\392220242_00\album392220242_00_392220242_456239144 - XcPSjYTp12c.jpg already exists.
at jd.plugins.PluginForHost.renameOrMove(PluginForHost.java:2278)
at jd.plugins.PluginForHost.handle(PluginForHost.java:2272)
at jd.plugins.PluginForHost.move(PluginForHost.java:2230)
at jd.controlling.downloadcontroller.DownloadWatchDog.move(DownloadWatchDog.java:4519)
at jd.controlling.downloadcontroller.DownloadWatchDog$41.execute(DownloadWatchDog.java:4399)
at jd.controlling.downloadcontroller.DownloadWatchDog$34.processJobs(DownloadWatchDog.java:3241)
at jd.controlling.downloadcontroller.DownloadWatchDog$34.run(DownloadWatchDog.java:3622)
[/CODE]


If it is a very complicated thing, like needing to update in the core, you can disconsider because I am only using this temporarily.

Note: I'm using "LINKDUPEID" because it's easy to remove album information at the beginning of the name (album392220242_00_), when functionality is available.

Last edited by patriks; 03.04.2018 at 15:58.
Reply With Quote