Mephiles / torntools_extension

A browser extension for Torn.com
GNU General Public License v3.0
106 stars 60 forks source link

Travel item capacity #712

Closed auboli77 closed 6 months ago

auboli77 commented 1 year ago

Another business class problem. When going to travel agency travel table shows I have capacity of 19 items, should be 31 for me. It doesn't take into account the 10 items I get from business class(shows 29 if I go to airstrip travel and back to business class). Also doesn't count the 2 extra items I get from lingerie store 3* perk. Travel table also shows 19 travel items while in the air. I have tested this with latest version from the repo with the fix for business class issue I reported last time.

DeKleineKobini commented 1 year ago

For the amount of item while flying itself, we use the API to get the travel type. Could you please give me the result of https://api.torn.com/user/?selections=travel&key= so that I can fix that?

It's likely that that would also fix it for the first load, as we use that method as fallback on the travel agency. I'd rather know why the main way is not working though, but the html you sent the last time does not give me the clue.

auboli77 commented 1 year ago

This is what I get from that API link.. {"travel":{"destination":"Argentina","method":"Business","timestamp":1669048174,"departed":1669045174,"time_left":2903}} I can get you html with bigger part of the page, last time I posted only the map part.

DeKleineKobini commented 1 year ago

Thanks for the api data.

Not sure the HTML would help, but it for sure wouldn't hurt.

Sashank999 commented 6 months ago

Maybe fixed by b85a8ff5c1fb already. No update received.