Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Kodi import different languages
#1
Hi everyone,
I list all my movies with their original title except for a bunch of movies that have a "particular" original title (like japanese or chinese, in ideograms). I rename these movies with their english title.
But when I export all movies (single file) and then import them to a new device, these movies have their original title in ideograms.
I would like, when I import to a new device, to keep the original title of movies except for those I renamed.
I mean I would like to have the EXACT same library that I exported.
Is there a way to do that? Maybe I could do this using an .nfo file?

Thank you very much for the help!
Reply
#2
(2020-10-10, 19:32)NathanDrake Wrote: I mean I would like to have the EXACT same library that I exported.

Kodi does export both titles, the original and the content-setting language version, in the nfo files of movies.
The export nfo file will contain the edited movie title, so re-importing the movie should not be a problem.

Example:
Code:
<movie>
<title>Kung Fu Hustle (test)</title>
<originaltitle>功夫</originaltitle>
Reply
#3
(2020-10-10, 20:34)Klojum Wrote:
(2020-10-10, 19:32)NathanDrake Wrote: I mean I would like to have the EXACT same library that I exported.

Kodi does export both titles, the original and the content-setting language version, in the nfo files of movies.
The export nfo file will contain the edited movie title, so re-importing the movie should not be a problem.

Example:
Code:
<movie>
<title>Kung Fu Hustle (test)</title>
<originaltitle>功夫</originaltitle>
Yes exactly. The problem is if, for example, I have a library like this:

<movie>
    <title>Ip Man</title>
    <originaltitle>葉問</originaltitle>
    ...OTHER TAGS...
</movie>
<movie>
     <title>Dr. No</title>
     <originaltitle>Dr. No</originaltitle>
    ...OTHER TAGS...
</movie>
...OTHER MOVIES...

When I import this XML and set the use of original title the second one will be ok but the first one will have the ideograms. I would like to impose, only for the first movie, to use the title and not the original title.
Reply
#4
In total there are 3 movie name fields in the Kodi database:
c00 - Movie title
c10 - Edited title
c16 - Original title

Maybe all 3 need to be exported to the nfo file, so all of them can be imported again.

You could create a Github Bug tracker ticket as a feature request for Kodi Matrix v19.
Reply
#5
(2020-10-10, 22:19)Klojum Wrote: In total there are 3 movie name fields in the Kodi database:
c00 - Movie title
c10 - Edited title
c16 - Original title

Maybe all 3 need to be exported to the nfo file, so all of them can be imported again.

You could create a Github Bug tracker ticket as a feature request for Kodi Matrix v19.
I'm sorry, I'm not sure if I understood correctly. You're saying that there are three movie name fields but when I export my library I only see two fields (title and originaltitle, I don't see edited title).
You're suggesting me to create a ticket on the github Bug tracker to fix this kind of behavior and correctly import movies? If this is correct can you link the github to me? Thank you
Reply
#6
The github link says "Bug Tracker" at the top of every forum page. ;-)
Reply
#7
@NathanDrake

Please do not add a Feature Request ticket to Github. It will be closed.

Feature Requests are made on the forum here... https://forum.kodi.tv/forumdisplay.php?fid=9

edited title correctly called SortTitle won't be visible in the nfo file if you have not added a SortTitle. Sort Titles are used mainly in Movie Sets where you want to get a certain order in your listing of the movies in the sets and can be done via Context Menu>Manage>Edit Sort Title.

The easiest solution for you is to swap the values in the "title" and "original title" tags. eg...

<title>Ip Man</title>
and <originaltitle>葉問</originaltitle>
become
<title>葉問</title> and <originaltitle>Ip Man</originaltitle>

Or if you know your way around SQL databases, you can swap the entries directly.
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
#8
(2020-10-10, 23:38)Karellen Wrote: @NathanDrake

Please do not add a Feature Request ticket to Github. It will be closed.

Feature Requests are made on the forum here... https://forum.kodi.tv/forumdisplay.php?fid=9

edited title correctly called SortTitle won't be visible in the nfo file if you have not added a SortTitle. Sort Titles are used mainly in Movie Sets where you want to get a certain order in your listing of the movies in the sets and can be done via Context Menu>Manage>Edit Sort Title.

The easiest solution for you is to swap the values in the "title" and "original title" tags. eg...

<title>Ip Man</title>
and <originaltitle>葉問</originaltitle>
become
<title>葉問</title> and <originaltitle>Ip Man</originaltitle>

Or if you know your way around SQL databases, you can swap the entries directly.
Ok but in this way I have to edit the xml every time I export the library. It will take a lot of time every time. It's not very easy to manage..
Anyway thank you!
So I do not open a Bug tracker ticket?
Reply
#9
(2020-10-10, 19:32)NathanDrake Wrote: I list all my movies with their original title except for a bunch of movies
Does this means you have enabled the setting "Keep Original Title" in the scraper settings?

(2020-10-10, 19:32)NathanDrake Wrote: But when I export all movies (single file) and then import them to a new device, these movies have their original title in ideograms.
I could not replicate this. I changed the title, exported to single file, then imported the single file and it still had the English Title. Even checking the exported xml file shows the English name for the title. How are you editing the title?

Another method is to add these movies to a new Source. Then set this source to not use the setting "Keep Original Title"
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
(2020-10-11, 02:24)Karellen Wrote:
(2020-10-10, 19:32)NathanDrake Wrote: I list all my movies with their original title except for a bunch of movies
Does this means you have enabled the setting "Keep Original Title" in the scraper settings?
(2020-10-10, 19:32)NathanDrake Wrote: But when I export all movies (single file) and then import them to a new device, these movies have their original title in ideograms.
I could not replicate this. I changed the title, exported to single file, then imported the single file and it still had the English Title. Even checking the exported xml file shows the English name for the title. How are you editing the title?

Another method is to add these movies to a new Source. Then set this source to not use the setting "Keep Original Title"
Yes I have the "Keep Original Title" set in the scraper settings.
Maybe that's because when you import you do not set the "Keep Original Title". What happens to me is:
1) Export in single file
2) Import in a new device and set "Keep Original Title"
3) All movies have their original title so also japanese/chinese movies have their original title in ideograms

Maybe when you import you do not set the "Keep Original Title". Otherwise it's impossible. In your XML export should be the title and originaltitle tag. The title tag I suppose is the one you edited.
Reply
#11
Ok I just solved the problem.
Kodi allows the use of "Combination nfo": https://kodi.wiki/view/NFO_files#Combination_nfo
In this kind of nfo file you can "override data from the scraper site such as the title, runtime, movieset etc. It will scan the metadata located between the <movie></movie> XML tags and the omitted data will be scraped at the provided URL". So it is sufficient to add an nfo file inside the directory of the movie.

Example:
Code:
<movie>
    <title>Ip Man</title>
    <originaltitle>Ip Man</originaltitle>
</movie>
https://www.themoviedb.org/movie/14756

This way it will always ignore the original title from the scraper and it will set the title you write in the nfo.

Thank you everyone!
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi import different languages0