GenXML is simply asking the server for all items of type "Movie". If it is giving back the names of collections then my best guess is that there is either a problem with your MB server or with the way you have organized your media. Here is the code that requests items:
private async Task<Int32> genXMLItemOfType(String strType,String strFile, int limit = 6000)
{
log("generating xml for type: "+ strType);
ItemQuery iq = new ItemQuery
{
UserId = _uid,
SortBy = new[] { ItemSortBy.SortName },
SortOrder = MediaBrowser.Model.Entities.SortOrder.Ascending,
IncludeItemTypes = new[] { strType },
Limit = limit,
// Search recursively through the user's library
Recursive = true
};
var items = await _client.GetItemsAsync(iq);
log("analyzing result for: "+strType+ ", with count "+items.Items.Count());
Dictionary<String, String> dictItems = new Dictionary<string, string>();
foreach (var foo in items.Items)
{
dictItems.Add(foo.Id, foo.Name);
}
log("Saved "+dictItems.Count+" items of type: " + strType);
_host.savePayloadFile(strFile, dictItems, true);
return dictItems.Count;
}
In the case of Movies the method is called as follows:
genXMLItemOfType("Movie", "MB3Payloads\\Movies.xml");