Summary
kolibri manage listchannels lists imported channels
I would like a utility that would list the nodes imported for a given channel
The goal is to replicate an installation across time and space by providing a list of channels and nodes to another user.
The focus is on public channels.
Technical details
I would like the reverse of kolibri manage importcontent --node_ids <ids> network <channel id>
That is, for a given channel id it returns a list of completely imported nodes such that if that list were supplied as an argument in the above command the same content would be imported.
So the first question is whether such a function already exists in the code base.
The second set of questions relates to trying to write such a function.
Looking through the database I do not see a column that seems to indicate that a particular content file has been imported. I thought perhaps available in content_localfile but it always seems to be 0, so is it necessary to check the file system to see if a content item is there (and possibly whether it has the correct file size)?
The MPTT schema is a little tough to understand, but would I be right in thinking that if I select all topic nodes with rght == lft +1 that these are leaves and could be searched for downloaded content? There is probably a function somewhere that would get me this list.
Any help or advice appreciated.