- January 26, 2014
- 3
- 6
- Home Country
- Canada
MediaPortal Version: 1.6.0
Description
For some reason I have this bug on my media center and not on my PC I guess the items are ordered differently when they are retrieved from disk. The item ".." is not always the first item.
Here is the code fix:
In the file
[url]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/WindowPlugins/GUIVideos/VideoSort.cs[/URL]
At line: 96, return value should be 1 instead of -1 like this:
if (item2.IsFolder && item2.Label == "..")
{
return 1; //Returning 1 means that item1 is greater than item2, it's indeed the case because we want ".." to be the very first item
}
Steps to Reproduce:
Hard to say, on my dev machine I did not have the problem with the same configuration as my media pc. I guess it depends on the order of the items before they are sorted
Description
For some reason I have this bug on my media center and not on my PC I guess the items are ordered differently when they are retrieved from disk. The item ".." is not always the first item.
Here is the code fix:
In the file
[url]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/WindowPlugins/GUIVideos/VideoSort.cs[/URL]
At line: 96, return value should be 1 instead of -1 like this:
if (item2.IsFolder && item2.Label == "..")
{
return 1; //Returning 1 means that item1 is greater than item2, it's indeed the case because we want ".." to be the very first item
}
Steps to Reproduce:
Hard to say, on my dev machine I did not have the problem with the same configuration as my media pc. I guess it depends on the order of the items before they are sorted