2015-04-08, 17:13
When running Files.GetDirectory, a m3u file get listed as a directory instead of a file.
It should be listed as a file, since running Playlist.Add on a m3u should be done as a file.
There are two problems with it as a directory,
1) Playlist.Add on a m3u as a directory, the m3u content will get reordered by Kodi.
2) Files.GetDirectory on a m3u will also return the results reordered by Kodi.
Treating it as a file, Playlist.Add will add m3u to the playlist, and playing it, Kodi will expand it in the correct order. (as Montellese mentioned in several other threads)
It should be listed as a file, since running Playlist.Add on a m3u should be done as a file.
There are two problems with it as a directory,
1) Playlist.Add on a m3u as a directory, the m3u content will get reordered by Kodi.
2) Files.GetDirectory on a m3u will also return the results reordered by Kodi.
Treating it as a file, Playlist.Add will add m3u to the playlist, and playing it, Kodi will expand it in the correct order. (as Montellese mentioned in several other threads)