|
#1
|
||||
|
||||
![]()
Ran into a problem today that my lifetime-premium account of K2S was only recognized as Free Account (expired premium) even though it's still valid till 2030.
After looking into the plugin, i saw that the account_expires_timestamp from the K2S api was compared with the current time with milliseconds! Code:
if (account_expires_timestamp < System.currentTimeMillis()) { Code:
1905379200 and the plugin compares it with Code:
1663242776952 A quick debug run where i added the values to the Account status confirmed it: https://snipboard.io/Gla31p.jpg ![]() I implemented a quick fix on my end, it's a trivial fix so i don't think i need to post a patch. Also you can see that the traffic is recognized as "18.11 GB of 18.11 GB left", not sure if the total is not reported correctly by the api anymore, not a big deal anyway. Regards, FBD
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader Last edited by FBD; 15.09.2022 at 14:17. Reason: img link updated |
#2
|
||||
|
||||
![]()
Sorry my bad this regression has been added by me in revision 46701 when I've changed the plugin to use our json parser.
I've added the "* 1000" multiplication which should fix this issue for you. EDIT No need to wait for updates as you seem to use our dev build so this mistake has never been released to our stable version so thanks for your help!
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 15.09.2022 at 14:30. |
#3
|
||||
|
||||
![]() Quote:
I only have a free account for testing atm...
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#4
|
||||
|
||||
![]()
Real value would be 20.00 Gigs, which is daily traffic for life-time premium accounts.
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader |
#5
|
||||
|
||||
![]()
GB or GiB?
According to your screenshot it's GiB which is the default unit used by JD. If you want JD to display "GB", do the following: Settings -> Advanced Settings -> GraphicalUserInterfaceSettings.maxsizeunit -> Change this to "TB" -> Restart JD
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#6
|
||||
|
||||
![]() Quote:
https://snipboard.io/ebicwP.jpg ![]()
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader |
#7
|
||||
|
||||
![]()
@FBD: as far as I know the api does not report max traffic and thus JDownloader only shows x of x instead of x of y .
see keep2share.github.io/api/#resources:/accountInfo:post We try to avoid to set hardcoded upper limits as we have to manually check/update them. Maybe ask k2s support to extend api to report this value as well
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 15.09.2022 at 14:45. |
#8
|
||||
|
||||
![]() Quote:
Quote:
thanks guys!
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader |
#9
|
||||
|
||||
![]() Quote:
I did refactor other parts of our keep2share plugin too so if you find any problems please let me know ![]()
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#10
|
||||
|
||||
![]()
Maybe ask them nicely and they will add it?
__________________
JD-Dev & Server-Admin |
#11
|
||||
|
||||
![]()
I'll hit them up with a support ticket... and i still have the skype contact of one of the devs... from many years ago, no idea if he still works there, lol. but worth a try.
__________________
irc.libera.chat #jDownloader web.libera.chat/#jDownloader |
#12
|
||||
|
||||
![]()
That is basically normal for pretty much alle filehosts because JD doesn't keep track of the first/highest traffic value.
Some filehosts however, do provide this information via API e.g. "trafficUsedToday" and "trafficMaxToday" so things will look prettier in JD but in this case: No. EDIT Jiaz was faster.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#13
|
||||
|
||||
![]()
CORE-Updates have been released!
All announced bugfixes and features are live! Please update your JDownloader and report any issues you find asap. If this thread gets marked as "[Solved]" by our forum staff you can still post in it and we will read- and reply to it! CORE-Updates wurden released! Alle angekündigten Bugfixes/Features sind nun verfügbar! Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden. Falls dieser Thread vom Team als "[Erledigt]" markiert wird, kannst du weiterhin darin antworten und wir lesen/beantworten auch solche Threads! -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
![]() |
Thread Tools | |
Display Modes | |
|
|