Page 1 of 1

Trouble with online metadata

PostPosted: Sat Dec 01, 2018 11:23 am
by loeffelpan
Until the last years i used serviio just to list my directories and choose manually the right episode oder movie from my library.
Yesterday i tried to use serviio a little as it is designed and turned on online metadata.

Works fine for the most of my files an display the media in the right presentation folder.
But i have trouble with series files doesn't containing the title of the series and something like "SxxExx".

From documentation of the online metadata feature i figured out that in these cases serviio tries to get metadata with information of the parent folder.
This seems not to work. In DEBUG log i can see the following:

2018-12-01 11:53:59,611 DEBUG [TheMovieDBSourceAdaptor] Searching for 'tvs the good doctor dd51 ded dl 18p az' (language: de)
2018-12-01 11:53:59,893 DEBUG [TheMovieDBSourceAdaptor] Found 0 matches
2018-12-01 11:53:59,893 DEBUG [TheMovieDBSourceAdaptor] Searching for 'the good doctor s01e01 ein aussergewoehnliches talent german dd51 dubbed dl' (language: de)
2018-12-01 11:54:00,118 DEBUG [TheMovieDBSourceAdaptor] Found 0 matches
2018-12-01 11:54:00,118 DEBUG [TheMovieDBSourceAdaptor] No movie with the name has been found

From my point of view there are all information available in the name of the parent folder (line 3). Just searching for them doesn't even work manually (in the browser). I think serviio is parsing for season and episode to get metadata by filenames.
Why not doing the same first with the name of the parent folder?
For now I used a tool for renaming my files with <ParentFolder>.<Extension> and it works instantly.
So my suggestion should work too and spares time and trouble for renaming files.

Re: Trouble with online metadata

PostPosted: Sat Dec 01, 2018 8:41 pm
by atc98092
Online metadata requires file names in a format that matches what the search function uses. See this page: http://www.serviio.org/index.php?option ... icle&id=12. Also, check thetvdb.com and the moviedb.com and make sure they have the titles you are need. If they aren't there, you'll never get online metadata for them

Also, if you have problems even with the files named correctly, make sure the release year is accurate. I've seen movies on IMDB.com with a different date from themoviedb.com, and it has to match the latter to retrieve the data correctly. Finally, if it just never seems to get the right title, and you've verified the online database site contains it, you can add the IMDB TT number to the file name, and that almost always solves it. On the page I linked above there's a link to the page that tells how to use the IMDB number.

Re: Trouble with online metadata

PostPosted: Sat Dec 01, 2018 11:30 pm
by loeffelpan
Release year or avaiability on the databases is not the problem in my case. Checked that already.
But you‘re right with correct filenames and in some cases with the IMDB-ID it works as expected.

To get an answer to my initial question:
Why does it work with correct filenames, but not with the same name as parent folder?
Shouldn‘t serviio (when including the parent folder as a feature) parse the parent folder of media the same way as the filename to get metadata?

Re: Trouble with online metadata

PostPosted: Sun Dec 02, 2018 5:47 pm
by atc98092
That's a question that only Zip can answer. Might be a limitation of the Java libraries used, or something else that I don't have knowledge about.

Re: Trouble with online metadata

PostPosted: Tue Dec 04, 2018 8:18 am
by DenyAll
Is it because you've mixed your languages? Serviio is detecting the language (language: de) but part it needs (the good doctor s01e01) is in English?
What happens if the folder name is in German (if Google Translate is any good this would be "der gute doktor s01e01").

Just a thought.

Re: Trouble with online metadata

PostPosted: Thu Dec 06, 2018 8:07 pm
by loeffelpan
The name of the series in germany is „The Good Doctor“, too.
Further the filename is just an example. It‘s the same case with other file- and foldernames.

@zip: Could you have a look on parsing foldernames, if filename doesn‘t contains any useful information?

Re: Trouble with online metadata

PostPosted: Sun Dec 09, 2018 9:54 am
by zip
what is the full path of the file?

Re: Trouble with online metadata

PostPosted: Sun Dec 09, 2018 7:33 pm
by loeffelpan
Path from the folder configured in library is:
Serien/Good Doctor/The.Good.Doctor.S01E01.Ein.aussergewoehnliches.Talent.German.DD51.Dubbed.DL.1080p.AmazonHD.x264-TVS/tvs-the-good-doctor-dd51-ded-dl-18p-azhd-x264-101.mkv

As to see in the logs above Serviio detects filename and name of parent folder correctly.
But only if I change filename to the same as parent folder (The.Good.Doctor.S01E01.Ein.aussergewoehnliches.Talent.German.DD51.Dubbed.DL.1080p.AmazonHD.x264-TVS) this would work.

Seems that Serviio parses filenames with matching pattern (SxxExx or SxEE or ...) in another way than file- and foldername there is no matching pattern.

Re: Trouble with online metadata

PostPosted: Mon Dec 10, 2018 8:51 pm
by zip
yes, that's right.

usually the folder is the name of the series, and the files under that need to have the proper episodic file name to match. I't also allowed to have a season folder in between, so something like

series_name/season 1/episode_name s01e03.avi

would work.

Re: Trouble with online metadata

PostPosted: Thu Dec 13, 2018 5:11 am
by loeffelpan
Indeed this does work.
From the moment of renaming the file to anything with the matching pattern everything works well.

If thats really what you wanted to implement, I would accect.
From my point of view Serviio should (when including the parent folder as a feature) parse the parent folder of media the same way as the filename to get metadata.

Would be nice to improve this feature.