nicknsy / jellyscrub

Smooth mouse-over video scrubbing previews for Jellyfin.
MIT License
668 stars 27 forks source link

Is it possible to use the same images as plex? #64

Open adrianbill opened 1 year ago

adrianbill commented 1 year ago

My Jellyfin and Plex servers share the same media library, is it possible to use the same images generated by Plex with Jellyscrub?

nicknsy commented 1 year ago

Not at the moment as the structure and networking is jellyscrub-specific. What's the folder structure like for bif files in plex? Are they stored with the media?

If there's a similar structure it's definitely something I could look in to.

adrianbill commented 1 year ago

Thanks for replying!!

What's the folder structure like for bif files in plex? Are they stored with the media?

Plex seems to store the bif files in plex/Library/Application Support/Plex Media Server/Media/localhost/ after that is has folders named "0","1", ... , "e", "f" inside which are folders like 9ecdc7be94ec634a91d11db9d5e3f616fcfb3d.bundle/ then it goes Contents/Indexes/index-sd.bif

so the entire structure looks like this plex/Library/Application Support/Plex Media Server/Media/localhost/6/50aaead4e410082eddaa9f98fd463bc8bbf4567.bundle/Contents/Indexes/index-sd.bif

Not sure if that helps...

Cheers!

nicknsy commented 1 year ago

Looks like the folder structure uses the media ID for as the folder name to store metadata, similar to jellyfin. The problem is that once the media is imported to jellyfin they will have completely new IDs as generated by jellyfin so I see no easy way to map them automatically--though it would be technically possible with some sort of plugin that could sync/map the IDs between both platforms.

mrgreywater commented 1 year ago

This python script can generate bif files for plex. It finds the bif location for the movie files using the plex api and some config information.

https://github.com/stevezau/plex_generate_vid_previews