Jump to content
PenkethBoy

IMVDB Plugin - Errors and Improvements

Recommended Posts

PenkethBoy

Currently the IMVDB Plugin is quite poor at matching Music Videos - say approx 30% correct matches

 

An example

 

Robert Palmer - Addicted To Love

 

Current Emby search against IMVDB

2019-08-30 20:04:40.922 Debug App: Running MusicVideoNfoProvider for E:\ServerFolders\Multimedia\Music Videos\Robert Palmer\Addicted To Love\Addicted To Love.mkv
2019-08-30 20:04:40.923 Debug App: MusicVideoNfoProvider returned no metadata for E:\ServerFolders\Multimedia\Music Videos\Robert Palmer\Addicted To Love\Addicted To Love.mkv
2019-08-30 20:04:40.923 Debug App: Running ImvdbProvider for E:\ServerFolders\Multimedia\Music Videos\Robert Palmer\Addicted To Love\Addicted To Love.mkv
2019-08-30 20:04:40.924 Info HttpClient: GET https://imvdb.com/api/v1/search/videos?q=+Addicted To Love
2019-08-30 20:04:41.166 Info HttpClient: GET https://imvdb.com/api/v1/video/135975624717

Snippet from the returned json from IMVDB

.....
    "results": [
        {
            "id": 135975624717,
            "production_status": "r",
            "song_title": "Addicted To Love",
            "song_slug": "addicted-to-love",
            "url": "https:\/\/imvdb.com\/video\/roman-scott\/addicted-to-love",
            "multiple_versions": false,
            "version_name": null,
            "version_number": 1,
            "is_imvdb_pick": false,
            "aspect_ratio": null,
            "year": 2018,
            "verified_credits": false,
            "artists": [
                {
                    "name": "Roman Scott",
                    "slug": "roman-scott",
                    "url": "https:\/\/imvdb.com\/n\/roman-scott"
                }
            ],
            "image": {
                "o": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/135975624717-roman-scott-addicted-to-love_music_video_ov.jpg?v=2",
                "l": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/135975624717-roman-scott-addicted-to-love_music_video_lv.jpg?v=2",
                "b": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/135975624717-roman-scott-addicted-to-love_music_video_bv.jpg?v=2",
                "t": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/135975624717-roman-scott-addicted-to-love_music_video_tv.jpg?v=2",
                "s": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/135975624717-roman-scott-addicted-to-love_music_video_sv.jpg?v=2"
            }
        },
        {
            "id": 186352742692,
            "production_status": "r",
            "song_title": "Addicted to Love",
            "song_slug": "addicted-to-love",
            "url": "https:\/\/imvdb.com\/video\/robert-palmer\/addicted-to-love",
            "multiple_versions": false,
            "version_name": null,
            "version_number": 1,
            "is_imvdb_pick": false,
            "aspect_ratio": null,
            "year": null,
            "verified_credits": false,
            "artists": [
                {
                    "name": "Robert Palmer",
                    "slug": "robert-palmer",
                    "url": "https:\/\/imvdb.com\/n\/robert-palmer"
                }
            ],
            "image": {
                "o": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_ov.jpg",
                "l": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_lv.jpg",
                "b": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_bv.jpg",
                "t": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_tv.jpg",
                "s": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_sv.jpg"
            }
        },.......

Hopefully you can see that the second result is the correct Music Video - but Emby only uses the first result returned.

 

So....

 

Firstly the query URL for the IMVDB api should look like this - i.e. with "+" replacing any spaces in the video filename

 

....imvdb.com/api/v1/search/videos?q=Addicted+To+Love

 

and not like this

 

....imvdb.com/api/v1/search/videos?q=+Addicted To Love  (although it does work but it think that's just luck!)

 

Or is this supposed to be ...q=Artist name+video filename - and Emby is failing to look for the Artist Tag etc see below - For this Music Video example the metadata TAGS are present for Artist and AlbumArtist as they are for all my Music Videos??????????????

 

-------------

Secondly the IMVDB query accuracy can be considerable improved by adding the Artist name as well as the Video filename

 

This can be pulled either from a metadata tag i.e. Artist or AlbumArtist - which is probably the best option

or from the parent directory of the music video directory as this is the suggested folder structure for Music Videos or at least the one most have found to work best

 

e.g. .\Robert Palmer\Addicted To Love\Addicted To Love.mkv

 

Once you add the artist name to the IMVDB search query you get a considerable better accuracy on the returned json information - from testing 90% and usually the 10% that fail are because the video is not present on IMVDB

 

e.g.

using ....imvdb.com/api/v1/search/videos?q=Robert+Palmer+Addicted+To+Love

 

The correct Music Video is the first result returned

.....
    "results": [
        {
            "id": 186352742692,
            "production_status": "r",
            "song_title": "Addicted to Love",
            "song_slug": "addicted-to-love",
            "url": "https:\/\/imvdb.com\/video\/robert-palmer\/addicted-to-love",
            "multiple_versions": false,
            "version_name": null,
            "version_number": 1,
            "is_imvdb_pick": false,
            "aspect_ratio": null,
            "year": null,
            "verified_credits": false,
            "artists": [
                {
                    "name": "Robert Palmer",
                    "slug": "robert-palmer",
                    "url": "https:\/\/imvdb.com\/n\/robert-palmer"
                }
            ],
            "image": {
                "o": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_ov.jpg",
                "l": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_lv.jpg",
                "b": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_bv.jpg",
                "t": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_tv.jpg",
                "s": "https:\/\/s3.amazonaws.com\/images.imvdb.com\/video\/186352742692-robert-palmer-addicted-to-love_music_video_sv.jpg"
            }
        },.......

Irrespective of the above fixes being implemented .....

 

where Emby has the Artist name (from metadata TAGs etc) could this be used to verify that the first returned result is correct rather than just accepting anything that IMVDB returns as correct - so we get effectively "Unidentified" videos - as these would be a lot easier to deal with than the random rubbish we get now which means you have to check every video added to make sure the metadata added is "correct". Or another alternative add a TAG to the Emby metadata indicating that no direct match was identified or similar so they are easier to find and correct!!!!

 

Hopefully the above can be implemented soon to make adding new Music Videos a more pleasant experience than the hell it is now!

  • Like 1

Share this post


Link to post
Share on other sites
Luke

Yea I suppose we could prepend the artist name to the beginning of the search query.

Share this post


Link to post
Share on other sites
PenkethBoy

Thanks - look forward to an updated plugin in the near future

Share this post


Link to post
Share on other sites
Luke

Actually I looked at the code and we already do this. The problem is that you have to fill it into the metadata editor first and then refresh metadata.

Share this post


Link to post
Share on other sites
PenkethBoy

Which is kind of useless when you have thousands of MV's!!

 

You can pull the artist from the file metadata

 

Why is this different to any other metadata download

Share this post


Link to post
Share on other sites
Luke

We do already support pulling it from embedded metadata.

Share this post


Link to post
Share on other sites
PenkethBoy

well its not working as any new MV with embedded metadata is not being read by Emby

 

or you are not using it in the query when you should - as i outlined in the first post

 

5d6b656938803_Annotation20190901072934.j

 

it was available in my testing but not used by Emby

Share this post


Link to post
Share on other sites
Luke

Can you provide a sample video for testing? thanks.

Share this post


Link to post
Share on other sites
PenkethBoy

Attached is the Robert Palmer example Robert Palmer.zip

 

Its a zip of the Robert Palmer directory which would be placed in the root of my music library folder

 

e.g. ..\MusicVid\Robert Palmer\Addicted To Love\Addicted to Love.mkv

 

when added to Emby it gets identified incorrectly as this (just checked on a test version of .6 beta but same happens on Stable) - i.e. as Roman Scott and obviously with wrong date

 

5d6ea95eb1dde_Annotation20190903185149.j

 

Log snippet

2019-09-03 18:44:55.738 Debug App: MusicVideoNfoProvider returned no metadata for F:\EmbyTest\MusicVid\Robert Palmer\Addicted To Love\Addicted To Love.mkv
2019-09-03 18:44:55.739 Debug App: Running ImvdbProvider for F:\EmbyTest\MusicVid\Robert Palmer\Addicted To Love\Addicted To Love.mkv
2019-09-03 18:44:55.740 Info HttpClient: GET https://imvdb.com/api/v1/search/videos?q=+Addicted To Love
2019-09-03 18:44:56.462 Info HttpClient: GET https://imvdb.com/api/v1/video/135975624717

Correct IMVDB Id would be 186352742692

 

so not using metadata tag of Artist or AlbumArtist from file metadata - see image from previous post

 

If you need more info let me know

 

 

Share this post


Link to post
Share on other sites
Luke

Great, thanks.

Share this post


Link to post
Share on other sites
PenkethBoy

For Info - this is not fixed in beta .7

  • Like 1

Share this post


Link to post
Share on other sites
PenkethBoy

@@Luke

 

This is still not working (still same issues) in .8 and .9 beta

 

Still not using the media metadata tags in the lookup for the Music Video

Share this post


Link to post
Share on other sites
Luke

Have you tried adding a new video?

Share this post


Link to post
Share on other sites
PenkethBoy

@@Luke

 

Yes - using the Robert Palmer video sample i gave you

 

removed the RP video directory from Emby

ran a full lib scan

checked it was gone from Emby

removed the existing nfo from RP directory

re added the directory to Emby

 

Still same result - incorrectly detected - see post #9

 

Note this is with only imvdb metadata provider enabled

 

If i enable tmdb provider - that detects it as a movie - as its not sending the artist in the query either

Share this post


Link to post
Share on other sites
Luke

Thanks, I'll take another look.

Share this post


Link to post
Share on other sites
PenkethBoy

i have not added many Music videos recently

but i notice this is still not fixed - results are exactly the same as post #1

Metadata not being read from mv files

Just tested again with robert palmer and it comes up as Roman Scott

 

Can this be fixed once and for all please!

Share this post


Link to post
Share on other sites
Luke

I actually still have your sample file, and i just retested and it does have robert palmer as the artist. I don't have the imvdb plugin installed right now but i think it's just not utilizing the artist. The server does support the embedded information.

Share this post


Link to post
Share on other sites
Luke

Actually I did put in a fix for this a while ago. Just tested by installing the plugin, then refreshing metadata, and this is what it searched for:

2020-09-13 13:27:25.442 Info HttpClient: GET https://imvdb.com/api/v1/search/videos?q=Robert Palmer+Addicted To Love

 

Share this post


Link to post
Share on other sites
PenkethBoy

@Luke

not in my version of .26

2020-09-13 18:19:33.304 Info HttpClient: GET https://imvdb.com/api/v1/search/videos?q=+Addicted To Love
2020-09-13 18:19:33.936 Info HttpClient: GET https://imvdb.com/api/v1/video/135975624717

So why would that be?

i did the remove/scan/readd dance rather than refresh the metadata

plugin version 1.0.8.0

i have tried a refresh - no change

removed the imvdb id - refresh no change

remeoved imvdb and artist name - refresh no change

refresh was a replace all metadata all three times

embyserver.txt - log from my attempts to get this to work - as an aid

attempt are approx from 18:00 to 18:40

 

Share this post


Link to post
Share on other sites
Luke

Well first thing i would try is adding the video again without the plugin. Does robert palmer show up as a clickable artist on the detail screen? Try adding it brand new by renaming it.

Share this post


Link to post
Share on other sites
PenkethBoy

removed plugin

removed folder from library

deleted .nfo file

scanned library

added back folder with mv inside

and Emby does not read the artist/artists or Albumartist metadata - as the MV is just the name of the file

 

701012378_Annotation2020-09-13190448.jpg.6d3359dbc92e9ca19128b2ad526ba33e.jpg

 

changing the name to Additcted to Love1 - had no effect other than to update the name of the mv in emby

Share this post


Link to post
Share on other sites
Luke

Maybe try a fresh install to compare? I'm not sure what to say at the moment as I get a completely different result on the same sample file you provided me.

Share this post


Link to post
Share on other sites
PenkethBoy

Ok - without the plugin installed

I removed all my MV - did a scan

then added back one artist and emby did see the metadata - picked up the artist - great

BUT

a second and subsequent artists mv did not work - hmm

 

The difference between the first artist and all the others is that those MV are H264 mp4 file and all the rest are H265 mkv files - is it possible emby is that picky?

 

Edited by PenkethBoy

Share this post


Link to post
Share on other sites
Luke

Did you try running them through ffprobe to see if the artists are recognized consistently between the two?

Share this post


Link to post
Share on other sites
PenkethBoy

Ok - have rebuilt the library - renamed library.db

And now its working!

I still have the old db file will see what i can find in it to see if the "error" is obvious

The above was without the plugin installed - i will add that back now and see if it makes a difference

Share this post


Link to post
Share on other sites

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