#2201
|
||||
|
||||
![]()
When you export data using 'copy information' in the context menu, you can define, what you want to copy to clipboard.
E.g: {type};{name};{filesize};{path};{url} Note: Using TAB instead of ; as separator can be helpful, when you are dealing with file or folder names containing ; Then you can copy the clipboard contents e.g. to Excel. Jiaz recommended that I should ask here, if a script for that already has been written or could be written. And - as mentioned above - the separator should be TAB, because ',' and also ';' can be part of file or folder names, which would mess up the Excel sheet. |
#2202
|
|||
|
|||
![]()
As i am bad like hell in programming ...
Dunno if someone posted here ... but does anyone as an eventscripter script to disable CRC Check for any unpacked files? So CRC only for zipped/rared Files where a CRC Error would prevent unpacking? Thx ![]() |
#2203
|
||||
|
||||
![]()
@StefanM: In case you want to experiment by yourself, see
https://board.jdownloader.org/showpo...&postcount=102 https://board.jdownloader.org/showpo...&postcount=794 https://board.jdownloader.org/showpo...6&postcount=19
__________________
JD-Dev & Server-Admin |
#2204
|
||||
|
||||
![]()
@Mydgard: why you want to disable CRC for non archives? why disable it all?
I'm sorry but currently it's not possible to disable it on *per file basis*.
__________________
JD-Dev & Server-Admin |
#2205
|
|||
|
|||
![]() Quote:
And i want to do that because my Download HDD is @100% while CRC Checking all those Rapidgator links ... |
#2206
|
|||
|
|||
![]() Code:
/* Remove hashinfo from non-archive files Trigger: Packagzier Hook */ !link.crawledLink.archive && link.setProperty("HASHINFO", null); Code:
/* Disable hashcheck Trigger: Packagzier Hook */ state == "BEFORE" && linkcheckDone && !link.crawledLink.archive && link.setProperty("ALLOW_HASHCHECK", false); Last edited by mgpai; 04.06.2022 at 16:04. Reason: Script replaced. |
#2207
|
||||
|
||||
![]()
@Mydgard: Thanks for the feedback. He is right, I had to check source. There is a property that can be set "ALLOW_HASHCHECK" to false, so no hashcheck is done on the file.
Better wait for mgpai to help with a script that set this property, eg a script that set the property after linkcheck. But it's okay that a HDD is working/high IO Load during check because the whole file has to be read for checking. a HDD may work and is not designed to have as less reads as possible ![]()
__________________
JD-Dev & Server-Admin |
#2208
|
||||
|
||||
![]()
@mgpai: don't change HASHINFO property as it might get updated/set again during normal plugin work. Better set the named property , see my previous post
__________________
JD-Dev & Server-Admin |
#2209
|
|||
|
|||
![]()
@mgpai / Jiaz:
Thx, tried this: /* Remove hadinfo from non-archive files Trigger: Packagzier Hook */ state == "BEFORE" && linkcheckDone && !link.crawledLink.archive && link.setProperty("ALLOW_HASHCHECK", false); Trigger is "Hook für Paketverwalter". Started a RG Link ... after download a CRC Check occurs ... So either the script isnt working, i did a mistake or the new script works only for newly added RG links? That would be bad as i have a huge amount of RG links in JD2. Thx |
#2210
|
||||
|
||||
![]()
@Mydgard: The rule is only applied on *Packagizer*, so during adding of new links. In case you want to modify existing links in list, you will need a different script that loops through all links and modifies this property for all non archive links. Please wait for mgpai for further help with this
![]()
__________________
JD-Dev & Server-Admin |
#2211
|
|||
|
|||
![]()
Ah okay thx
![]() |
#2212
|
||||
|
||||
![]()
@Mydgard: I'm sure mgpai will be able to write a wonderful script for you
![]()
__________________
JD-Dev & Server-Admin |
#2213
|
|||
|
|||
![]() Quote:
Code:
/* Disable hashcheck for non-archive files Trigger : None */ getAllDownloadLinks().forEach(function(link) { !link.finished && link.hashInfo && !link.archive && link.setProperty("ALLOW_HASHCHECK" , false); }) getAllCrawledLinks().forEach(function(link) { link.hashInfo && !link.archive && link.setProperty("ALLOW_HASHCHECK" , false); }) |
#2214
|
||||
|
||||
![]()
@mgpai: maybe we add new trigger type (manual) with a button *run* besides? your opinion on this?
or all *manual* scripts are available automatically in rightclick context menu. new type "context menu entry", so it automatically adds to context menu?
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 04.06.2022 at 16:50. |
#2215
|
|||
|
|||
![]() Quote:
This thread has several scripts which can be used to format/export data. @Jiaz has listed some of them. You can also use scripts to perform dupe checks from within JD instead of exporting and comparing them manually. |
#2216
|
|||
|
|||
![]()
@mgpai: will i get a end message or something similar? have 10877 links in jd2 actual ...
![]() Not sure how long it will take to run? |
#2217
|
|||
|
|||
![]()
A button outside of the editor may not be needed as they are run (mostly) only once, at the time of adding them.
|
#2218
|
||||
|
||||
![]() Quote:
![]() I just wanted to point out to other readers here, that - if they do it that way - they should prefer using TABs. And of course, any script should use TABs as well. This is what I wanted to say. ![]() |
#2219
|
|||
|
|||
![]() Quote:
You can use this to get the count of links which for which hashcheck has been disabled Code:
/* Show hascheck disabled count Trigger : None */ var count = 0; getAllDownloadLinks().forEach(function(link) { link.getProperty("ALLOW_HASHCHECK") == false && count++; }) getAllCrawledLinks().forEach(function(link) { link.getProperty("ALLOW_HASHCHECK") == false && count++; }) alert("Hash check is disabled for " + count + " links"); |
#2220
|
|||
|
|||
![]()
It's clear now.
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|