Kodi Community Forum

Full Version: Kodi does not update stream metadata for changed files?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I am trying to create some filters in my library based on stream metadata e.g. "Silent" movies node will show movies where "Audio Language is zxx (no linguistic content)".

I'm also now updating some of my old files when they have incorrect metadata. Without renaming them! I have a naming system and don't want to introduce random changes to my library file names just to make Kodi work.

But it seems that even after
  1. removing the file from the library
  2. fixing the file metadata to have "zxx" for audio language
  3. doing "Clean library"
  4. scanning for updates to make the file reappear
  5. playing the file
Kodi seems to not update the stream metadata stored for the file and it does not show up in the "Silent" node I created with the "zxx" rule.

At least that is my guess that the database records are not updated, I do see that the stream is "zxx" when I go to the audio stream toggler during playback.

I also tried the "Video Database Cleaner" add-on, but it seemed to crash and I did not investigate why. Is there a way I can refresh this data even just for a particular file without unreliable third-party add-ons? I am even willing to go into the database and run some SQLs, but I want to make sure it's a safe update I'm doing that way.
Update: I checked that indeed the streamdetails table still references the files table entry with the same ID as before and it still has the old audio stream data, after I did steps 1-5 from the previous post.
Ok, it seems this has already been reported: https://github.com/xbmc/xbmc/issues/15584
None of those steps will change streamdetails. There is an issue report about it here... https://github.com/xbmc/xbmc/issues/18702

Streamdetails are part of the "file" system in the databases which is separate to the "library" system, so once it is scanned it remains regardless if you scrape and delete the library title.

If you are comfortable with playing in SQL...
  1. delete the movie from the library
  2. look up the movie file in the file table.
  3. Note the IDFile.
  4. Go to streamdetails table and filter for the IDFile and delete those rows.
  5. Save the database
  6. Now scrape your movie back into the library.
Forgot to mention. If you use the Refresh button on the Information Page of the movie, it "should" update streamdetails. But if you have made edits to the information, it will be overwritten.
Thanks, the Refresh button worked! I saw an open bug related to that so I assumed it wouldn't, but it did work.

Thanks a lot!
Thread marked solved.
(2020-11-11, 23:42)Karellen Wrote: [ -> ]Thread marked solved.

Hey there, I've just run into this issue in which the StreamDetails won't update. I use a simple NAS share which is accessed by many different devices that don't build a library but simply browse by 'Videos -> Files'. I believe it is a known issue as seen here - https://github.com/xbmc/xbmc/issues/18702 but I don't seem to have found a decent workaround.

Any ideas?
(2024-02-26, 18:14)QwertyNinja2! Wrote: [ -> ]I've just run into this issue in which the StreamDetails won't update
What version of Kodi are you using, what OS and what type of media is it - bluray, dvd, mkv, other?
(2024-02-26, 21:59)Karellen Wrote: [ -> ]
(2024-02-26, 18:14)QwertyNinja2! Wrote: [ -> ]I've just run into this issue in which the StreamDetails won't update
What version of Kodi are you using, what OS and what type of media is it - bluray, dvd, mkv, other?

Thanks for the quick reply. Most of my devices are running 20.4 nexus and my main device is running 21.0 Beta 3. A mix of Windows and Android but all exhibit the same behavior you described in github ticket because I just browse media through file tree rather than scanning and creating any libraries. It is mainly mkv's and the odd mp4.
(2024-02-26, 23:19)QwertyNinja2! Wrote: [ -> ]Thanks for the quick reply. Most of my devices are running 20.4 nexus and my main device is running 21.0 Beta 3. A mix of Windows and Android but all exhibit the same behavior you described in github ticket because I just browse media through file tree rather than scanning and creating any libraries. It is mainly mkv's and the odd mp4.
Hmmm. Is it movies or episodes or both?
I've never paid much attention to files as I expect most people just scan into library.
I wonder if the problem is some consequence of this... https://github.com/xbmc/xbmc/issues/24498
(2024-02-26, 23:47)Karellen Wrote: [ -> ]
(2024-02-26, 23:19)QwertyNinja2! Wrote: [ -> ]Thanks for the quick reply. Most of my devices are running 20.4 nexus and my main device is running 21.0 Beta 3. A mix of Windows and Android but all exhibit the same behavior you described in github ticket because I just browse media through file tree rather than scanning and creating any libraries. It is mainly mkv's and the odd mp4.
Hmmm. Is it movies or episodes or both?
I've never paid much attention to files as I expect most people just scan into library.
I wonder if the problem is some consequence of this... https://github.com/xbmc/xbmc/issues/24498

It's both movies and tv shows. I don't think it is related to https://github.com/xbmc/xbmc/issues/24498 and judging from this https://github.com/xbmc/xbmc/issues/18702, the issue has been there for at least 3/4 years.

It appears to be a problem only for those who do not scan content into a library. I don't because I have a large mix of home videos, movies & tv carefully organised into a NAS so all devices just point to it and browse the folder structure.
nevermind
(2024-02-27, 00:05)izprtxqkft Wrote: [ -> ]pretty sure this is as designed, if Kodi scans video files every time you go to the file listing then it will be excruciatingly slow to browse

AFAIK it only scans video information for the library, if you play something it will save the video information but otherwise not scanned

That's exactly the problem - https://github.com/xbmc/xbmc/issues/18702. Even playing the video doesn't update the stream details meta if you aren't using a scanned library. Changing a folder or file name will cause the stream details to be updated but changing the name back will revert to the old meta data.
(2024-02-27, 00:10)QwertyNinja2! Wrote: [ -> ]That's exactly the problem

yea, see my edit ... nevermind

works fine on linux with mp4 as i found out about 30s after posting
Pages: 1 2 3