<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tangara-fw/src/tangara/database/database.cpp, branch main</title>
<subtitle>Tangara firmware</subtitle>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/'/>
<entry>
<title>Resolve some issues with dangling index records (#193)</title>
<updated>2025-01-24T00:40:48+00:00</updated>
<author>
<name>cooljqln</name>
<email>cooljqln@noreply.codeberg.org</email>
</author>
<published>2025-01-24T00:40:48+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=580712acd11d5afdacd51c2e8d29313efc93d520'/>
<id>580712acd11d5afdacd51c2e8d29313efc93d520</id>
<content type='text'>
- The tag parser's cache is now cleared between indexing runs, preventing stale data from being used
 - Multi-value tag fields (genres, all artists) are now properly ingested in the tag value cache
 - Cleaning up removed index records now properly handles the case where only a subset of the records for multi-value tags need to be deleted.
 - Synthesizing missing tag values is now done in the tag parser instead of TrackTags, which resolves some issues with multi-value tag callbacks from libtags not being handled properly

These fixes seem to address all the issues with stale index records we were able to repro (including the issues in https://codeberg.org/cool-tech-zone/tangara-fw/issues/191), but if you've got any more cases with consistent repros then lmk!

Co-authored-by: ailurux &lt;ailuruxx@gmail.com&gt;
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/193
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- The tag parser's cache is now cleared between indexing runs, preventing stale data from being used
 - Multi-value tag fields (genres, all artists) are now properly ingested in the tag value cache
 - Cleaning up removed index records now properly handles the case where only a subset of the records for multi-value tags need to be deleted.
 - Synthesizing missing tag values is now done in the tag parser instead of TrackTags, which resolves some issues with multi-value tag callbacks from libtags not being handled properly

These fixes seem to address all the issues with stale index records we were able to repro (including the issues in https://codeberg.org/cool-tech-zone/tangara-fw/issues/191), but if you've got any more cases with consistent repros then lmk!

Co-authored-by: ailurux &lt;ailuruxx@gmail.com&gt;
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/193
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new track tag + index for multiple artists</title>
<updated>2024-12-30T03:59:54+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-12-23T05:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=e9e608cfa09792a64fbda0946c92ec396622a088'/>
<id>e9e608cfa09792a64fbda0946c92ec396622a088</id>
<content type='text'>
We still mostly use the singular 'Artist' tag for e.g. displaying a nice
name in the now playing screen, but where a track has an 'ARTISTS=' tag,
we'll split by semicolon and then use the resulting list to populate an
index of tracks by artist
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We still mostly use the singular 'Artist' tag for e.g. displaying a nice
name in the now playing screen, but where a track has an 'ARTISTS=' tag,
we'll split by semicolon and then use the resulting list to populate an
index of tracks by artist
</pre>
</div>
</content>
</entry>
<entry>
<title>Make media directories case insensitive</title>
<updated>2024-12-23T05:21:22+00:00</updated>
<author>
<name>ailurux</name>
<email>ailuruxx@gmail.com</email>
</author>
<published>2024-12-23T05:21:22+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=35520ef17720778f7140c085c6c2bd005ed802f8'/>
<id>35520ef17720778f7140c085c6c2bd005ed802f8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>When no media-specific top level directories exist, assume everything is music</title>
<updated>2024-12-17T05:13:40+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-12-17T05:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=96e2fdd4e2e502cb52fe89bf9fd26b61a07108d9'/>
<id>96e2fdd4e2e502cb52fe89bf9fd26b61a07108d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds audiobook index to available indexes</title>
<updated>2024-09-24T03:41:36+00:00</updated>
<author>
<name>ailurux</name>
<email>ailuruxx@gmail.com</email>
</author>
<published>2024-09-24T03:41:36+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=5e43b422182b300074a2d2e02736557d34434996'/>
<id>5e43b422182b300074a2d2e02736557d34434996</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Include leading slash in media type paths</title>
<updated>2024-09-19T06:32:11+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-09-19T00:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=ea9c7a0498dfbcf59614de87a51a26229fdfce5b'/>
<id>ea9c7a0498dfbcf59614de87a51a26229fdfce5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce a MediaType for each track and index</title>
<updated>2024-09-19T06:32:11+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-09-18T03:07:42+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=57af3e64c8d6b13ac03192d9a8429dc801558a6b'/>
<id>57af3e64c8d6b13ac03192d9a8429dc801558a6b</id>
<content type='text'>
Initially set based on filepath, or by genre if the filepath doesn't
match one of our presets
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Initially set based on filepath, or by genre if the filepath doesn't
match one of our presets
</pre>
</div>
</content>
</entry>
<entry>
<title>WIP: Add last_position field to track data and start on implementation</title>
<updated>2024-09-12T07:35:22+00:00</updated>
<author>
<name>ailurux</name>
<email>ailuruxx@gmail.com</email>
</author>
<published>2024-09-12T07:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=43537798108ce240f1d1131db8611d0bf11a3e0c'/>
<id>43537798108ce240f1d1131db8611d0bf11a3e0c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Look for music in "/Music", with the root dir as a fallback</title>
<updated>2024-09-06T04:53:01+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-09-06T04:53:01+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=dacf3efc45677343479b4d3ff9502504b211639a'/>
<id>dacf3efc45677343479b4d3ff9502504b211639a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Shard searching for new tracks across multiple tasks</title>
<updated>2024-08-12T03:20:08+00:00</updated>
<author>
<name>jacqueline</name>
<email>me@jacqueline.id.au</email>
</author>
<published>2024-08-09T01:43:48+00:00</published>
<link rel='alternate' type='text/html' href='https://grim.freemyip.com/cgit/tangara-fw/commit/?id=2ad83cb2108dc55c9eb0573b0645513a1e8a61f5'/>
<id>2ad83cb2108dc55c9eb0573b0645513a1e8a61f5</id>
<content type='text'>
This also has the effect of breaking up the enormous 'updateIndexes'
method into one call per file, which means database updates also no
longer monopolise a single background task for their entire duration.

avg. time per new file is now &lt;140ms for a completely fresh database,
which is pretty good i think!
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also has the effect of breaking up the enormous 'updateIndexes'
method into one call per file, which means database updates also no
longer monopolise a single background task for their entire duration.

avg. time per new file is now &lt;140ms for a completely fresh database,
which is pretty good i think!
</pre>
</div>
</content>
</entry>
</feed>
