Ah that's the "..." (parent) item you see in the GUI. Unfortunately that depends on GUI settings so doing it like this here is not safe as the user might have the parent item disabled and the set might only contain a single movie and then items[1] wouldn't exist and it would blow up.  Probably best to go with the way I mentioned in the comment further up i.e. setting the path of the first item in the set as the path of the set's CVideoInfoTag. 