Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently August 16th, 2018, 9:53 am

All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 5th, 2017, 4:15 am 
Offline
Downloaded Clip

Joined: February 5th, 2017, 3:54 am
Posts: 4
If a multi-episode DVD has episode names with commas in them, the resulting kodi nfo file does not register the correct names. For example, given the following xml entry:

<EpisodeName>Long Live the Queen, Toys in Babeland, Business, Italian Style, Double, Double, Toil and Trouble, Cheap, Cheap, No Zip in My Zap, Birdies, Bogies, and Baxter, Safe and Sane Halloween, Out of Sync, Out of Mind</EpisodeName>

Because of commas in episodes:

"Business, Italian Style", "Double, Double, Toil and Trouble", and etc. this field is not parsed correctly when creating the corresponding kodi nfo file. The result is that each title entry in the multi-episode kodi nfo file becomes the following:

<title>Long Live the Queen, Toys in Babeland, Business, Italian Style, Double, Double, Toil and Trouble, Cheap, Cheap, No Zip in My Zap, Birdies, Bogies, and Baxter, Safe and Sane Halloween, Out of Sync, Out of Mind</title>

Recommend either using a different delimiter in the xml file or just simply deleting commas from episode names when creating the <EpisodeName> field.

Thanks much.


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 5th, 2017, 4:01 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2539
Location: Washington
But that is exact what it is one file with multiple names. You can't individualize them as it is one file. If you had them parsed individual there is no way to play anything but from the beginning of the disc (first episode).


The only way to get individual titles is to have individual files.

Overview is the same way. Every episodes overview combine into one.

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.18.13718.884 / May 17th, 2018


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 5th, 2017, 4:28 pm 
Offline
Downloaded Clip

Joined: February 5th, 2017, 3:54 am
Posts: 4
Yes - there will be one xml file and one kodi nfo file for a multi-epsiode iso file - but that is not the issue.

The problem is that the <EpisodeName> entry within the metadata xml file uses commas as a delimiter. If one or more of the Episode names has a comma in it, then the <EpisodeName> field will have more commas than the number of episode names, causing parsing problems when MCM creates the kodi nfo file.

The end result is that each of the kodi nfo file <Title> fields will contain the entire <EpisodeName> field (i.e. all titles with the comma delimiters) vice the individual episode titles.

BTW - everything works perfectly if the individual episode names do not have commas in them. Each episode entry in the multi-episode kodi nfo file will have a properly parsed episode name in the <title> field.

Hope this helps clarify. Thanks much


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 5th, 2017, 7:40 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2539
Location: Washington
I see what you are saying now. But I don't really see a way around it, but I am not a coder.

I just tested this in Emby and they do the exact same thing directly to nfo.

Code:
<title>Long Live the Queen, Toys in Babeland, Business, Italian Style, Double, Double, Toil and Trouble, Cheap, Cheap, No Zip in My Zap, Birdies, Bogies, and Baxter, Safe and Sane Halloween, Out of Sync, Out of Mind, That Was No Chick, That Was My Wife</title>


So If Kodi created the nfo how would it be different?

But I bet this is a bug in every metadata manager there is.

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.18.13718.884 / May 17th, 2018


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 6th, 2017, 2:40 am 
Offline
Downloaded Clip

Joined: February 5th, 2017, 3:54 am
Posts: 4
What's probably happening is that when the parser sees more entries than expected in the <EpisodeName> due to the commas in the titles, it throws an exception that is dealt with by simply using the entire <EpisodeName> field for each individual title in the kodi nfo file. Two ways to handle it:

1. The best option is to use a different symbol (other than a comma) as the delimiter - such as the '|' symbol vice . Problem with this option is that it might break other code that is looking for the comma.

2. A second (undesired) option is to simply delete commas from episode titles when creating multi-episode metadata xml files. Although this will eliminate the issue, it has the undesired effect of changing the episode title. Truth be told however, I would take this option over doing nothing.

Thanks much.


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 6th, 2017, 12:25 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2539
Location: Washington
Or a manual edit when this issues arises.

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.18.13718.884 / May 17th, 2018


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 6th, 2017, 2:53 pm 
Offline
Downloaded Clip

Joined: February 5th, 2017, 3:54 am
Posts: 4
I started doing manual corrections but quickly realized that this issue happens a lot. Better for the computer to do it than a human. Can't build a post-processor either as only a human can tell which commas are the correct delimiters. It really needs to be fixed at the time the original MCM xml file is created - hence my reason for submitting the bugfix request. Thanks much.


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field
PostPosted: February 6th, 2017, 3:47 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2539
Location: Washington
I guess I don't deal this discs (multi-episodes), I convert to individual episodes. I prefer individual playback as opposed disc scanning.

Your more than welcome to add this to the Issue Tracker.

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.18.13718.884 / May 17th, 2018


 Profile  
 Post subject: Re: Commas in multi-episode xml file <EpisodeName> field  [SOLVED]
PostPosted: April 14th, 2017, 3:50 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2539
Location: Washington
added this to the 2.16.10417.711

Issue 1760

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.18.13718.884 / May 17th, 2018


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group



Copyright © 2009-2018, Media Center Master, Inc. All rights reserved.