<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Edit database manually]]></title><description><![CDATA[<p dir="auto">I have found a way to export lastplayed timestamp and playcount from my old Media Monkey database. No i have tried to update the Strawberry database with this data via a standard SQlite editor. The changes are written to the database, but i didnt see them reflecting in the GUI. Is there any thing i have todo? When i edit the strawberry database, i use a SQL like this:</p>
<pre><code>UPDATE `songs` SET `lastplayed` = 1631919400, `playcount` = 4 WHERE `artist` = "Some Artist" AND `album` = "Some album" AND `track` = 5 AND `title` = "some title";
</code></pre>
<p dir="auto">The SQL seems to be fine and the date in the expected format (Unix timestamp), but i get 1.1.1970 in the GUI. The playcount is updated. Do i miss something?</p>
]]></description><link>https://forum.strawberrymusicplayer.org/topic/510/edit-database-manually</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 18:08:43 GMT</lastBuildDate><atom:link href="https://forum.strawberrymusicplayer.org/topic/510.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jan 2022 09:30:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Edit database manually on Thu, 20 Jan 2022 10:26:34 GMT]]></title><description><![CDATA[<p dir="auto">Ahh got it to work. I have to refresh the opened playlist. Then the imported dates are visible. If someone needs the export SQL from Media Monkey to Strawberry:</p>
<pre><code>SELECT SongPath, Artist, Album, AlbumArtist, TrackNumber, DiscNumber, SongTitle, PlayCounter, strftime('%s', datetime(LastTimePlayed + 2415019.0)) as lastplayed
FROM Songs
WHERE LastTimePlayed &gt; 0;
</code></pre>
<p dir="auto">Media Monkey uses juliandate to save the date. I export the other fields additionally, to match the fields in Strawberry and find the correct songs. Form the returned entrys, i create the above UPDATE statement for Strawberry:</p>
<pre><code>UPDATE `songs` SET `lastplayed` = 1631919400, `playcount` = 4 WHERE `artist` = "Some Artist" AND `album` = "Some album" AND `track` = 5 AND `title` = "some title";
</code></pre>
]]></description><link>https://forum.strawberrymusicplayer.org/post/1350</link><guid isPermaLink="true">https://forum.strawberrymusicplayer.org/post/1350</guid><dc:creator><![CDATA[OriNOVet]]></dc:creator><pubDate>Thu, 20 Jan 2022 10:26:34 GMT</pubDate></item></channel></rss>