INTERACT FORUM

Please login or register.

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

Author Topic: Obtain file info directly from library obtained via MCWS  (Read 2333 times)

Don W

  • World Citizen
  • ***
  • Posts: 185
Obtain file info directly from library obtained via MCWS
« on: February 18, 2014, 09:32:01 am »

I'm considering writing a Windows 8 (i.e. WinRT) front end for MediaCenter using MCWS and have been thinking about how best to get detailed file info as quickly as possible for advanced grouping and sorting scenarios. It seems that the ideal option would be to obtain a copy of the entire library via the Library Get method and parse it directly for file info. Any suggestions on how to go about this? Thanks in advance.
Logged

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Obtain file info directly from library obtained via MCWS
« Reply #1 on: February 18, 2014, 11:56:54 pm »

I discovered I can do what I want with Files->Search function. That web method returns a MPL which turns out to be straight xml. Just needed to change the content type of the response to "text/xml" which made it possible to use the framework to easily serialize it into an xml element. I was worried that there might be a performance issue but there is none at all.
Logged
Pages: [1]   Go Up