My DVDs remake (2 Viewers)

hwahrmann

Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Hi dukus,

    thanks for implementing my request.
    Having problems importing an Ant catalog, if there are special characters inside, like the German Umlaut.
    error is:
    "Invalid character in the given encoding".

    Looks like you didn't specify encoding type of UTF-8.
    When i saved the file as a UTF-8 out of my editor, i was able to process it.

    A problem is also, if in a tag, there is a "&" like in "Clever & Smart" or "Mr. & Mrs. Smith".
    Then the program terminates with a:
    Invalid Catalog Format Exception: An error occured while parsing entity name.

    regards,

    Helmut[/img]
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    45
    Home Country
    Romania Romania
    hwahrmann said:
    Hi dukus,

    thanks for implementing my request.
    Having problems importing an Ant catalog, if there are special characters inside, like the German Umlaut.
    error is:
    "Invalid character in the given encoding".

    Looks like you didn't specify encoding type of UTF-8.
    When i saved the file as a UTF-8 out of my editor, i was able to process it.

    A problem is also, if in a tag, there is a "&" like in "Clever & Smart" or "Mr. & Mrs. Smith".
    Then the program terminates with a:
    Invalid Catalog Format Exception: An error occured while parsing entity name.

    regards,

    Helmut[/img]

    Try to use the template export. File->export->html and change html extension with xml
     

    faf4life

    Portal Member
    March 21, 2006
    9
    1
    Hi there...

    I got the same problems that Helmut described. I tried exporting from AMC using the template. After eliminating all 'illegal' characters I only got the message 0 DVDs imported.
    Has anyone managed to import movies from AMC? Which template used?

    Eddie
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    45
    Home Country
    Romania Romania
    Updated version of My DVDs. Now working with xml files with special caracters like "?|/\~!@#&". Minor changes in csv import. Try now to import ant xml files, if don't work send me a exemple file. dukusi@gmail.com
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Hi Dukus,

    still the same problem with the new version.
    I've mailed you the xml file.

    Problem is that ANT doesn't export the file to be XML-conform.
    The following special characters need to be changed first, before being able to process them in XML:
    & -> &
    < -> &lt;
    > -> &gt;
    " -> &quot;
    ' -> &apos;

    Probably there's the need to open the file first using a StreamReader and do a Regexp or something like that to replace those strings first.

    Any System.XML class will fail, when such things are found.

    regards,

    Helmut
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    one thing that is still there.
    The special characters are not read, when i don't open the exported file in an editor and save it as UTF-8.
    in order to use the default encoding, i think you need to open the file as a stream and then pass the stream to the XmlReader.
    Something like this:
    Code:
    string xmlfile = "C:\\Temp\\Ant\\Helmut.xml";
    System.IO.StreamReader stream = new System.IO.StreamReader(xmlfile, System.Text.Encoding.Default);
    XmlReaderSettings settings = new XmlReaderSettings();
    settings.IgnoreWhitespace = true;
    XmlReader xmlReader = XmlReader.Create(stream,settings);
     

    mzemina

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    I've got a few little problems with this plugin.

    1) First is during the initial reading in of 250 DVDs - from DVDProfiler XML file. The problem is that it appears to stop for over 8 minutes with nothing appearing to happen on the progress bar. I had opened the task manager and saw memory continue to climb on the configuration program so I decided to wait but it took over 9 minutes in total for the import to finish.

    2) The second problem is that the import does not ignore an "A" or "The" in the title so the listing does not appear correct. OK, it doesn't look how I have had them arranged in alphobetical order.

    3) I'm not sure how it happened and I will try to repeat this, but this appears to be a bug. Using Big Icon View! The problem is once I have looked through the details on a DVD and go back and go to another DVD I cannot see the details. Has anyone else seen this problem?

    4) Using only the keyboard I am having some trouble moving the focus from the buttons (on the left) to the list and back again. Is there a secret key stroke to move back and forth using only the keyboard?

    Mike
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    • Sticky
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    541
    • Sticky
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many Thanks(y):)
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    1
    Views
    480
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    2K
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    273
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    321
    Top Bottom