feat(start): list tutorial videos newest first
The playlist page lists oldest-first; reverse before persisting so the cached listing and offline launches share the order. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c879b4294a
commit
ba73c48aec
1 changed files with 5 additions and 0 deletions
|
|
@ -158,6 +158,11 @@ pub fn fetch_playlist() -> Result<Vec<VideoEntry>, String> {
|
|||
return Err("no video titles resolved".into());
|
||||
}
|
||||
|
||||
// The playlist page lists oldest-first; the Start page wants the newest
|
||||
// tutorials on top. Reversed before persisting, so the cached listing
|
||||
// (and every later offline launch) shares the same order.
|
||||
out.reverse();
|
||||
|
||||
// Persist the listing so the next launch starts from it.
|
||||
if let Some(d) = &dir {
|
||||
let listing: String = out
|
||||
|
|
|
|||
Loading…
Reference in a new issue