Solved DialogVideoInfo screen does not display subtitle languages
#1
I am having trouble figuring out how to make KODI (Aeon Nox: Silvo) display the subtitle language on the DialogVideoInfo screen. Screen shots below

Some of my movies display them correctly while many of them do not, so I need help figuring out how to properly flag my .srt's or figure out if something else happening...

- All of my movies are .mp4 files with external .srt files. There are no subtitles encoded in the .mp4's.
- I have tagged the .srt's with *.eng.srt or *.eng.forced.srt and they are in the same folder as the video file with the same filename + the tag
- I use Media Companion to scrape my movies so that I can choose the artwork and manage the local .nfo files
- After scraping, typical .nfo looks like:
.nfo subtitle tag:
<subtitle>
     <language>eng</language>
     <default>False</default>
     <forced>False</forced>
</subtitle>
- All subtitles work correctly and as expected while watching the movie

*Example 1 - where display of subtitle language is working:
Filenames:
Blue Beetle (2023).eng.srt
Blue Beetle (2023).mp4
Blue Beetle (2023).nfo
Example 1 .nfo file:
<subtitle>
     <language>eng</language>
     <default>False</default>
     <forced>False</forced>
</subtitle>
Image

Example 2 - where display of subtitle language is not working
Filenames:
Meet Cute (2022).eng.srt
Meet Cute (2022).mp4
Meet Cute (2022).nfo
Example 2 .nfo file:
<subtitle>
     <language>eng</language>
     <default>False</default>
     <forced>False</forced>
</subtitle>
Image

Am I doing something wrong? or could this be a glitch in the skin/KODI?
I am happy to provide a log file... how do I make sure the file includes this? Should I open KODI and then navigate to a movie where it is not working? - I am not familiar with how log files work in that regard...
Any and all help is appreciated!


What I have tried:
- renamed the srt file as *.en.srt or *.english.srt
- changed <default> to TRUE in the .nfo file
     - each time I make a change, I rescrape in Media Companion, remove the movie from my KODI library, Clean Library, Clear Cache, Clear Thumbnails, and then Update Video Library to ensure that I am completely refreshing the movie and scraped data

I can tell that the DialogVideoInfo.xml calls the InfoContentGeneral Include from Incudes_DialogInfo.xml:
InfoContentGeneral:
<item>
     <label>[UPPERCASE]$INFO[ListItem.Property(SubtitleLanguage.1)]$INFO[ListItem.Property(SubtitleLanguage.2), / ]$INFO[ListItem.Property(SubtitleLanguage.3), / ]$INFO[ListItem.Property(SubtitleLanguage.4), / ]$INFO[ListItem.Property(SubtitleLanguage.5), / ]$INFO[ListItem.Property(SubtitleLanguage.6), / ]$INFO[ListItem.Property(SubtitleLanguage.7), / ]$INFO[ListItem.Property(SubtitleLanguage.8), / ]$INFO[ListItem.Property(SubtitleLanguage.9), / ]$INFO[ListItem.Property(SubtitleLanguage.10), / ]$INFO[ListItem.Property(SubtitleLanguage.11), / ]$INFO[ListItem.Property(SubtitleLanguage.12), / ]$INFO[ListItem.Property(SubtitleLanguage.13), / ]$INFO[ListItem.Property(SubtitleLanguage.14), / ]$INFO[ListItem.Property(SubtitleLanguage.15), / ][/UPPERCASE]</label>
     <label2>$LOCALIZE[287]:</label2>
     <onclick>SetProperty(MoreInfoTitle,$LOCALIZE[287])</onclick>
     <onclick>SetProperty(MoreInfoContent,[UPPERCASE]$INFO[ListItem.Property(SubtitleLanguage.1)]$INFO[ListItem.Property(SubtitleLanguage.2), / ]$INFO[ListItem.Property(SubtitleLanguage.3), / ]$INFO[ListItem.Property(SubtitleLanguage.4), / ]$INFO[ListItem.Property(SubtitleLanguage.5), / ]$INFO[ListItem.Property(SubtitleLanguage.6), / ]$INFO[ListItem.Property(SubtitleLanguage.7), / ]$INFO[ListItem.Property(SubtitleLanguage.8), / ]$INFO[ListItem.Property(SubtitleLanguage.9), / ]$INFO[ListItem.Property(SubtitleLanguage.10), / ]$INFO[ListItem.Property(SubtitleLanguage.11), / ]$INFO[ListItem.Property(SubtitleLanguage.12), / ]$INFO[ListItem.Property(SubtitleLanguage.13), / ]$INFO[ListItem.Property(SubtitleLanguage.14), / ]$INFO[ListItem.Property(SubtitleLanguage.15), / ][/UPPERCASE])</onclick>
      <onclick>SetFocus(64)</onclick>
      <visible>![String.IsEqual(Skin.String(LanguageFlags),2) | String.IsEqual(Skin.String(LanguageFlags),3)] + !String.IsEmpty(ListItem.Property(SubtitleLanguage.1)) | !String.IsEmpty(ListItem.Property(SubtitleLanguage.3))</visible>
      <visible>!Skin.HasSetting(Disable.VideoInfoLanguageDetails)</visible>
</item>
As far as I can tell, this makes sense although I don't understand the <visible> logic. Can anyone confirm that this is correct?
Reply
#2
As a test try replacing

xml:
<label>[UPPERCASE]$INFO[ListItem.Property(SubtitleLanguage.1)]$INFO[ListItem.Property(SubtitleLanguage.2), / ]$INFO[ListItem.Property(SubtitleLanguage.3), / ]$INFO[ListItem.Property(SubtitleLanguage.4), / ]$INFO[ListItem.Property(SubtitleLanguage.5), / ]$INFO[ListItem.Property(SubtitleLanguage.6), / ]$INFO[ListItem.Property(SubtitleLanguage.7), / ]$INFO[ListItem.Property(SubtitleLanguage.8), / ]$INFO[ListItem.Property(SubtitleLanguage.9), / ]$INFO[ListItem.Property(SubtitleLanguage.10), / ]$INFO[ListItem.Property(SubtitleLanguage.11), / ]$INFO[ListItem.Property(SubtitleLanguage.12), / ]$INFO[ListItem.Property(SubtitleLanguage.13), / ]$INFO[ListItem.Property(SubtitleLanguage.14), / ]$INFO[ListItem.Property(SubtitleLanguage.15), / ][/UPPERCASE]</label>

with <label>[UPPERCASE]ListItem.SubtitleLanguage[/UPPERCASE]</label>

and remove the visible conditions entirely.
Reply
#3
Thanks @Hitcher for the quick reply.

I changed the line to 
xml:
<label>[UPPERCASE]$INFO[ListItem.SubtitleLanguage][/UPPERCASE]</label>
and removed the <visible> lines
Image

This added the Subtitle: line to the window, but it was blank, as per my screen shot
Reply
#4
I should add that I am using KODI Build 20.2 and Aeon Nox: Silvo ver 9.1.3
Reply
#5
That at least confirms it's not a skinning problem. Check your database to see if the info is getting added correctly.
Reply
#6
How do I check the database? - apologies if that's a stupid question...
Reply
#7
Databases should have all the info you need.

  • Browse data tab
  • Table: select Movie
  • Locate a movie and note its idFile number
  • Table: select streamdetails
  • Find the idFile number in the idFile column
  • Check the corresponding strSubtitleLanguage details
Reply
#8
Within DB Browser for SQLite, I clicked "Open Database", navigated to my userdata\database folder and selected MyVideos121.db
Is this the correct .db file to open?

Once opened, I followed your steps and it looks empty. Please see my screen shot:
Image

Could I be doing something wrong?
Reply
#9
Check the streamdetails table.

Are you scraping your movies into the library?
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
#10
The streamdetails table is blank as well.

I use all local .nfo and artwork/thumbnails files. I scrape using the program Media Companion and save all files locally within the movie folder:
Image
Image
Reply
#11
(2024-06-17, 07:14)bteamstephen Wrote: The streamdetails table is blank as well.
Ok, expected as much as the movie table is empty.
I understand you are using Media Companion to create nfo files and local artwork. Are you then scanning these into the library?
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
#12
Yes, if I understand what you are asking... I have added my movies folder as a source in KODI. When I added it, it scanned all files and added them to the Library.

I think I know what the problem is: My movies source is an SMB share, although the files exist locally on the same machine. I have done it this way because I have multiple KODI installs (all the same version) on my main HTPC and 3 Firesticks. I am using MySQL to sync the WatchedList between each of them.

So I'm assuming KODI doesn't store data in the typical .db files in the userdata folder because of this? If I use MySQL Workbench to view the database, then navigate to where @Hitcher suggested and sort alphabetically by title, I do not see this movie - Meet Cute (2022) - which I have been using as an example.
It should be right between these 2 movies highlighted in my screen shot:
Image

Also, if I look at "files" instead, I see a different set of movie titles, but Meet Cute (2022) still does not appear:
Image
Reply
#13
(2024-06-17, 10:08)bteamstephen Wrote: I am using MySQL
Ok, that is why the other database is empty. It is not used as MySQL is being used instead.

(2024-06-17, 10:08)bteamstephen Wrote: I do not see this movie - Meet Cute (2022)
Go into Videos>Files>Your Source and find the movie. The press i on your keyboard or Context Menu>Scan to library to scan the missing movie into your library.
If it does not scan, there must be a problem with the nfo file.

Then check the streamdetails table using the FileID (from the "files" table) to see what stream details have been added to the library.
... Actually, post the contents of your nfo file first to Kodi Paste Site and provide the link and we can check what streamdetails are being added there.

Also, to post images, use button 17...
Image
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
#14
I removed the movie from my KODI library and then re-scanned it in as you suggested. Then I reloaded the database in MySQL Workbench but I still do not see it there. Also, I am certain that the MySQL list is not showing all 5,500 movies that I have in my KODI library...

Here is my .nfo for Meet Cute (2022): https://paste.kodi.tv/fexodoxila.kodi


--thanks for the image tip! I'll use that next time.
Reply
#15
(2024-06-17, 10:31)bteamstephen Wrote: I removed the movie from my KODI library and then re-scanned it in as you suggested.
So it was actually in the library? Even though you could not see it in the MySQL table?
No idea how that could happen. But I've never used MySQL so I'm not the best person to diagnose it.

(2024-06-17, 10:31)bteamstephen Wrote: Here is my .nfo for Meet Cute (2022): https://paste.kodi.tv/fexodoxila.kodi
Can't see any problems with the nfo file. Subtitle details are on lines 16-20

(2024-06-17, 10:31)bteamstephen Wrote: --thanks for the image tip! I'll use that next time.
No problems. You can still use imgbb if you like, but just right click the image at imgbb and select "Copy image link" and use that link instead of the ones you have copied from the address bar.
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

Logout Mark Read Team Forum Stats Members Help
DialogVideoInfo screen does not display subtitle languages0