Recent Downloads
A "Recently downloaded" strip and an all-time counter on the home page: proof at a glance that the site is busy.
Recent Downloads puts a small strip on the home page with the titles that were fetched last, and a counter of every download the site has served. A new visitor sees at a glance that the site works and that people use it. The plugin is free and works with every licence.
Switching it on
Admin → Plugins → Recent Downloads → Enable. That is all: the strip appears at once. The plugin has no screen of its own; its three settings sit in its card on the Plugins page.
What visitors see
On the home page, under the hero (and under the platform highlights, when those are shown), a card with:
- the heading, "Recently downloaded", with a clock icon;
- the newest titles as small pills, each with the icon of its platform. A long title is cut to 40 characters; the whole title shows when the pointer rests on it. The pills are plain text, not links;
- on the right, a badge with a download arrow and the all-time number of downloads, for example 12,480.
The strip is part of every theme (Default, Nova and Midnight) and every language of the site. While there is no title and no download yet, nothing is shown at all.
Settings
Admin → Plugins → Recent Downloads → Settings, then Save settings:
| Setting | Default | What it does |
|---|---|---|
| How many titles | 8 | How many of the newest titles the strip shows, from 1 to 30. |
| Show the all-time download counter | on | The badge with the number on the right. Off: titles only. |
| Heading | Recently downloaded | The words in front of the titles. |
Saving clears the cache, so the change is on the home page at once. The heading is shown exactly as you type it, in every language of the site, so on a site with several languages a short word or two that all your visitors understand works best.
Where the titles come from
The titles are the newest rows of Downloads → History that have a title: every link a visitor reads in the download box, every playlist opened, and the links read through the REST API and the embed widget (see REST API and embed widget).
This needs Keep download history on Settings → General (on by default). With history off no new titles arrive; the ones already there stay until History retention (days) removes them. See Settings, tab by tab.
The counter
The number counts every file download that starts on the site, plus every link read through the REST API. A file that continues in pieces counts once. It is the same figure as All time on the Dashboard, and it does not depend on the history setting.
How fresh it is
The strip is kept in the cache so it costs the database almost nothing: the titles are read again every two minutes, the counter every five. A visitor sees the new state when the page is opened or reloaded; the strip does not move by itself while the page is open. Clear cache on System check brings it up to date at once.
Privacy
The strip shows titles only. It never shows the link, a thumbnail, the visitor's address, the time or anything else from the history.
A private video, read with the visitor's own cookies (see yt-dlp Bridge), is written to the history without its title, so it never appears in the strip.
A title alone can still say something about what people fetch. To take one away, search for it on Downloads → History and delete its row with the bin button; the strip drops it within two minutes. Clear all on the same page empties the history, and the strip within two minutes (the counter stays).
Tips
- Six to ten titles fill one or two lines on a computer. On a phone the pills wrap onto more lines, so keep the number modest.
- A new site with few downloads can switch the counter off until the number looks good, and switch it on later: nothing is lost, it has been counting all along.
- If unwanted titles appear, add a rule on Downloads → Blocked URLs so those links are refused, then delete their rows from the history.
- The strip uses the
html_home_after_heroslot of the home page. The plugin is a good small example for anyone who wants to write a plugin; Plugins shows it.