Songs overwritten by one song

19 views
Skip to first unread message

Aki Lankinen

unread,
Apr 10, 2025, 3:51:23 PMApr 10
to OpenSongApp
Hi,
I have serious problem with OpenSong. Very often when I open the app and let it do indexing of the song files, the song that was open gets overridden with a particular song "Suuri Herra oot" (attached). I also attached one song that got overridden ("Break every chain"). If I don't do indexing, there is no problem.

Could there be a character that confuses the indexing?

BR,
 Aki Lankinen
Songs.zip

Gareth Evans

unread,
Apr 10, 2025, 4:15:39 PMApr 10
to Aki Lankinen, OpenSongApp

Hi Aki,

I can see one issue in that song 'Suuri Herra oot'.  In the author field you have a '&' symbol and this technically isn't allowed in an XML file - it should be replaced by the following escaped version &  I'm not sure how the app has allowed this.   An easy way to fix this is to open that file in the app, open the song edit window and just click on Save.  That will fix this error and hopefully stop the overwriting of the other song.

The app was trying to fix this after indexing and writing it to the wrong song (the last one you had open).  I'll need to look at why it did this though.  Just open the song in the editor and save it, that will stop the issue happening again.

Sorry for the inconvenience.


--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/opensongapp/3bbd7076-7d02-482b-988a-59a726df7fafn%40googlegroups.com.

Gareth Evans

unread,
Apr 10, 2025, 4:31:18 PMApr 10
to Aki Lankinen, OpenSongApp

If you look at the OpenSong/Settings/fileWriteActivity.txt file, you will see lines that say 'autofix' and it will tell you the files that the app has wrongly replaced.  Hopefully not many, but if you have a backup file, you can recover them (the backup file is just a zip file with a different file extension).

The lines will look like this:

LoadSong fixXML writeFileFromString content://com.android.externalstorage.documents/tree/primary%3AOpenSong/document/primary%3AOpenSong%2FSongs%2FTemp%2FChocolate%20Cake_ with: <?xml version="1.0" encoding="UTF-8"?>
<song>
  <title>Suuri Herra oot</title>
  <author>Sons & Daughters</author>.......

In my example above it replaced a file called Chocolate Cake

Gareth Evans

unread,
Apr 11, 2025, 1:03:55 AMApr 11
to Aki Lankinen, OpenSongApp

I'm on holiday with the family until Monday, so I won't get a fix ready until then.  I'm the meantime avoid indexing songs

Gareth

Aki Lankinen

unread,
Apr 11, 2025, 1:58:27 AMApr 11
to Gareth Evans, OpenSongApp

Thanks! I removed & symbol and haven't noticed overrides since.

I imported OnSong file of this song and I remember modifying it afterwards with text editor, because there was strange characters in it. For I remember right ä and ö characters (common in Finnish) wasn't shown correctly. So most probably I left the & symbol there plainly. My bad...

Aki

Reply all
Reply to author
Forward
0 new messages