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

Commit

Permalink
Sort episodes by release date in SQL query
Browse files Browse the repository at this point in the history
This avoids an issue where Episodes are getting marked as new after
interacting with an older episode(Playing, marking as new/played).
  • Loading branch information
Hanouta committed Apr 4, 2020
1 parent 3ff76f7 commit 04370cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Library.vala
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ namespace Vocal {
FROM Episode e
LEFT JOIN Podcast p on p.feed_uri = e.podcast_uri
WHERE podcast_uri = '%s'
ORDER BY e.rowid ASC".printf (podcast.feed_uri);
ORDER BY e.released ASC".printf (podcast.feed_uri);
ec = db.prepare_v2 (prepared_query_str, prepared_query_str.length, out stmt);
if (ec != Sqlite.OK) {
warning ("Error: %d: %s\n", db.errcode (), db.errmsg ());
Expand Down

0 comments on commit 04370cc

Please sign in to comment.