Time left and finished go by the length the player measured
A feed can be minutes out: ReThinking's gave 41:23 for a 43:48 file, which read 0:08 left with 2:33 to play. The player's length is kept in entry_state beside the position, per listener, where no scan can put the feed's figure back, and preferred to the feed's. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1916,7 +1916,8 @@ function paintListenRow(el){
|
||||
const e=el.entry, now=player.guid===e.guid&&player.feed===e.feed_id;
|
||||
// Zero until the player has sought to where you left off; the saved position stands till then.
|
||||
if(now&&audio.currentTime) e.position=Math.floor(audio.currentTime);
|
||||
const d=e.duration||(now&&isFinite(audio.duration)?Math.floor(audio.duration):0);
|
||||
// The player's own length first: a feed's can be minutes out.
|
||||
const d=(now&&isFinite(audio.duration)&&Math.floor(audio.duration))||e.duration;
|
||||
el.classList.toggle('now',now);
|
||||
$('.left',el).textContent=d?`${clock(d-e.position)} left`:`${clock(e.position)} in`;
|
||||
// With no length there is nothing to show, and an empty rail reads as a heavy border.
|
||||
|
||||
Reference in New Issue
Block a user