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
    44
    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
    44
    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
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    1K
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    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
    40
    Views
    4K
    You are right, the one on the repository is correct, not sure how I ended up with a different version. See attached the incorrect version I ended up with.
    You are right, the one on the repository is correct, not sure how I ended up with a different version. See attached the incorrect...
    We have just released MediaPortal 1.32 Halloween Thanks to the great work of our new developer Pablik we are now able to present...
    Replies
    33
    Views
    4K
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    5K
    Didn't know computers are available in Canada's jails... :p
    Didn't know computers are available in Canada's jails... :p
    Hi folks, basically I have this m3u list with links I am trying to scan with the TV configuration tool but all the channels even...
    Replies
    5
    Views
    702
    Top Bottom