Cosmos shows getting mixed up

I have both the original Cosmos and the new Cosmos on my server. But plex is naming both the newer Cosmos. Even if I remove the newer show from my library the older show still gets tagged as the newer one. I’ve removed all the files, deleted the trash and cleaned the bundles but it still will show as the newer show.

My file naming is:

PBS -> Cosmos -> Season 01 -> Cosmos - S01E01 - The Shores of the Cosmic Ocean

Fox -> Cosmos A Spacetime Odyssey -> Season 01 -> Cosmos A Spacetime Odyssey - S01E01

One note, I did just organize my library. I had both Cosmos shows in one directory, but now I have them separated into channel subdirectories. Once I did this my issues started.

This is occurring because you have the names incorrect. It’s Carl Sagan's Cosmos

@ChuckPa said:
This is occurring because you have the names incorrect. It’s Carl Sagan's Cosmos

Thanks! I thought Plex takes the names from thetvdb.com? On there it’s just named Cosmos.

It does. This is one of those VERY rare exceptions where the name they show and the name that comes back doesn’t match.

I’ve not tried its full name “Cosmos A Personal Voyage”

Odd - I just tried searching the TVDB for both Carl Sagan and :Carl Sagan's Cosmos and got no results. If I just searched for Cosmos I got several results, including the correct one for the older series from 1980 featuring Carl Sagan

http://thetvdb.com/?tab=series&id=74995&lid=7

It is listed at the TVDB as just plain Cosmos, so @ChuckPa

  • how did you get that title, and can you share the secret :wink:
  • maybe it’s another one to add to the list that doesn’t match as expected when the proper TVDB title is used

edit: It also has an alternate title Cosmos: A Personal Voyage listed in the search… Never mind, see you have added that info

Hmmmmm, I have

[chuck@lizum tv2.180]$ ls -1 *Cosmos*
Carl Sagan's Cosmos:
Season 1/

Cosmos A Spacetime Odyssey:
Season 01/
[chuck@lizum tv2.181]$ 

Sounds like time to investigate, no?

Edit: Even more interestingly:

I actually have, which aligns with what truth should be,

drwxr-xr-x 3 chuck users      4096 Jul 18  2015 ../
-rw-r--r-- 1 chuck users 733245440 Mar 18  2014 Cosmos.S01E01.The Shores of the Cosmic Ocean.avi
-rw-r--r-- 1 chuck users 727560192 Mar 18  2014 Cosmos.S01E02.One Voice in the Cosmic Fugue.avi
-rw-r--r-- 1 chuck users 733632512 Mar 18  2014 Cosmos.S01E03.Harmony of the Worlds.avi
-rw-r--r-- 1 chuck users 733239296 Mar 18  2014 Cosmos.S01E04.Heaven and Hell.avi
-rw-r--r-- 1 chuck users 728414208 Mar 18  2014 Cosmos.S01E05.Blues for a Red Planet.avi
-rw-r--r-- 1 chuck users 733136896 Mar 18  2014 Cosmos.S01E06.Travellers' Tales.avi
-rw-r--r-- 1 chuck users 733755392 Mar 18  2014 Cosmos.S01E07.The Backbone of Night.avi
-rw-r--r-- 1 chuck users 733014016 Mar 18  2014 Cosmos.S01E08.Journeys in Space and Time.avi
-rw-r--r-- 1 chuck users 733333504 Mar 18  2014 Cosmos.S01E09.The Lives of the Stars.avi
-rw-r--r-- 1 chuck users 733288448 Mar 18  2014 Cosmos.S01E10.The Edge of Forever.avi
-rw-r--r-- 1 chuck users 733581312 Mar 18  2014 Cosmos.S01E11.The Persistence of Memory.avi
-rw-r--r-- 1 chuck users 732868608 Mar 18  2014 Cosmos.S01E12.Encyclopaedia Galactica.avi
-rw-r--r-- 1 chuck users 733726720 Mar 18  2014 Cosmos.S01E13.Who Speaks for Earth?.avi
[chuck@lizum Season 1.187]$

Curiouser and Curioser :smiley: I’m sure you’ll dig deeper now and get the mis-match thing resolved sooner or later

Ok, I caught it ‘in the act’. This is a solid, provable, bug in matching.

Cosmos/Season 1/Cosmos.S01E01.asdfahsdfhasdf.mkv

It first matched “Cosmos”.
It then downloaded the metadata.
As the metadata came up (before I could screenshot it), “Cosmos” became “Cosmos A Space Time Odyssey”

Seems I am wrong by using the name “Carl Sagan” in the Series title and somehow defeated or bypassed the bug. The episode titles don’t lie.

Try it. See if you name the episodes correctly, as I show above, but use the Series name I’ve used as well.

As for resolving it? >:) >:) >:)

Oh, I hate bugs! :smiley:

I will try sometime. I don’t have the series in my library anymore, but I’m pretty sure it was just “Cosmos” when I did. Maybe I had to fix incorrect match though… it was quite a while ago.

@leelynds

Easy way to fake it… Which is what I do

This is linux tcsh script. adjust for bash as appropriate. (typing from memory)

Argument 1 is the series title

#!/bin/tcsh

foreach i (01 02 03)
 mkdir -p"Season ${i}"
 foreach j (01 02 03 04 05 06 07 08 09 10)
    echo `date` this is absolute junk to make the scanner happy and not think it is a null file so it has to be all printable text like this `date` > "Season ${i}/${1}.S${i}E${j}.mkv"
    sleep 1
 end
end

Looking through my logs, I see why my ‘Carl Sagan’s Cosmos’ matches when it shouldn’t.

Comparing “Carl Sagans Cosmos” to “Cosmos A Space Time Odyssey” yields a score of 28.
Comparing “Carl Sagans Cosmos” to “Cosmos” yields a score of 35 (33 I can understand but… ok)

It get’s picked over the obvious wrong one.

In this case, “Two wrongs do make a right!” =))

In terms of minimizing match problems, using the year in the file name always works for me. I have never had any issues with matching using the following convention:

COSMOS_2014/SEASON_01/COSMOS_2014 - S01E05.mkv

When adding a year, it’s best to add it using parenthesis like movies.

Cosmos (2014)

What that does is throw bias toward a ‘year’ specification.

Still, and whenever possible, use the naming format spec. I say this because someone will see _ (single) and think __ (double) and/or in their language, it gets messy very quickly.

I am slowly using filebot to put all my series in proper fully compliant naming. It’s painless to do… just annoying to take the time.

@Berkyjay said:

@ChuckPa said:
This is occurring because you have the names incorrect. It’s Carl Sagan's Cosmos

Thanks! I thought Plex takes the names from thetvdb.com? On there it’s just named Cosmos.

If you include the year 1980, Plex will match correctly. I use this. Seems to work.
Cosmos (1980)
Cosmos - A SpaceTime Odyssey (2014)

@NewPlaza and all,

This overlaps with the Research thread I opened. If someone would like to add both “Cosmos” variants to that list, please do so.