Hello,
Does anyone know how to calculate the hash and open_subtitle_hash of media_parts? and also the metadata_items hash?
Hello,
Does anyone know how to calculate the hash and open_subtitle_hash of media_parts? and also the metadata_items hash?
The metadata_items.hash is a sha1 of metadata_items.guid
The guid looks like it could be something like this:
plex://show/5d9c086c46115600200aa2fe
Now I wonder how to find the guid that start with plex://, where does 5d9c086c46115600200aa2fe come from ?
If anyone has the solution for hash and open_subtitle_hash of media_parts I would like to know.
Regarding the metadata hash, then you SHA-1 encrypt the entire string plex://show/5d9c086c46115600200aa2fe
Above would give you a hash as 4f0e9c2b6d8a3779799387a0dd13d9bfddfd44fd
So when looking in the file system, look for directory 4/f0e9c2b6d8a3779799387a0dd13d9bfddfd44fd.bundle
Regarding OpenSubtitles, it’s a hash of the start of the actual media
You can find the source code here: GitHub - opensubtitlescli/moviehash: Provides a hash function to match subtitle files against movie files.
Great, thanks!
And for the hash of media_parts do you have any idea?
I already told you how to get the hash from the GUID
This is to get the hash of metadata_items.hash, not the one of media_parts.hash which is different
Sorry, misunderstood
You can find the code to how I did it in WebTools-NG here:
And
Thanks, I see that in WebTools-NG you retrieve the hash by doing a fetch to plex, I would have liked to build it myself from the necessary information