{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/5618","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/5618/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/5618/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/5618/events","html_url":"https://github.com/mpv-player/mpv/issues/5618","id":304024935,"number":5618,"title":"autoload.lua Loads files incorrectly and behaves erratically","user":{"login":"TrendaFet","id":17427046,"avatar_url":"https://avatars3.githubusercontent.com/u/17427046?v=4","gravatar_id":"","url":"https://api.github.com/users/TrendaFet","html_url":"https://github.com/TrendaFet","followers_url":"https://api.github.com/users/TrendaFet/followers","following_url":"https://api.github.com/users/TrendaFet/following{/other_user}","gists_url":"https://api.github.com/users/TrendaFet/gists{/gist_id}","starred_url":"https://api.github.com/users/TrendaFet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrendaFet/subscriptions","organizations_url":"https://api.github.com/users/TrendaFet/orgs","repos_url":"https://api.github.com/users/TrendaFet/repos","events_url":"https://api.github.com/users/TrendaFet/events{/privacy}","received_events_url":"https://api.github.com/users/TrendaFet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-03-10T00:54:53Z","updated_at":"2018-03-10T12:04:39Z","closed_at":null,"author_association":"NONE","body":"### mpv version and platform\r\nmpv 0.28.0 on Windows 10 x64\r\n\r\n### Reproduction steps\r\n\r\nHave autoload.lua active and place video files in a folder with different names and extensions, for example:\r\n```\r\nVideo of - 2 Trees & a swing.avi\r\nBeach day on - Friday 2014.mp4\r\n534235.avi\r\n421353.flv\r\n462114.mp4\r\nVideo - File.wmv Day around CITY.LAM.mp4\r\nFinding the #lost tire ~around _city.LAM.flv\r\nG_31_In the box_-_in_the_house.avi\r\nTT_1343566771321.MP4\r\nTT_56524664fAFG4.MP4\r\nTest_file#4313; Phase one_b.MP4\r\nCave_in_(2012) --Street 43.flv\r\n...etc\r\n```\r\n\r\n### Expected behavior\r\nVideo files would play one after the other, in order.\r\n\r\n### Actual behavior\r\nRandom order of playing, and the same files are appended over and over to the playlist if you keep triggering \"play next\" a few times. So let's say the folder contains 300 video files, with \"play next\" a few times, it plays in random order or completely restarts order, then the playlist will indicate that it now contains 600 entries, then 900 and so on.\r\n\r\nI keep track of playlist by displaying `${playlist-pos-1}/${playlist-count}` in the OSD.\r\n\r\n### Log file\r\n\r\nhttps://paste.ubuntu.com/p/SKJfRNCd4G/\r\n\r\n### autoload.lua\r\nCurrently using the latest stable release of autoload.lua, unmodified.\r\n\r\n### Further explanation:\r\nThe reason I listed examples of the filenames is because I'm not really sure what's causing the problem, different extensions, specific characters used in filenames, the number of files or a mixture of all.\r\n\r\nI've tried to represent some of the weird filenames exactly because there are definitely weirdly named files in there, though the total files is 305 in one of my folders, but it occurs in other folders as well with more files."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/372024803","html_url":"https://github.com/mpv-player/mpv/issues/5618#issuecomment-372024803","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/5618","id":372024803,"user":{"login":"wiiaboo","id":111605,"avatar_url":"https://avatars2.githubusercontent.com/u/111605?v=4","gravatar_id":"","url":"https://api.github.com/users/wiiaboo","html_url":"https://github.com/wiiaboo","followers_url":"https://api.github.com/users/wiiaboo/followers","following_url":"https://api.github.com/users/wiiaboo/following{/other_user}","gists_url":"https://api.github.com/users/wiiaboo/gists{/gist_id}","starred_url":"https://api.github.com/users/wiiaboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiiaboo/subscriptions","organizations_url":"https://api.github.com/users/wiiaboo/orgs","repos_url":"https://api.github.com/users/wiiaboo/repos","events_url":"https://api.github.com/users/wiiaboo/events{/privacy}","received_events_url":"https://api.github.com/users/wiiaboo/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T12:04:39Z","updated_at":"2018-03-10T12:04:39Z","author_association":"MEMBER","body":"I'll try to move some things around in order to not be affected by readdir speed.\r\n\r\nCould you check if it still happens with [this](http://0x0.st/smDm.txt) version and fast cycling?\r\nAnd if it still happens, then try with [this one](http://0x0.st/smDa.txt)."}}
{"actor":{"display_login":"wiiaboo"}}