since they are in the cloud that would take a while, (would have to download all the files) could i just copy like 2 or 3 of the episodes to a new library for the test?
i’m willing to try it… willing to try anything at this point ahaha…
but i do wonder if its gonna prove anything, as i definitly have new libraries created after the plex media library agents were upgraded… and its not specific movie/show related… for instance if i just search for “the” i get the timeout and no results page… and no hits from the newer libraries/created after the new plex media agents/libraries were a part of plex : (
The metadata in the entry will tell us a lot.
If the metadata is a perfect match – That proves it’s not the DB
if the metadata is different – We know the whole DB didn’t rematch to the new agents.
If that’s the case, I’ll get help from engineering to do this. They know how at a much deeper level than I do.
so does it need to be all the episodes or can you tell if i just put one or two in the new test library?
The test library can be anything which you know will fail as you’ve currently identified.
I would avoid music
and again since i DEFINITLY have multiple new libraries created after the new plex agents were added… that have many many things with the word “the” in the title for instance…
yet a search for The does the 20 second timeout and returns no results…
or are we looking for a situation where one or more of the libraries somehow didn’t upgrade completely? (again is there a way for me to tell? i clicked on all the libraries to double check none of them still had the “upgrade matching” option.) : ) : (
THIS ^^ is exactly what we’re hoping to confirm / deny
ok i made the test library, with two eps of the rookie.
refreshed metadata and analyzed
searching for The Rookie still times out after 20 seconds, searching rookie finds it instantly…
now how do i get you the metadata for each show/library?
You can reply here.
The idea is to COPY the text of the metadata , from top → </media> line
wrap that in the </> code block so the forum doesn’t eat it.
```
Paste <XML> here
```
Will look like
Paste <XML> here
and be safe from the forum distorting / hiding it.
You can paste the XML here.
how/where do i find this though?
Hover over an episode → Get Info → View XML
You’ll see an unformatted web page that looks like this
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="4866f548-236a-49a4-8150-9aa08b431a84" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1671045426">
<Video ratingKey="115498" key="/library/metadata/115498" parentRatingKey="115497" grandparentRatingKey="115425" guid="plex://episode/5d9c19c9ffd9ef001ea405b3" parentGuid="plex://season/602e74550f4bde002da4d4dc" grandparentGuid="plex://show/5d9c08ffe264b7001fc4d397" type="episode" title="Pilot" grandparentKey="/library/metadata/115425" parentKey="/library/metadata/115497" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" grandparentTitle="The Rookie" parentTitle="Season 1" contentRating="TV-14" summary="Starting over isn't easy, especially for small-town guy John Nolan who, after a life-altering incident, is pursuing his dream of being a police officer. As the force's oldest rookie, he’s met with skepticism from some higher-ups who see him as just a walking midlife crisis. Throw in a workplace romance, a hostage situation, and some tough love from their new training officers, and the latest Los Angeles police rookie class has an uphill battle ahead of them." index="1" parentIndex="1" audienceRating="7.6" thumb="/library/metadata/115498/thumb/1672882158" art="/library/metadata/115425/art/1672882151" parentThumb="/library/metadata/115497/thumb/1672882158" grandparentThumb="/library/metadata/115425/thumb/1672882151" grandparentArt="/library/metadata/115425/art/1672882151" grandparentTheme="/library/metadata/115425/theme/1672882151" duration="2581056" originallyAvailableAt="2018-10-16" addedAt="1672882149" updatedAt="1672882158" audienceRatingImage="themoviedb://image.rating">
<Media id="205951" duration="2581056" bitrate="7666" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="205953" key="/library/parts/205953/1668815567/file.mkv" duration="2581056" file="/vol/media/tv2/The Rookie/Season 01/The Rookie - S01E01 - Pilot.mkv" size="2473206938" container="mkv" videoProfile="high">
<Stream id="308104" streamType="1" default="1" codec="h264" index="0" bitrate="7666" language="English" languageTag="en" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="308105" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)" extendedDisplayTitle="English (EAC3 5.1)"> </Stream>
</Part>
</Media>
Copy from the beginning until you get the </Media> line
I think this is because it is still searching all libraries. I don’t think there is a way to search just one library?
When we remove “The” from the search query “The Rookie”, Results are instantaneous.
not sure if i’m pasting this properly… was confused by the < > suggestion…
this is the metadata for the episode in the new test library
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="130" librarySectionTitle="the rookie test" librarySectionUUID="5a995861-3fa5-4314-8839-cc4936ce71ff" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1671045426">
<Video ratingKey="1034409" key="/library/metadata/1034409" parentRatingKey="1034408" grandparentRatingKey="1034407" guid="plex://episode/5de7da86f7b868001d898bd0" parentGuid="plex://season/602e74500f4bde002da4d4bd" grandparentGuid="plex://show/5d9c08ffe264b7001fc4d397" type="episode" title="Impact" grandparentKey="/library/metadata/1034407" parentKey="/library/metadata/1034408" librarySectionTitle="the rookie test" librarySectionID="130" librarySectionKey="/library/sections/130" grandparentTitle="The Rookie" parentTitle="Season 2" contentRating="TV-14" summary="Danger is ever-present as the officers of the Mid-Wilshire precinct grapple with the aftermath of a plotted attack on the city of Los Angeles, leaving Officer Bradford fighting for his life." index="1" parentIndex="2" audienceRating="7.2" skipCount="1" lastViewedAt="1569997367" thumb="/library/metadata/1034409/thumb/1672881674" art="/library/metadata/1034407/art/1672881674" parentThumb="/library/metadata/1034408/thumb/1672881674" grandparentThumb="/library/metadata/1034407/thumb/1672881674" grandparentArt="/library/metadata/1034407/art/1672881674" grandparentTheme="/library/metadata/1034407/theme/1672881674" duration="2561088" originallyAvailableAt="2019-09-29" addedAt="1672879645" updatedAt="1672881674" audienceRatingImage="themoviedb://image.rating">
<Media id="1102164" duration="2561088" bitrate="9838" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="1632078" key="/library/parts/1632078/1672879645/file.mkv" duration="2561088" file="/home/jaquestati/plex2/media/the rookie test/The.Rookie/The.Rookie.S02E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb/The.Rookie.S02E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" size="3149603908" container="mkv" videoProfile="high">
<Stream id="4389393" streamType="1" default="1" codec="h264" index="0" bitrate="9838" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="4389394" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)" extendedDisplayTitle="English (EAC3 5.1)"> </Stream>
<Stream id="4389395" streamType="3" codec="srt" index="2" bitrate="0" language="English" languageTag="en" languageCode="eng" title="SDH" displayTitle="English (SRT)" extendedDisplayTitle="SDH (English SRT)"> </Stream>
</Part>
</Media>
and this is the metadata from the same episode in the old library
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="74" librarySectionTitle="TV recently added" librarySectionUUID="c9ff7fcc-68b6-4aa4-885e-73ad2cf594ee" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1671045426">
<Video ratingKey="461458" key="/library/metadata/461458" parentRatingKey="411851" grandparentRatingKey="411850" guid="plex://episode/5de7da86f7b868001d898bd0" parentGuid="plex://season/602e74550f4bde002da4d4dd" grandparentGuid="plex://show/5d9c08ffe264b7001fc4d397" type="episode" title="Impact" grandparentKey="/library/metadata/411850" parentKey="/library/metadata/411851" librarySectionTitle="TV recently added" librarySectionID="74" librarySectionKey="/library/sections/74" grandparentTitle="The Rookie" parentTitle="Season 2" contentRating="TV-14" summary="Danger is ever-present as the officers of the Mid-Wilshire precinct grapple with the aftermath of a plotted attack on the city of Los Angeles, leaving Officer Bradford fighting for his life." index="1" parentIndex="2" audienceRating="7.2" skipCount="1" lastViewedAt="1569997367" parentYear="2019" thumb="/library/metadata/461458/thumb/1672877961" art="/library/metadata/411850/art/1672877958" parentThumb="/library/metadata/411851/thumb/1672877961" grandparentThumb="/library/metadata/411850/thumb/1672877958" grandparentArt="/library/metadata/411850/art/1672877958" grandparentTheme="/library/metadata/411850/theme/1672877958" duration="2561088" originallyAvailableAt="2019-09-29" addedAt="1591842951" updatedAt="1672877961" audienceRatingImage="themoviedb://image.rating">
<Media id="433983" duration="2561088" bitrate="9838" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="eac3" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="478283" key="/library/parts/478283/1589303202/file.mkv" duration="2561088" file="/home/jaquestati/plex2/media/tv 2021/The.Rookie/The.Rookie.S02E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb/The.Rookie.S02E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb.mkv" size="3149603908" container="mkv" videoProfile="high">
<Stream id="1114440" streamType="1" default="1" codec="h264" index="0" bitrate="9838" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="progressive" width="1920" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="1114441" streamType="2" selected="1" default="1" codec="eac3" index="1" channels="6" bitrate="640" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" samplingRate="48000" displayTitle="English (EAC3 5.1)" extendedDisplayTitle="English (EAC3 5.1)"> </Stream>
<Stream id="1114442" streamType="3" codec="srt" index="2" bitrate="0" language="English" languageTag="en" languageCode="eng" title="SDH" displayTitle="English (SRT)" extendedDisplayTitle="SDH (English SRT)"> </Stream>
</Part>
</Media>
PERFECT.
Thank you.
Analyzing now
They are as I’d expect.
The fields I’m looking at are the guid fields. These tell me how it was matched
I’m going to ask for more help. From all I see here, which matches mine, this should work.
Yes, I’m saying when searching for “The Rookie”, the server is still searching all libraries, so it’s inconclusive as to whether the new library can return results instantaneously when the old library is causing it to time out.
trying to think of any variable that might be causing this…
i’ll put forward/admit that i don’t follow the strict plex naming conventions (because plex has always matched things perfectly without me making series subfolders) ie usually the episodes are either in the root of, say a folder called The Rookie or each ep in subfolders in that directory)
long shot it would have any effect on searches timing out…
but appreciating your help/troubleshooting and just wanted to add whatever info/differences from the norm i can think of : )
unfortunately file naming only affects the file scanner/matcher. Once its matched it populates the database with metadata. Plex then searches that database for the search terms. I do not know if Plex has one, but often databases will have a search_index table that contains text fragments and ties them to a movie/episode so that a “Full Text” search doesn’t need to be performed it just quires the optimized search index table instead. If search_index was either missing or damaged your search results could be inconsistent. But I dont know how plex handles metadata searching so I will leave that as pure speculation.
Dumb question time… So I can “check the box”
When “DBRepair.sh” was run
-
- Rebuild the DB file itself (in order and records compacted)
-
- Rebuild all the indexes which were defined in the DB (what search uses)
I need to find an example somewhere so see if this is getting hung up on the first word (adjective) or if something else.
I’m thinking of “Conan the Barbarian”.
Search with and without “the”.
I should be able to get a hit on “the barbarian”