2022-06-27, 17:20
I used the Broken prefix, but I could be wrong as it might be implementation, but figured it made logical sense since it doesn't work as I would expect.
I use Media companion exclusively for all Movies and TV show media. I made a feature request of MC to add in the <trailer> tag to the TV shows NFO creation and it was implemented.
This all stemmed from the Kodi Wiki:
https://kodi.wiki/view/Trailers
Item #3
I am excerpting from MC's forum where the discussion between the author and me:
https://sourceforge.net/p/mediacompanion...t=250#b13d
EXCERPT:
Post 1
Got it installed, using breaking bad as example, used rescrape wizard and it added the trailer tags (to NFO)...nice!
I populated it with : <-trailer->Y:\Breaking Bad (2008)\Breaking Bad (2008)-trailer.mp4 <-/trailer-> minus the tag dashes (forum formatting thing)
===============================
Post 2
Issue: Using the path format as above is the correct way to do it. The folder naming by MC for the TV Show is "Breaking Bad (2008)" and the name of the file needs to be "Breaking Bad (2008)-trailer.mp4" (extension can vary). So all of that is correct.
I removed TV_Shows as my source and added it back and let parse (smaller library sample to test) and sure enough....when in Kodi > TV Shows you see all the root folders for each of your series....when you context click or whatever > Information the "trailer" button is present...Great!
Well not really...as soon as you press enter to start the trailer...it "circles" and then errors out saying "Couldn't play media... see log"....or whatever that message is....I tried six ways to Sunday...always fails. I look in the event log of Kodi...just says "Kodi started"...probably don't have advanced debug on.....ok whatever.
Solution: Dawned on me....there are whitespaces in the entire path.....and you can't use double quotes to solve it....so a small modification to the XML needs to be via MC internal...or for now, do it yourself.
In the TVShow.nfo the very top line of the XML states:
To deal with the white spaces and allow the trailer to play you need to provide the XML directive:
To make the line look like:
After I rescanned the library again...TV trailer played exactly as the Movies version of it does.
END EXCERPT
The author is hesitant about adding the new directive as other strings and paths within the NFO have whitespaces and all of those work as expected. So while this doesn't seem to be a big use case, I'm wondering what he resolution is?
The white space in the path seems to be the issue at hand and not sure how to fix it.
Can anyone speak to a fix/workaround/oversight on my part or methodology?
Thanks,
Chris
I use Media companion exclusively for all Movies and TV show media. I made a feature request of MC to add in the <trailer> tag to the TV shows NFO creation and it was implemented.
This all stemmed from the Kodi Wiki:
https://kodi.wiki/view/Trailers
Item #3
I am excerpting from MC's forum where the discussion between the author and me:
https://sourceforge.net/p/mediacompanion...t=250#b13d
EXCERPT:
Post 1
Got it installed, using breaking bad as example, used rescrape wizard and it added the trailer tags (to NFO)...nice!
I populated it with : <-trailer->Y:\Breaking Bad (2008)\Breaking Bad (2008)-trailer.mp4 <-/trailer-> minus the tag dashes (forum formatting thing)
===============================
Post 2
Issue: Using the path format as above is the correct way to do it. The folder naming by MC for the TV Show is "Breaking Bad (2008)" and the name of the file needs to be "Breaking Bad (2008)-trailer.mp4" (extension can vary). So all of that is correct.
I removed TV_Shows as my source and added it back and let parse (smaller library sample to test) and sure enough....when in Kodi > TV Shows you see all the root folders for each of your series....when you context click or whatever > Information the "trailer" button is present...Great!
Well not really...as soon as you press enter to start the trailer...it "circles" and then errors out saying "Couldn't play media... see log"....or whatever that message is....I tried six ways to Sunday...always fails. I look in the event log of Kodi...just says "Kodi started"...probably don't have advanced debug on.....ok whatever.
Solution: Dawned on me....there are whitespaces in the entire path.....and you can't use double quotes to solve it....so a small modification to the XML needs to be via MC internal...or for now, do it yourself.
In the TVShow.nfo the very top line of the XML states:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
To deal with the white spaces and allow the trailer to play you need to provide the XML directive:
Code:
xml: space
To make the line look like:
Code:
<?xml version="1.0" xml: space encoding="UTF-8" standalone="yes"?> (remove ---)
After I rescanned the library again...TV trailer played exactly as the Movies version of it does.
END EXCERPT
The author is hesitant about adding the new directive as other strings and paths within the NFO have whitespaces and all of those work as expected. So while this doesn't seem to be a big use case, I'm wondering what he resolution is?
The white space in the path seems to be the issue at hand and not sure how to fix it.
Can anyone speak to a fix/workaround/oversight on my part or methodology?
Thanks,
Chris