# How plex calculates this strange \*.bundle folder names

**URL:** <https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [April 7, 2022, 6:08pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851 "2022-04-07T18:08:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dolphin22](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dolphin22](https://forums.plex.tv/u/Dolphin22)\
**Post date:** [April 7, 2022, 6:08pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/1 "2022-04-07T18:08:43Z")

</div>

Hi,

is there a way to find out which Item (Movie) belongs to this fdacf42c5acf80662b3dd3646a4a94ff3f452cf.bundle folders.

nice would be a list of Move (ID) - dir name (\*.bundle)  
it is not in the metadata so i think plex is somehow calculate this names, the must be unique.  
does anybody know who to get such a list or extract it from the database (sql) or from the metadata.

greetins from vienna  
Andy

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [April 7, 2022, 7:08pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/2 "2022-04-07T19:08:25Z")

</div>

It’s derived from the SHA1 hash of the media’s guid.

Example -  
[JBOPS/find\_plex\_meta.py at master · blacktwin/JBOPS · GitHub](https://github.com/blacktwin/JBOPS/blob/master/utility/find_plex_meta.py)

You can only go that direction; you can’t identify the movie from the `blah.bundle` folder name.

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [April 7, 2022, 7:19pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/3 "2022-04-07T19:19:32Z")

</div>

What @Volts says

When said, there’s a 3rd party plugin that still works that can export a list to you with the path for all your medias for both the media folder, as well as the metadata folder

Tool is [ExportTools.bundle](https://github.com/ukdtom/ExportTools.bundle), and you’ll need to export at level 666

---

<div class="post-metadata">

**Author:** ![Dolphin22](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dolphin22](https://forums.plex.tv/u/Dolphin22)\
**Post date:** [April 8, 2022, 10:24am UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/4 "2022-04-08T10:24:58Z")

</div>

thx, that was exactly what i was looking for, because i had the problem, that plex generates the chapter thumbnails for some videos over and over again. always the same, not only new ones.  
I hope, i can find the assigned folders to delete some files, maybe there are some corrupted files.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [April 8, 2022, 10:26am UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/5 "2022-04-08T10:26:21Z")

</div>

> [@Dolphin22](#):
>
> i had the problem, that plex generates the chapter thumbnails for some videos over and over again

You should go to the video files and perhaps remux them into a fresh MKV container.

---

<div class="post-metadata">

**Author:** ![Dolphin22](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dolphin22](https://forums.plex.tv/u/Dolphin22)\
**Post date:** [April 8, 2022, 10:26am UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/6 "2022-04-08T10:26:43Z")

</div>

thx, i think i write my own tool, without exporting it first, i want this in real time 🙂

---

<div class="post-metadata">

**Author:** ![Dolphin22](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dolphin22](https://forums.plex.tv/u/Dolphin22)\
**Post date:** [April 8, 2022, 12:20pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/7 "2022-04-08T12:20:11Z")

</div>

Hi,

i had no luck, maybe i am doing something wrong.

here is what i tried:  
[guid] =\> plex://movie/5d776b37fb0d55001f56046d

i do an “echo -n “plex://movie/5d776b37fb0d55001f56046d” | sha1sum” on Linux and i get  
29b15bb1df7185ec14c804aaa1aba5b11c5ac29b

as far as i know the first character is the first subdir, so i do a  
“cd /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/2”  
but there is no dir with the name “9b15bb1df7185ec14c804aaa1aba5b11c5ac29b”  
(first character striped).

what i am missing ?

thanks for the help.  
Andy

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [April 8, 2022, 12:52pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/8 "2022-04-08T12:52:24Z")

</div>

> [@Dolphin22](#):
>
> cd /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/2

Make that:

`cd /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/<TYPE_OF_MEDIA>/2/9b15bb1df7185ec14c804aaa1aba5b11c5ac29b`

From the SourceCode of ExportTools:

> <https://github.com/ukdtom/ExportTools.bundle/blob/master/Contents/Code/misc.py#L429>

If you need the path to stuff in Media instead, you need the hash from this endpoint:  
`/library/metadata/<KEY>/tree`

Again, code in ExportTools:

> <https://github.com/ukdtom/ExportTools.bundle/blob/master/Contents/Code/misc.py#L406>

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 7, 2022, 12:53pm UTC](https://forums.plex.tv/t/how-plex-calculates-this-strange-bundle-folder-names/786851/9 "2022-07-07T12:53:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
