JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 15.09.2022, 14:16
FBD's Avatar
FBD FBD is offline
Mega Loader
 
Join Date: Nov 2018
Location: https://web.libera.chat/#jDownloader
Posts: 68
Post K2S Not recognizing premium account / total traffic wrong

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()) {
whereas the api reports my account_expires_timestamp as
Code:
1905379200
which is unix epoch of 2030

and the plugin compares it with
Code:
1663242776952
which is current time in milliseconds, which is ALWAYS bigger than the plain epoch in seconds, so my account gets always flagged as expired premium.

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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:54.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.