Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
So I wrote a quick Python program to find all the long paths and manually renamed them. Now everything scans. I actually quite like to use Windows these days - I find it stable and mostly pretty easy to use and quite configurable. But it's a bit annoying that it officially supports long paths but then various programs - even Explorer - don't function entirely properly with them. Maybe it's time to consider a platform switch. d6jg wrote: > From your example it looks like you are trying to use folder names as > some kind of database structure rather than tags. > I know Classical is much more difficult than other music but why not > simplify the folder structure in favour of more tagging? > If your tags are correct then LMS really only needs albums in individual > folders. > > Edit. This assumes that you are only using LMS to play music ie > database. If you are also using something that only supports basic > folder structures then Im wrong I use the Artist/Album tags for Composer and Work. But I like to also keep information about the physical CD/LP which I keep in the folder structure (as well as some less standard tags). So I keep each CD (or in this case, box set) in its own folder. This makes things easier when, for example, ripping or copying to other devices. But the names of the folders and even the files aren't that important - I can certainly shorten them. I just used a simple convention (taking the names from the tags via foobar2k) as a quick way of setting the folders and files up which led to the long names and paths. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
>From your example it looks like you are trying to use folder names as some kind of database structure rather than tags. I know Classical is much more difficult than other music but why not simplify the folder structure in favour of more tagging? If your tags are correct then LMS really only needs albums in individual folders. Jim https://jukeradio.double6.net VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s *Office* Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s *Dining Room* SB Radio *Bedroom (Bedside)* Pi Zero+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV) & Bathroom* SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers *Guest Room* Joggler > Topping Amp -> Wharfedale Modus Cubes d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
bpa wrote: > What version of Windows ? > > IIRC 256 used to be the limit for a command prompt lines so if a file > path had many levels of directory it caused problems. It's Windows 10 (pretty much up to date). Reading up on it, there is a historical limitation to 260 chars but you can set a switch (which is set on my system) to remove it. But perhaps the API functions that SqueezeSvr is using are still restricted. Or worse some of them might be and others not. https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry Might have to try to reduce the long paths. Though I don't know which ones are too long. :-( bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
bstrulo wrote: > I looked through a selection and the cut-off does seem to be at 256 or > very close to it. What version of Windows ? IIRC 256 used to be the limit for a command prompt lines so if a file path had many levels of directory it caused problems. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
mherger wrote: > >Are they just above 256, or really much longer? After quickly skimming > > the scanner's code I wouldn't have expected the path length to be a > problem before 1024 characters. Maybe double byte characters etc. add > some to yours. But would you reach 1k? I looked through a selection and the cut-off does seem to be at 256 or very close to it. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
bpa wrote: > If this is Windows - then enabling 8.3 names used to solve some weird > issues but this may be out of date as I haven't dealt with Windows for a > long time. I enabled 8.3 on the volume and added 8.3 names to one folder: the one that has that particular file in. Rescan hasn't fixed the problem and it still can't be seen when I browse the folder (via the "Music Folder" browse option). I'm not particularly keen to copy my entire music tree to get 8.3 names on all of them. I could, but after this experiment it seems like it's unlikely to work. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
bpa wrote: > If this is Windows - then enabling 8.3 names used to solve some weird > issues but this may be out of date as I haven't dealt with Windows for a > long time. Yeah I'm just trying that but it's not so easy since all the files need to be re-copied I think to get an 8.3 name. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
No - this is one of them and its 275 I think. Configured as utf-8 so that should be roughly how long it is in bytes: Code: D:\AudioMaster\Classical New\Mozart\Piano Concertos\Alfred Brendel, The Academy Of St. Martin-in-the-Fields, Sir Neville Marriner, Ingrid Haebler, Ton Koopman\2.01. Harpsichord Concerto In D Major, K 107 No.1 (after J.C.Bach, Sonata, op.5 no.2) (Ton Koopman) - 1. Allegro.mp3 I wonder if it is something to do with finding the file in the Windows API. There was a similar problem with asian characters so it was not the name itself that was the problem but that the name wasn't being carried properly between scan and read. Or something like that. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
If this is Windows - then enabling 8.3 names used to solve some weird issues but this may be out of date as I haven't dealt with Windows for a long time. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
Just noticed something wrong in my music library - a bunch of files with really long paths (above 256) are being skipped by the scanner and also not shown if I browse the folder. Are they just above 256, or really much longer? After quickly skimming the scanner's code I wouldn't have expected the path length to be a problem before 1024 characters. Maybe double byte characters etc. add some to yours. But would you reach 1k? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] Scanner ignoring files with long paths
Just noticed something wrong in my music library - a bunch of files with really long paths (above 256) are being skipped by the scanner and also not shown if I browse the folder. I don't have 8.3 names enabled on the file system so that might be what's causing it ... Using 8.3.1. Not sure how long this has been going on but potentially for some time - months - but not years. bstrulo's Profile: http://forums.slimdevices.com/member.php?userid=15997 View this thread: http://forums.slimdevices.com/showthread.php?t=117188 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter