INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Reading a field from an NFO file into custom field in MC?  (Read 731 times)

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 548
  • It's not easy being me, but it sure is fun!
Reading a field from an NFO file into custom field in MC?
« on: October 07, 2019, 05:29:18 pm »

Does anyone know how I can implement a field from an NFO file into a custom field? My NFO file has field called "set" and I would like to use it in the "Series" field, or even make a custom field. The field looks like this in the NFO file:

Code: [Select]
    <set>
        <name>The Incredibles Collection</name>
        <overview/>
    </set>

Any help will be greatly appreciated.
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10949
  • Dogs of the world unite!
Re: Reading a field from an NFO file into custom field in MC?
« Reply #1 on: October 08, 2019, 08:19:26 am »

It appears that we read "set" element in the following form only:

    <set>
        The Incredibles Collection
    </set>

not in the form you cited.  When I get around I will take a look and see if we can read it in both formats.

Until I make the change, you will not be able to load the data into a field.  You can try this though:

Manually change the <set> element to
    <set>
        The Incredibles Collection
    </set>

and in MC create a custom element "set", it must be all lower case.
Logged
Yaobing Deng, JRiver Media Center

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 548
  • It's not easy being me, but it sure is fun!
Re: Reading a field from an NFO file into custom field in MC?
« Reply #2 on: October 08, 2019, 04:52:29 pm »

It appears that we read "set" element in the following form only:

    <set>
        The Incredibles Collection
    </set>

not in the form you cited.  When I get around I will take a look and see if we can read it in both formats.

Until I make the change, you will not be able to load the data into a field.  You can try this though:

Manually change the <set> element to
    <set>
        The Incredibles Collection
    </set>

and in MC create a custom element "set", it must be all lower case.

Yaobing, I tried your suggestion and it works. Thank you for looking into this!
Logged
Pages: [1]   Go Up