I’m glad it’s working so well for so many people!
@scaper: Thanks for the sympathy, actually the bank gave us back our money (with the caveat that they’ll take it away again if there’s proof that those were our charges) and Christmas turned out just fine!
Thank you so much for this! I kept trying to show people The Venture Bros. and it was causing all sorts of confusion.
Hi,
do I need to download the zip file, if yes where do I place this in my mac???
Thanks a lot!!!
Download the zip and put the unzipped file in ~/Library/Application Support/Plex Media Server/Plugins, where the ~ represents your user home folder.
Thanks a lot, i will try this tonigh will let you know!!!!
I just tried it, but it does not work for me, as I said before I have the following TV shows
24 hours 1 season till the 6
Seinfeld all of them
The company
and some others
for example if I go to media server I see in Seinfeld only 4 seasons instead of 9, and than if I go to plex I can´t play them????
Same issues with all the other tv shows
As you said before where?
You need to understand what this agent does. All it does is match the episodes in the order they appeared on the DVD instead of the default of Aired Order. The classic example is Firefly: the first episode that aired was “The Train Job”, but on the DVD they appeared in the order that the creator wanted them to be seen, starting with “Serenity”. All this agent does is correctly identify the file “Firefly - 1x01.mkv” as Serenity instead of The Train Job.
It does not make anything show up that didn’t already (that’s the function of the scanner) and it does not have anything to do with whether Plex can play your files.
Sorry for not quoting myself
I understand what the plugin shoud do, that's the strange thing it does not show all season of seinfeld for example it shows 4 seasons instead of 9
What i understand from your comments is that the tv shows in plexapp does not recognise dvd's
Are you the same as BudaGallego? I'm confused.
Do the episodes show up in Plex without this agent? If not, using the agent **will not help**. It only gets metadata for those items that the scanner is able to identify.
I know at least some people have had some success in getting Plex to recognize some form of dvd image as TV Shows. I don't know if that was as .iso images, straight VIDEO_TS folders or what. Either way, this thread is not the place to seek help for that issue.
Seems that I have 2 different user 1 on my mobil phone and another on my mac mini
the episodes shows up in plex but when hit enter i see the for example
24 hours season 1 after I see this i hit again enter
I see eps 1 till 4 instead 24 eps, I guess this is due to the fact the scanner is reading 1 eps per dvd…
could you please tell me where I need to ask this???
Thanks a lot for your help anyway
BudaGallego & xurxo1975
Ask in [General User Help: Plex/Nine](http://forums.plexapp.com/index.php/forum/61-plexnine/).
Worked Great, Thank You!
I’m not sure if this is isolated to me, as I haven’t seen anyone else post about it.
I’ve only tried with Firefly, as it’s the only show I have which needs DVD ordering.
Firefly with aired ordering - theme music when I browse via Plex
Firefly with DVD ordering - no theme music when I browse via Plex
I changed it back and forth a few times, and each time I use the DVD ordering agent, I lose the theme music.
Anyone else having the same issue?
Having to chose over DVD ordering or having theme music, the ordering wins hands down, so many thanks once again for this plugin 
-Kristijan
You have to make a small tweak to the Plex Theme Music Agent.
Go to ~/Library/Application Support/Plex Media Server/Plug-ins/ right-click on PlexThemeMusic.bundle, and select “Show Contents”. Then open Contents/Code/init.py in any text editor.
Change the line
contributes_to = ['com.plexapp.agents.thetvdb']
to
contributes_to = ['com.plexapp.agents.thetvdb','com.plexapp.agents.thetvdbdvdorder']
That should fix it. Thanks for bringing that up!
Hi Raindancing,
Making that change still didn’t work for some reason (unless I’ve done something incorrectly).
vi /Users/kristijan/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/PlexThemeMusic.bundle/Contents/Code/init.py
#Plex Theme Music<br />
THEME_URL = 'http://tvthemes.plexapp.com/%s.mp3'<br />
<br />
def Start():<br />
HTTP.CacheTime = CACHE_1DAY<br />
<br />
class PlexThemeMusicAgent(Agent.TV_Shows):<br />
name = 'Plex Theme Music'<br />
languages = [Locale.Language.English]<br />
primary_provider = False<br />
#contributes_to = ['com.plexapp.agents.thetvdb']<br />
contributes_to = ['com.plexapp.agents.thetvdb','com.plexapp.agents.thetvdbdvdorder']<br />
<br />
def search(self, results, media, lang):<br />
results.Append(<br />
MetadataSearchResult(<br />
id = media.primary_metadata.id.replace('tt',''),<br />
score = 100<br />
) <br />
)<br />
<br />
def update(self, metadata, media, lang):<br />
if THEME_URL % metadata.id not in metadata.themes:<br />
try:<br />
metadata.themes[THEME_URL % metadata.id] = Proxy.Media(HTTP.Request(THEME_URL % metadata.id))<br />
except:<br />
pass<br />
I then restarted the Plex Server, even tried refreshing the metadata a few times, but still no music.
I even changed back to Aired ordering, and the music come back.
Any ideas?
Thanks for you help.
-Kristijan
Forgot to mention one crucial step: go into Metadata Agent settings (the gear icon in PMM) and enable “Plex Theme Music” for the DVD order agent.
Now, there’s a tiny issue in that Plex can undo your changes since it wants you to have the same version of the agent that’s in the store.
Move the bundle somewhere else, and create a symlink in the plugins folder (since you’re text editor of choice is vi, I imagine you already know how to do that, but if anyone else wants details on how to do that, I’ll be happy to provide-- just ask).
Okay, I found a much, MUCH better solution.
Leave the PlexThemeMusic.bundle alone, and delete the old DVDorder.bundle.
This one fixes the the theme music issue.
DVDorder.plexapp (187 KB)
(You still have to enable it under metadata agent settings.)
Awesome, works a treat 
Many thanks!
-Kristijan
How does this work, exactly? Say you have a dvd series like Batman the Animated Series and you have it in DVD format. This compilation is 4 volumes with 4 discs each. What does this plugin require? Does it require the individual episodes ripped? If so, what naming convention does it require? Would it take D1E1, D1E2, D1E3, D1E4 … D4E1 … etc? Or does this presume that you rip them from the DVDs and name them in the order they’re ripped and you know how many episodes are in each season and you name them in the order they appear on the DVDs like S01E01, S01E02, S01E03, S01E04 … and if there are 12 eps the 13th episode in the disc order would start S02E01 and so on?
The reason I’m asking is because I’m trying to find a way to rip episodes from dvd’s that I have and not have to manually check each and every episode / disc to see how many episodes there are in the series and match them up as I rip them. I’d much rather use handbrake and name them by disc number and episode number and use some agent to determine where they belong. There might even be an agent for this already, though I wouldn’t know what to look for in terms of name.
Sorry if this is unclear. It’s sort of hard to articulate my question.
The purpose of this agent is to handle TV Shows where the DVD Order is different from the aired order. Many people prefer to keep the DVD Order when it's different, because it's often the order that the creators of the show intended it to be viewed in.
This agent requires the episodes to be ripped individually, the naming convention to be the same as usual tv episodes, and the episode numbers to match up with the DVD Order field that thetvdb has. If you have the Season One box set, and name them S01E01, S01E02, S01E03, ... they *should* match up correctly, assuming the DVD Order field is filled in for that series on thetvdb (it does fall back to aired order if there is no DVD Order information, though, so you could theoretically use it on everything, but it's going to be a lot slower than the regular agent).
Unfortunately, I don't think there's a way to automate this as elegantly as you're describing. And honestly, I don't think it's likely to ever be totally automatable. When I recently ripped the old Hawaii Five-O Season 2, each episode was listed twice in the title list: once with the preview commercial for that episode stuck in front, and once without. Even if situations like that didn't arise, we'd need a online source that listed the episodes per disc to get the data from, and I'm not aware of anything like that.