Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Video Library Tag - How to import them from an NFO file?
#1
I have plenty of movies and am looking for a quick way to search them by the spoken language. I figured I could use the Video Library Tags for that.

So I created an NFO file matching the movie name:

<?xml version='1.0' encoding='UTF-8'?>
<tag>MyLanguage</tag>


Next, I scan the files to the video library again.

However, I do not see any tags appearing. What am I missing here?
Reply
#2
(2021-03-05, 01:36)piscator74 Wrote: So I created an NFO file matching the movie name:

<?xml version='1.0' encoding='UTF-8'?>
<tag>MyLanguage</tag>
Ooh, no don't do that. If that is your entire nfo file, then you will ruin your library.

If your video files have been correctly ripped, then the language should already be embedded in the file, and Kodi would have read that into the database.

Try creating a Smart Playlist and filtering the language... https://kodi.wiki/view/Smart_playlists/GUI_Method
The only trick here is making sure you have the correct abbreviation for the language code. - eng, jpn, kor, ita, swe etc etc

If you are comfortable with SQL, open the MyVideos database and check strAudioLlanguage column in the streamdetails table.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
(2021-03-05, 01:36)piscator74 Wrote: I have plenty of movies and am looking for a quick way to search them by the spoken language. I figured I could use the Video Library Tags for that.

So I created an NFO file matching the movie name:

<?xml version='1.0' encoding='UTF-8'?>
<tag>MyLanguage</tag>


Next, I scan the files to the video library again.

However, I do not see any tags appearing. What am I missing here?
You need:

xml:
<?xml version='1.0' encoding='UTF-8'?>
<movie>
    <tag>MyLanguage</tag>
</movie>
 The audio tracks should have language code embedded (at least mp4 and mkv, not sure about folder or iso rips) as Karellen posted so you could filter on that rather than tag.

scott s.
.
Reply
#4
(2021-03-05, 02:25)Karellen Wrote: Try creating a Smart Playlist and filtering the language... https://kodi.wiki/view/Smart_playlists/GUI_Method
The only trick here is making sure you have the correct abbreviation for the language code. - eng, jpn, kor, ita, swe etc etc

If you are comfortable with SQL, open the MyVideos database and check strAudioLlanguage column in the streamdetails table.
Thanks for the suggestion. I never used smart playlists before. Of course, my library is not that clean that strAudioLanguage works reliable enough for language filtering. But I see you can also create smart playlists based on parts of a filename. That should work for me as that was my original plan. Out of curiosity, what does strVideoLanguage in streamdetails refer to?

@scott967. I tried a <movie> section around the <tag> section, but that does not work either. No tags are read into the library.

Thanks for the pointers!
Reply
#5
(2021-03-06, 02:14)piscator74 Wrote: what does strVideoLanguage in streamdetails refer to?
You are able to set a language for a video stream in mkv files (and probably other files also), but no idea why you would want to. Its the audio that is language specific not video. Best to just ignore it.

(2021-03-06, 02:14)piscator74 Wrote: I tried a <movie> section around the <tag> section, but that does not work either. No tags are read into the library.
Nfo files are not used to add extra info. They are a complete replacement. If you get that to work, it is not going to simply add the tag to what is already in the library, it will wipe the existing library entry and add a tag. You need all the existing information in the nfo file in addition to the tag. Anyway you won't get that to work as a tag cannot create a library entry on its own.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#6
(2021-03-06, 02:28)Karellen Wrote: Nfo files are not used to add extra info. They are a complete replacement. If you get that to work, it is not going to simply add the tag to what is already in the library, it will wipe the existing library entry and add a tag. You need all the existing information in the nfo file in addition to the tag. Anyway you won't get that to work as a tag cannot create a library entry on its own.
Thanks for clarification. That's not the way I want to go, so I'll use the smart playlists.
Reply

Logout Mark Read Team Forum Stats Members Help
Video Library Tag - How to import them from an NFO file?0