#1
|
|||
|
|||
![]()
Dealing with error handling, I would like to fetch a link's status & error reason rather than handling it by basically extracting it like in https://board.jdownloader.org/showthread.php?p=535365. Adding another 2 parameters to queryLinks would be ideal.
For links within the linkgrabber it's typically one of the jd.plugins.DecrypterRetryException.RetryReason, I'm assuming that the downloads has something similar I didn't go too deep. There also appears to be jd.plugins.LinkStatus which would be useful. Slowly going through fully interacting with JD via the API, expect some more requests ![]() Thanks //TGU Last edited by TGU; 16.06.2024 at 07:41. |
#2
|
||||
|
||||
![]()
@TGU: LinkStatus is internal only and not used by Plugins anymore, only for communication Plugin->Link
I will add new status field to response that will be a combination/concatenation of the internal enum so you can better work on those. right now its label/text only. I will add new field that contains for example FinalLinkState.FINISHED_MIRROR or ExtractionStatus.ERRROR_FILE_NOT_FOUND and because multiple states can be possible at ones, I will return array of entries or map, eg Code:
{ "FinalLinkState":{ "id":"FINISHED_MIRROR"} "ExtractionStatus":{ "id":"ERRROR_FILE_NOT_FOUND" }
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
![]()
With next core update, set advancedStatus to true in LinkQuery object
and you will get advancedStatus Map response please test and provide feedback. I've implemented all available status and meta information, so most verbose/detailed api response ever :p
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 17.06.2024 at 00:08. |
#4
|
||||
|
||||
![]()
Updates have just been released.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
![]()
@Jiaz, had a chance to finally test the status.
"/downloadsv2/queryLinks": status: only shown if there's an error ex:"File not found", does not display "finished" or "finished_..." (not sure if expected) advancedStatus: works good ![]() "/linkgrabberv2/queryLinks": status: completely missing this json field in response, even though api request has status option (https://my.jdownloader.org/developers/#tag_264) advancedStatus: missing advancedStatus |
#6
|
||||
|
||||
![]() Quote:
Won't hurt ![]() Thanks for the feedback. new field contains all possible status stuff but in case you still miss something or want something different, please let me know Quote:
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
![]() Quote:
"ConditionalSkipReason": Code:
{"ConditionalSkipReason":{"cause":"FILE_TEMP_UNAVAILABLE","iconKey":"kc.9ee0afbc66968155a8a9a2361a9f8484","label":"509 Bandwidth Limit Exceeded","id":"WaitingSkipReason","timeout":109052}} when compared to a link finished status: Code:
{"FinalLinkState":"FINISHED"} Ah sure thing, one thing I wanted to say again is that there is NO status in the response even through there is a request option. Last edited by TGU; 21.06.2024 at 06:15. |
#8
|
||||
|
||||
![]()
@TGU: The map is created in a way that the root key defines the object (FinalLinkState, PluginProgress...) the map will contain information for.
the "id" field will hold the id/name of the enum. the fields "label" and "iconKey" are the old information that were part of normal status but now will be available for all status fields, not just one like in old response format. Every object map will contain all available/useful information for that specifc object.
__________________
JD-Dev & Server-Admin |
#9
|
||||
|
||||
![]() Quote:
![]() wait for update and then test again. Anything else missing/wanted in that new response field? with next update, also link status(availability) will be included, also for LinkCrawlerRetry, see
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 24.06.2024 at 21:59. |
#10
|
|||
|
|||
![]()
From what I saw everything has enough information in order for it to be handled (including the icons); The only thing I haven't really checked/seen was the ExtractionStatus. But with all the fields provided, it should give a good indication if it's something that can be handled automatically or needs user intervention like "wrong password???".
:thumbup: Thanks for pushing this feature up to the front, I'm sure it was already waiting since before 2018. I know all too well as time goes on you spent too much time dealing with support for a new site or issues with a site, It just get's more time consuming over the years leading to less actual development time. Last edited by TGU; 24.06.2024 at 23:25. |
#11
|
||||
|
||||
![]() Quote:
![]()
__________________
JD-Dev & Server-Admin |
#12
|
||||
|
||||
![]()
@TGU: any feedback on this?
__________________
JD-Dev & Server-Admin |
#13
|
|||
|
|||
![]()
Oh I wasn't aware there was an update
![]() Looks like everything on the DownloadsV2 advancedStatus response is there, including the extraction status; I haven't found any issues when scanning through a few thousand links. I suppose the only "issue" might be in the normal status field not displaying it's finished, and only shows on errors (for people who don't want to use advancedStatus, but you can check the finished field anyways) |
#14
|
||||
|
||||
![]() Quote:
![]() Quote:
![]() Will ping you once the changes are live for testing
__________________
JD-Dev & Server-Admin |
#15
|
||||
|
||||
![]()
with next update lincollector will also provided added date and advanced status
__________________
JD-Dev & Server-Admin |
#16
|
|||
|
|||
![]() Quote:
Code:
Host:"linkcrawlerretry", Comment:"This folder is empty.", Name:"Empty folder!a1dQSb", AdvancedStatus:map[AvailableStatus:{ID:"UNCHECKED" Label:"Not checked" IconKey:"help"}] Host:"linkcrawlerretry", Comment:"", Name:"Wrong password!GBRvMfhgyJ", AdvancedStatus:map[AvailableStatus:{ID:"UNCHECKED" Label:"Not checked" IconKey:"help"}] |
#17
|
||||
|
||||
![]()
@TGU: Thanks for the feedback. missing linkcrawlerretry info will be fixed with next update
and Quote:
![]()
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|