Skip to content

Recently Played and Most Played lists under Music #158

Closed

Description

@jonasevcik

What would you like?

Two lists under Music: Recently Played (newest first) and Most Played (highest play count first), working like the iPod's Recently Played and Top 25 Most Played, but updated live on the player.

A way it could work with what is already in Reborn:

  • What counts as a play: the rule the Last.fm scrobbler already uses (heard for half the song or 4 minutes; seeks, pauses and skips add nothing). The same moment updates the song's last played and play count, so there is one rule, and it works with Last.fm switched off.
  • Where it is kept: a small table in the library database keyed by source and path, not columns on tracks, so a rescan or a changed file does not wipe it. Fields: last_played, play_count. If the clock is not trustworthy, order by a play sequence number (the scrobbler already deals with an unsynced clock).
  • Recently Played: songs ordered by last_played, newest first, capped (say 100).
  • Most Played: songs with at least one play, ordered by play_count, ties by last_played, capped (say 100, or 25 like the iPod).
  • Behaviour: opening a list plays it as a queue, like Songs. Radio and audiobooks stay out (they have their own places). Up Next's 50-song History stays as it is.
  • Optional, later: a skip count (iPod: Next pressed 2 to 30 s in) and a "Clear play history" action in Settings.

How the iPod does it: Recently Played and Top 25 Most Played are iTunes smart playlists copied to the device, so on the device they only refresh at the next sync. The iPod logs plays in a "Play Counts" file that iTunes merges. A play counts when the song is played through to the end; a skip is Next pressed about 2 to 30 s in; play and last-played tracking is described for the nano and 5G models. Without a computer sync, a player can update at the moment a play counts instead.

Why?

Go back to what played yesterday, or to the usual songs, without hunting through Artists and Albums with the wheel. History is limited to 50 songs and cannot be opened as a list, and there is no play count anywhere.

Related: #109 (Recently Added) and #110 (Dynamic playlists, which could use these as built-in lists).

I would be willing to implement this (library table, counting at the existing play rule, the two Music rows, tests) if the approach and the row names suit you. I would wait for a go-ahead on the shape first.

(I looked at how History and the scrobbler work in the source; I haven't tried any of this on a player.)

Where would you look for it?

Music, as rows after Songs: "Recently Played" and "Most Played".

Version

1.0.0-beta.9.3.32

Activity

  1. SchulzCode commented on Nov 19, 2026

    @SchulzCode
    Owner

    Thanks for the detailed proposal, it's built almost exactly like that for the next update. Music now has Recently Played and Most Played (100 songs each, Play All and Shuffle All at the top):

    • A song counts when you've heard half of it or 4 minutes, the same rule as Last.fm, with or without Last.fm and also for songs without tags. Seeking, pausing and skipping add nothing.
    • Play count and last play are kept by the song's path, so a rescan or rebuild keeps them. "Last played" is an order rather than a time, so a wrong clock doesn't matter.
    • Radio, audiobooks and films don't count.

    The history starts with the update, so the lists fill as you listen. I'll close this when the update is out.

  2. SchulzCode commented on Nov 19, 2026

    @SchulzCode
    Owner

    This is out now in Beta 9.3.33 (Settings → System → Software Update → Update Now). Closing; if anything isn't right on 9.3.33, comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions