Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit 04370cc

Browse files
committed
Sort episodes by release date in SQL query
This avoids an issue where Episodes are getting marked as new after interacting with an older episode(Playing, marking as new/played).
1 parent 3ff76f7 commit 04370cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Library.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ namespace Vocal {
909909
FROM Episode e
910910
LEFT JOIN Podcast p on p.feed_uri = e.podcast_uri
911911
WHERE podcast_uri = '%s'
912-
ORDER BY e.rowid ASC".printf (podcast.feed_uri);
912+
ORDER BY e.released ASC".printf (podcast.feed_uri);
913913
ec = db.prepare_v2 (prepared_query_str, prepared_query_str.length, out stmt);
914914
if (ec != Sqlite.OK) {
915915
warning ("Error: %d: %s\n", db.errcode (), db.errmsg ());

0 commit comments

Comments
 (0)