[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
error parsing genre.xml
08-06-2012, 05:19 PM
Post: #1
error parsing genre.xml
I have had genres working on my library for months but now I would like to customize my genres. After editing the default genre file the YAMJ will not parse the file any longer.

All I did was delete the lines for War and western and add a Film-Noir under Thriller. here it the text.

If it is not the code then it is a bad character but I can not see it.

Code:
<!--                                                                                   -->
<!-- Genre elements contains the relation between some sub-genres and a master genre   -->
<!--                                                                                   -->
<!-- Example of usage for internationalization (Comédie is French for Comedy)          -->
<!--  <genre name="Comédie">                                                           -->
<!--    <subgenre>Comedy</subgenre>                                                    -->
<!--  </genre>                                                                         -->

<genres>
  <genre name="Action">
    <subgenre>Adventure</subgenre>
    <subgenre>Sport</subgenre>
    <subgenre>Guerre</subgenre>
    <subgenre>Aventure</subgenre>
    <subgenre>Action and Adventure</subgenre>
  </genre>
  <genre name="Drama">
    <subgenre>Biography</subgenre>
    <subgenre>Romance</subgenre>
    <subgenre>History</subgenre>
    <subgenre>Crime</subgenre>
  </genre>
  <genre name="Thriller">
    <subgenre>Horror</subgenre>
    <subgenre>Mystery</subgenre>
    <subgenre>Film-Noir</subgenre>
  </genre>
  <genre name="Other">
    <subgenre>Short</subgenre>
    <subgenre>Music</subgenre>
    <subgenre>Musical</subgenre>
  </genre>
  <genre name="Sci-Fi">
    <subgenre>Science Fiction</subgenre>
    <subgenre>Science-Fiction</subgenre>
  </genre>
</genres>
Find all posts by this user
Add Thank You Quote this message in a reply
08-06-2012, 05:24 PM (This post was last modified: 08-06-2012 05:25 PM by accident.)
Post: #2
RE: error parsing genre.xml
delete the lines that start with <!--

There is a unicode character in the text and if your texteditor can't handle utf-8 it's breaking the file.

A trick with xml files, is open them in your browser. they will tell you exactly where it's broken or use a text editor that can test them. In this case nothing appeared in the browser indicating a problem before the xml started in the comments.
Find all posts by this user
Add Thank You Quote this message in a reply
08-07-2012, 03:28 AM
Post: #3
RE: error parsing genre.xml
I will know tomorrow when the script finishes but it looks like it was the double quotes. After doing a search and replace switching all double quotes for single quotes it seems to be working.
Find all posts by this user
Add Thank You Quote this message in a reply
08-08-2012, 03:35 PM
Post: #4
RE: error parsing genre.xml
That was it.

Swapping out double quotes for single quotes and everything is fine.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [YAMJ] error "The specified path, filename or both are too long(...) " etc djhifi 2 321 04-28-2013 11:46 PM
Last Post: djhifi
  java heap error with 1500+ folders (initial scrape) jadeddog 11 486 04-28-2013 04:14 PM
Last Post: Omertron
  [YAMJ] Unraid Reinstall error hunter69 4 344 04-26-2013 06:13 PM
Last Post: hunter69
  [YAMJ] empty Audio/Video channels added to xml files of existings tv-shows Boba Fett 6 970 04-16-2013 05:34 PM
Last Post: mattty_d2002
  [YAMJ] WebBrowser: Error getting URL http://www.google.com/search?q=% cybrid3 17 6,389 04-16-2013 03:27 AM
Last Post: DMH2000
  java parsing error wgstarks 5 448 04-06-2013 04:10 PM
Last Post: wgstarks
  YAMJ 2.9 r3673 java error wgstarks 12 809 04-04-2013 04:01 PM
Last Post: Hewon
  APIKEY error AtariBaby 11 495 04-01-2013 08:20 AM
Last Post: Omertron
  [YAMJ] EASY - Error Msg when updating My_YAMJ colinwilson1303 5 496 03-27-2013 03:09 PM
Last Post: colinwilson1303
  Libarary.xml groupings? dulsin 7 433 03-24-2013 03:24 PM
Last Post: dulsin

Forum Jump: