Jump to content

What info is used by emby to allocate a programme to a season


Recommended Posts

Posted

Hi

 

Emby Server Version 3.0.7200.0

 

I'm sure this has been asked / reported before but I can't find anything relevant from the searches I have performed.

 

I have a problem with one particular UK programme (DCI Banks)

 

There have been 5 formal seasons, following a 2 part pilot.  thetvdb.com refers to this as 'one special' and '5 seasons', themoviedb.org refers to it as 'one movie' and '5 seasons'.  Some uploaders of programmes have mixed this up in their naming conventions by using S01 (s1) for the pilot 1 and the S06 for the current season (season 5).  So in the past, files have been downloaded with the wrong seasons

 

I have renamed files and folders, removed all metadata (I can find) rescanned the EMBY database and programmes still get shown in the wrong season.  I have removed the whole of the season (cut and pasted into a unmonitored location) , rescanned the database and then copied back, but the result is the same. 

 

The screenshot attached shows what is happening.

  • the top tow rows of icons are, on my machine, named as S04Exxx etc and belong to Season 4 as shown by the two online services mentioned above
  • The bottom row are on my machine as S05Exxx etc, even the last entry which is shown as S06xxx etc

The metadata manager in EMBY does not have an entry for the season one it was cut and moved as part of my 'messing around'.

 

So where is the naming information coming from and how are files allocated to seasons?  or what can I do to fix this?

 

Cheers

 

 

post-1243-0-86741800-1474275931_thumb.png

Posted (edited)

Hi Luke


 


I think I have sorted the issue now.  I believe it was all related to the season and episode numbering of the files at the time the series was created in my library.


 


The file structure and naming meet the conventions.


 


However, when the series and earlier seasons were originally created, the season numbers were out by one (as documented in thetvdb.com and themoviedb.org) such that:


·         the 'special episode' was originally created as Season 01 (with the episode itself created as 'DCI Banks - S01.E01-02 - Aftermath.avi')


·         Season 1 was created as 'Season 02' with all episodes numbered S02E0X etc


I


1.     renamed all directories and files to re-align my file structure to match the two online databases


2.     Re-scanned the database.  This, in itself, did not seem to refresh the EMBY database


I then


  1. Shut down Emby
  2. Moved the Series folder out of the monitored area
  3. Started Emby
  4. Rescanned the Emby DB.  This appeared to remove references to the Series from Emby in the browsing view and metadata manager view.
  5. deleted all metadata files and folders from the Series folder structure (series, seasons and episodes) leaving just the media files
  6. Closed Emby
  7. Copied the series back to the monitored area
  8. Started Emby
  9. Re-scanned the database

The results (for season 5) were those attached to my original post


 


I have since repeated the last exercise, but allowed the scheduled task to clean the database to run before step 6 above.  I now have exactly what I expected to see!


Is there a way to manually run the ‘Clean Database’ task?


Keep up the great work, Emby is a brilliant piece of software and the support you guys give is excellent.


Thanks


 


John


Edited by johnbury
PenkethBoy
Posted

I have seen this too with initially wrongly created file names (episode number) and a rescan does not update the episode numbers or the title in the metadata - even when you tell it to get new metadata

 

As John says you have to move the files out of your library - scan then clean the database - then move back the video files without the nfo/image files for the metadata to refresh correctly/completely 

 

@@johnbury - you can run the clean manually by going to scheduled tasks and clicking on the arrow ( > ) for the task you want to run on the right hand side :)

 

Dev Server - 3.1.6106.19419

Posted

@@PenkethBoy

 

Thanks for the tip.  I didn't notice the arrows.  Doh!

 

Cheers

 

John

  • Like 1
Posted

I have seen this too with initially wrongly created file names (episode number) and a rescan does not update the episode numbers or the title in the metadata - even when you tell it to get new metadata

 

As John says you have to move the files out of your library - scan then clean the database - then move back the video files without the nfo/image files for the metadata to refresh correctly/completely 

 

@@johnbury - you can run the clean manually by going to scheduled tasks and clicking on the arrow ( > ) for the task you want to run on the right hand side :)

 

Dev Server - 3.1.6106.19419

 

I just tested this by editing an episode with incorrect info then refreshing, no problem found. I think you either just have a perception that all these steps are necessary or some combination of settings not causing things to get updated.

Posted

Hi Luke

 

When you say 'refreshing' is that just a rescan of the database or some other operation?

 

Thanks

 

John

PenkethBoy
Posted

I just tested this by editing an episode with incorrect info then refreshing, no problem found. I think you either just have a perception that all these steps are necessary or some combination of settings not causing things to get updated.

 

Maybe, but its a reproduceable issue i had the other day that i will test again to see if it still remains or i can see what bit is not working and will report back

PenkethBoy
Posted

@@Luke

 

Took a bit of playing but the issue is with Specials and those specials that do not have metadata online - i.e. extra specials

 

So if you have a extra special from a bluray rip e.g. ShowName-S00E99-nameofspecial.mkv and you update the metadata title (within the MKV) and ask for a refresh or library scan it does not pick up the change. I can see why as changing the filename or title metadata does not affect the file dates on windows so Emby probably thinks its the same file and skips it. Even changing the internal title name with mkvmerge does not change the file size.

 

So when i ask for an refresh with replace metadata Emby thinks nothing has changed on the file and does not look for any changes within the file e.g. Title.

 

My assumption was that "replace metadata" replaced all metadata not just the online metadata - or thats at least what it appears - hence why i found moving the files out of the library and then putting them back after a scan / clean of the database picks up the change

 

The reason why i want to add the title to the MKV file is that with these extra specials they appear with the internal "title" in the Specials page with whatever MakeMKV put in in the first place and this is usually the same for several files so you cant tell which is which without looking at the metadata for each file.

Posted

@@Luke

So if you have a extra special from a bluray rip e.g. ShowName-S00E99-nameofspecial.mkv and you update the metadata title (within the MKV) and ask for a refresh or library scan it does not pick up the change. 

 

this is expected behavior because nfo metadata takes priority over embedded titles, so once you have your nfo metadata the first time around, you would either have to just change the title in the emby web interface, or change it in both the nfo and mkv.

PenkethBoy
Posted

So if i was to delete the nfo file and rescan this would update the data base/metadata by re reading the file info?

Posted

for most metadata yes but the title is often a sensitive issue. i think we might have a check to avoid overwriting the existing title with the embedded title. i'd have to review it to confirm.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...