Hi all,
As I watch and keep a lot of anime, I’m currently trying to write a metadata agent for AniDBs UDP API. The problem is that AniDB uses a hash function to uniquely identify movies and tv shows, and this hash function requires that I read the whole media file. Currently, with the restricted python runtime in use I can only read the file data fully which I would like to avoid (8GB of data in-memory feels like a no-no) with the Core.storage.load() function, but I would like to do an open() so I can read the file in chunks.
Is there any way that Plex could supply us with a callback-based API for reading files in custom chunks, so that I could add the hashing function to that (if we want to avoid open() at all costs)? I’m almost finished with my agent and this is the last thing holding me back, so it would be nice if it could be sorted somehow.
Cheers,
Fredrik
I also need this feature to program a subtitles agent. A site provides a subtitle file based on a hash key, which can be generated from first 1 MB data of video stream.
I would be happy if Plex supports new API or extends existing Core.storage.load() to handle offset and size of input buffer.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.