fmpfeifer / ShareazaParser

Script to parse Shareaza's "dat" files.
GNU General Public License v3.0
7 stars 4 forks source link

How do you know how to parse the library? #3

Open SamKlier opened 2 years ago

SamKlier commented 2 years ago

Hi, thank you so much for this script which parsed an important Shareaza file for me perfectly. Now I'm trying to unterstand what's going on in the script. I'm specially interested in the tristate 'shared' value (line 1036). How do you know how to parse the information? Is there a Shareaza documentation about the serialized objects? Or did you reverse engineer it?

Thanks in advance... Sam

fmpfeifer commented 2 years ago

Hi, sorry for the delay.

Actually Shareaza is open source. So I just downloaded the source code and read and tried to understand it, at least the part of the code dealing with saving and reading the dat files.

There is a nice fork of the source code here: https://github.com/ivan386/Shareaza (for me it is much easer to get the code in github than in subversion - the original version control of shareaza). You can see the definition of a TRISTATE here: https://github.com/ivan386/Shareaza/blob/0c2f2f56c8294c930f26463a522057d00ed319fa/shareaza/Shareaza.idl#L42