Jump to content

Plugin: MetaExtractor


Recommended Posts

FrostByte
Posted

When Emby creates images after adding a new movie they look like the following in my media folders:

  • logo = clearlogo.png
  • backdrops = fanart.jpg, fanart1.jpg, fanart2.jpg, fanart3.jpg
  • thumbs = landscape.jpg
  • poster names = poster.jpg
  • banner.jpg
  • disc.ext
  • clearart.ext

I haven't seen filenames like in the pic I posted above in a long time.  I assume internally Emby still uses the old filenames?  I believe the filenames were changed a while back to be similar to Kodi, or something.

Posted (edited)
1 hour ago, FrostByte said:

When Emby creates images after adding a new movie they look like the following in my media folders:

  • logo = clearlogo.png
  • backdrops = fanart.jpg, fanart1.jpg, fanart2.jpg, fanart3.jpg
  • thumbs = landscape.jpg
  • poster names = poster.jpg
  • banner.jpg
  • disc.ext
  • clearart.ext

I haven't seen filenames like in the pic I posted above in a long time.  I assume internally Emby still uses the old filenames?  I believe the filenames were changed a while back to be similar to Kodi, or something.

I looked up how Kodi names them and changed the code to use that naming convention. Easy little fix.

Logo: logo → clearlogo.png
Backdrop: backdrop → fanart.jpg (first), fanart1.jpg, fanart2.jpg, etc.
Disc: disc → discart.png
Poster: poster.jpg
Banner: banner.jpg
Thumb: thumb.jpg
Clear Art: clearart.png

Will be in the next version.

Just so i get this right, are you sure thumbs = landscape? Couldn't confirm my self.

Will look into some settings for custom names as well. not sure  that will hit next version.

Edited by yocker
FrostByte
Posted (edited)

Yes, I just added the movie Legend to my library yesterday.  The Thumb in the metadata editor corresponds to the file landscape.jpg in the folder view below it.

I don't use all artwork (banner, etc) so not all images were created.

legend2.thumb.jpg.b773a6f4fab89bd99aa1fd8a260daf60.jpglegend.jpg.eadba91598c46c05cc20c394a154734b.jpg

Edited by FrostByte
Posted

Will change it to landscape :) 

  • Like 1
FrostByte
Posted

I wanted to be 100% so I did a refresh of metadata/images in Emby and it created a new landscape.jpg

legend3.jpg.062fe11e51a598de59b7c0d0fd816050.jpg

 

  • Like 1
FrostByte
Posted
1 minute ago, GrimReaper said:

Those are both valid naming conventions for artwork (as are others), checked in the order of priority. 

https://emby.media/support/articles/Movie-Naming.html#video-images

True, these are the new formats and how new images are created.  The older formats are still accepted as valid.

FrostByte
Posted

Only did a dry run so far with the images, but if I have fanart.jpg and all the newer formatted filenames and the script runs I'm guessing I'll have both the older backdrop filenames and the new fanart files, etc from looking at the log.

Posted
1 minute ago, kikinjo said:

Wating for introskip support.

Great job @yockeras always !

Working on it as we speak. :) 
 

  • Like 1
Posted
4 minutes ago, FrostByte said:

Only did a dry run so far with the images, but if I have fanart.jpg and all the newer formatted filenames and the script runs I'm guessing I'll have both the older backdrop filenames and the new fanart files, etc from looking at the log.

It will only overwrite files if that is enabled in the settings.
You can also choose a custom folder and then copy/move the files your self if you want to be 100% sure.

FrostByte
Posted
Just now, yocker said:

It will only overwrite files if that is enabled in the settings.
You can also choose a custom folder and then copy/move the files your self if you want to be 100% sure.

True, but I wouldn't really want both Backdrops and Fanart files, etc if it's only overwriting the current filenames which won't be the same.

I can test with the custom folder option, but I'm assuming that's what I'll get.

Posted
13 minutes ago, FrostByte said:

True, but I wouldn't really want both Backdrops and Fanart files, etc if it's only overwriting the current filenames which won't be the same.

I can test with the custom folder option, but I'm assuming that's what I'll get.

I can look into making it possible for custom naming but it will be after the intro skip.

  • Like 1
Posted (edited)

I have added the intro skip backup and restore.
!!!!! Please test on a test server  !!!!!!
From the testing i have done it works but i'm only one person.
In other words, please consider this a beta!

Also remember that new settings does not take effect before you press save!!
I need to fix that as well.

@FrostByteThe new names are in this as well, see if this works better.
I will add a way to customize the names before taking it out of beta.

MetaExtractor.dll

Edited by yocker
  • Like 4
FrostByte
Posted

The filenames are still not correct according to what Emby creates.  I think that link Grimreaper posted is only what Emby supports, but it doesn't indicate what Emby actually creates.

Here is a pic after a refresh of images for a movie. 

image.thumb.jpeg.21466e37d7cc3d18a35fc677cb343df6.jpeg

Here is a pic after a restore from the plugin

Notice the plugin added fanart-1, -2, etc but Emby created fanart1, fanart2, etc so the plugin didn't overwrite the old file but added the addition backdrops. 

Also, thumb should be landscape as that's what Emby creates.

The files clearlogo, poster, and fanart got overwritten correctly

yuma2.thumb.jpg.db9ceab621a48a27238b4aa83f61f49b.jpg

FrostByte
Posted

Just to make this more complicated are multi-version movies in the same folder.

I don't have any currently, but they would be formatted like the following all in the same folder.

  • {moviename1}-fanart.jpg
  • {moviename1}-fanart1.jpg
  • {moviename1}-poster

 

  • {moviename2}-fanart.jpg
  • {moviename2}-fanart1.jpg
  • {moviename2}-poster

I can probably come up with a couple multi-version movies to test

FrostByte
Posted

Here is the log

Primary: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/poster.jpg
Backdrop: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/fanart.jpg
Backdrop: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/fanart-1.jpg
Backdrop: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/fanart-2.jpg
Backdrop: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/fanart-3.jpg
Logo: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/clearlogo.png
Thumb: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/thumb.jpg
NFO: 3:10 to Yuma → /volume1/MyEmbyMedia/Movies/310 to Yuma (2007)/3.10.to.Yuma.2007.2160p.UHD.Blu-ray.HDR10plus.DTS-X.8ch.h265.Hybrid.Remux.nfo

 

Posted

Will fix it later today

  • Like 1
Posted (edited)
59 minutes ago, FrostByte said:

Just to make this more complicated are multi-version movies in the same folder.

I don't have any currently, but they would be formatted like the following all in the same folder.

  • {moviename1}-fanart.jpg
  • {moviename1}-fanart1.jpg
  • {moviename1}-poster

 

  • {moviename2}-fanart.jpg
  • {moviename2}-fanart1.jpg
  • {moviename2}-poster

I can probably come up with a couple multi-version movies to test

Wouldn't multi versions just share the same artwork as they are in essence the same movie ?
Googled it a little more and that does indeed seem to be the case, i can't replicate it saving the artwork as anything other than that either.

Edit:
I changed thumb to landscape and fanart-1 to just fanart1.

Started work on the custom naming as well, shouldn't take long. :)

 

Edited by yocker
  • Like 1
FrostByte
Posted
34 minutes ago, yocker said:

Wouldn't multi versions just share the same artwork as they are in essence the same movie ?
Googled it a little more and that does indeed seem to be the case, i can't replicate it saving the artwork as anything other than that either.
 

 

You may be right; I'm adding an extended version of one of the Harry Potter movies now to test.

FrostByte
Posted

I just added the 2 versions of Chamber of Secrets and can confirm they do now share the same images.  Looks like it was a bug which was fixed a while back.  Thanks for the refreshing my memory @Happy2Play

The only thing unique would be the nfo file then which isn't an issue since they all share the movie name already.

  • Like 3
Posted
8 hours ago, yocker said:

I have added the intro skip backup and restore.

Great, I'll test it out in a few days, too much happening right now.

  • Like 1
Posted

Added the custom names feature.
Again, this is beta and should be tested on a test server for now.

MetaExtractor.dll

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...