Post Reply 
Error: String index out of range: 24?
08-09-2022, 15:04 (This post was last modified: 08-09-2022 15:05 by AndrewS.)
Post: #11
RE: Error: String index out of range: 24?
Doh! Should have spotted that! Got it. Attached.


Attached File(s)
.txt  added-dates.txt (Size: 150.47 KB / Downloads: 3)
Find all posts by this user
Quote this message in a reply
08-09-2022, 15:35
Post: #12
RE: Error: String index out of range: 24?
Thanks for this. The problem is in lines 881 and 882 of this file. It looks like your library contains a file named

Code:
/Volumes/flac 2 Library/flac library 2/Soft Machine/2022-05-13, Teatro Caupolicán, Santiago, Chile (flac HD)/05 - Heart Off Guard - Broken Hill[cr]-.flac

where the [cr] is a carriage return (line ending) character. The code in MinimServer that reads the added-dates.txt file doesn't expect a filename to contain a line-ending character and this is the cause of the error.

You can work around this issue by renaming this file to (for example)

Code:
/Volumes/flac 2 Library/flac library 2/Soft Machine/2022-05-13, Teatro Caupolicán, Santiago, Chile (flac HD)/05 - Heart Off Guard - Broken Hill.flac

and using TextEdit to update lines 881 and 882 in the added-dates.txt file to match this new filename. Any filename that doesn't contain a [cr] character would work.

I will think about how to fix this error with filenames containing a [cr] character in a future update.
Find all posts by this user
Quote this message in a reply
08-09-2022, 15:51 (This post was last modified: 08-09-2022 16:00 by AndrewS.)
Post: #13
RE: Error: String index out of range: 24?
Ahha! That's cured it. I don't know how that errant return got in there. All running OK now.

Thank you so much Simon, for both great software (use it every day) and your patient support. I appreciate it.
Find all posts by this user
Quote this message in a reply
09-09-2022, 17:49
Post: #14
RE: Error: String index out of range: 24?
I have done some more investigation into this issue. The current version of MinimServer already has a fix for the [cr] problem. If MinimServer finds a [cr] (carriage return) or a [lf] (line feed) in a file path, it writes a special escape sequence into the added-dates.txt file do that this file can be read back without errors. This didn't happen for you because your added-dates.txt file was written by an older version of MinimServer without this fix.
Find all posts by this user
Quote this message in a reply
09-09-2022, 23:23 (This post was last modified: 10-09-2022 00:36 by AndrewS.)
Post: #15
RE: Error: String index out of range: 24?
Just curious - Do you think that [cr] precipitated the original issue requiring the upgrade, and persisted as it was already written into the added-dates.txt file? Would certainly explain the issue.

And do these kind of errors/warnings get listed in the log? It'd be good to be able to check after a rescan to identify and address any tagging issues.
Find all posts by this user
Quote this message in a reply
10-09-2022, 19:00
Post: #16
RE: Error: String index out of range: 24?
(09-09-2022 23:23)AndrewS Wrote:  Just curious - Do you think that [cr] precipitated the original issue requiring the upgrade, and persisted as it was already written into the added-dates.txt file? Would certainly explain the issue.
Yes, exactly as you say.

Quote:And do these kind of errors/warnings get listed in the log? It'd be good to be able to check after a rescan to identify and address any tagging issues.
All errors should be shown in the log but this might not happen if the error is caused by a bug (as in this case).
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)