Ale46 / Mega-Java

Java library for the mega.co.nz API
44 stars 20 forks source link

File Name #6

Closed dretax closed 9 years ago

dretax commented 9 years ago

Nope, File name is now something else.

What I got is: eA9f-fMYfFaNpVbchl44bwRcbfBU

I will stick to the filecreating and split method for now, and once you fixed It I will do a pull request about an idea.

Two methods are missing try catches or throws Exception. I also showed that in the pull request.

Ale46 commented 9 years ago

Can you please give me the mega.co.nz link to download the file that give this problem?

2015-04-25 21:03 GMT+02:00 dretax notifications@github.com:

Nope, File name is now something else.

What I got is: eA9f-fMYfFaNpVbchl44bwRcbfBU

I will stick to the filecreating and split method for now, and once you fixed It I will do a pull request about an idea.

Two methods are missing try catches or throws Exception. I also showed that in the pull request.

— Reply to this email directly or view it on GitHub https://github.com/Ale46/Mega-Java/issues/6.

dretax commented 9 years ago

Here

https://mega.co.nz/#!uNhA2KBZ!160OJT6EaRiBAftw6qS2slSo7zMEIfyUOrU9SBigo7U

Ale46 commented 9 years ago

It seems that the response come with a json that is formatted in different ways. With your file I was getting:

{"c":"SOMETHING","n":"FILENAME"}

Using a file from my account I was getting:

{"n":"FILENAME","c":"SOMETHING"}

So your code was failing with my file, and my code was failing with yours. Now all should be ok.

dretax commented 9 years ago

Interesting. I remember I got "c" thing with another file too. xD