How to add TMDBURL in mkv tags?
#1
Hi,

I would like to add a TMDBURL and title to the mkv metadata like it is mentioned in the wiki on 4.1: https://kodi.wiki/view/Video_file_tagging

So far I've created an xml file with 3 simple tags:
 
xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Tags SYSTEM "matroskatags.dtd">
<Tags>
<Tag>
<Simple>
<Name>TITLE</Name>
<String>1984</String>
</Simple>
<Simple>
<Name>DATE_RELEASED</Name>
<String>1984</String>
</Simple>
<Simple>
<Name>TMDBURL</Name>
<String>https://www.themoviedb.org/movie/9314-nineteen-eighty-four</String>
</Simple>
</Tag>
</Tags>

and embedded it with mkvpropedit --set title="1984" --tags all:1984.xml 1984\ (1984\).mkv

In Kodi I've enabled the option to use the video tags and the test file was added as a new file to the library. But the scraper still finds the wrong movie (43/84 1984 in this case).

I think I'm doing something wrong while adding the tags. Can someone give me a hint what I need to do?

Thanks
Reply
#2
Basically you can add any info you want to a MKV container file, but Kodi won't read/use it.
Kodi will either use an existing .nfo file, or use online data via the scraper.
Reply
#3
(2020-07-27, 16:07)Klojum Wrote: Basically you can add any info you want to a MKV container file, but Kodi won't read/use it.
Kodi will either use an existing .nfo file, or use online data via the scraper.

On the wiki it's described that the title and TMDBURL tag should work with *.mkv: https://kodi.wiki/view/Video_file_tagging
In the mean time I figured out the tags are set in the mkv file and are visible using ffprobe. The title tag is used also. If I set it to something different it will scrape using the title tag. But TMDBURL is still ignored. I would like to use the mention TMDBURL tag to guide the scraper to use this url for scraping.
Reply
#4
At a guess the actual tag needs to be <TMDBURL>some_movie_url</TMDBURL>
Reply
#5
(2020-07-27, 16:28)Malebolgia Wrote: On the wiki it's described that the title and TMDBURL tag should work with *.mkv

Oops.. my bad.
Reply
#6
(2020-07-27, 16:40)jjd-uk Wrote: At a guess the actual tag needs to be <TMDBURL>some_movie_url</TMDBURL>

I'm not sure how to set this, because if I just add it to the xml it complains that the xml is not valid anymore because it doesn't know this tag. I think it must be escaped then.

I found the commit where this feature was added: https://github.com/xbmc/xbmc/commit/47bb...16c6fbR123

The TITLE tag is working, but TMDBURL is still ignored.

XML:
xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Tags SYSTEM "matroskatags.dtd">
<Tags>
 <Tag>
   <Simple>
     <Name>TITLE</Name>
     <String>The Empire Strikes Back</String>
   </Simple>
   <Simple>
     <Name>TMDBURL</Name>
     <String>https://www.themoviedb.org/movie/9314-nineteen-eighty-four</String>
   </Simple>
 </Tag>
</Tags>

File was renamed to noname.mkv.
ffprobe shows:
Code:

 Metadata:
   encoder         : libebml v1.3.0 + libmatroska v1.4.0
   creation_time   : 2016-11-14T05:46:24.000000Z
   TITLE           : The Empire Strikes Back
   TMDBURL         : https://www.themoviedb.org/movie/9314-ni...ighty-four

Kodi scrapes the file as "The Empire Strikes Back".
Reply
#7
It was a pure guess based on https://github.com/xbmc/xbmc/blob/master...g.cpp#L116

The guy who added the code is not currently active, but it's possible he might respond to a ping @spiff
Reply
#8
Another member had the same issue a few months ago... https://forum.kodi.tv/showthread.php?tid=351235

I guess the feature is buggy/broken.
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
How to add TMDBURL in mkv tags?0