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

    Similar threads

    • Sticky
    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
    876
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    • Sticky
    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 next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5221] - Core: Fix...
    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...
    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
    0
    Views
    2K
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    We have just released MediaPortal 1.34 - Dune x86 and x64 version. Highlights of this release Bugfixes: [MP1-5201] - Fix MPC-HC...
    Replies
    10
    Views
    4K
    I solved it myself, by modifying the host IP-address in the server table of the database, MariaDB [(none)]> use mptvdb; Database changed MariaDB [mptvdb]> SELECT * FROM Server; +----------+----------+--------------+----------+ | idServer | isMaster | hostName | rtspPort | +----------+----------+--------------+----------+ |...
    I solved it myself, by modifying the host IP-address in the server table of the database, MariaDB [(none)]> use mptvdb; Database...
    Hello everyone, I'm going to need help from the community to resolve a TV server crash issue. I encountered a problem with my...
    Replies
    4
    Views
    780
    Top Bottom