Tried that and no success:

Before playing:
(puthash "/media/shared/music/10,000 Maniacs/Love Among the Ruins/01. Rainy
Day.mp3" '(*track* (type . file) (name . "/media/shared/music/10,000
Maniacs/Love Among the Ruins/01. Rainy Day.mp3") (info-albumartistsort .
"10,000 Maniacs") (info-artistsort . "10,000 Maniacs") (info-label .
"Geffen Records") (info-albumartist . "10,000 Maniacs") (info-originaldate
. "1997-06-17") (info-date . "1997-06-17") (info-discnumber . "1/1")
(info-album . "Love Among the Ruins") (info-tracknumber . "1/12")
(info-artist . "10,000 Maniacs") (info-title . "Rainy Day") (info-mtime
24054 16640 611702 0)) emms-cache-db)

After playing for 20 seconds:
(puthash "/media/shared/music/10,000 Maniacs/Love Among the Ruins/01. Rainy
Day.mp3" '(*track* (type . file) (name . "/media/shared/music/10,000
Maniacs/Love Among the Ruins/01. Rainy Day.mp3") (info-albumartistsort .
"10,000 Maniacs") (info-artistsort . "10,000 Maniacs") (info-label .
"Geffen Records") (info-albumartist . "10,000 Maniacs") (info-originaldate
. "1997-06-17") (info-date . "1997-06-17") (info-discnumber . "1/1")
(info-album . "Love Among the Ruins") (info-tracknumber . "1/12")
(info-artist . "10,000 Maniacs") (info-title . "Rainy Day") (info-mtime
24054 16640 611702 0) (last-played 25473 60068 637532 945000) (play-count .
1)) emms-cache-db)

---Fran

On Sat, 26 Nov 2022 at 01:03, Yoni Rabkin <[email protected]> wrote:

>
> Please do the following test for me with native-info:
>
> (emms-cache-reset)
>
> - add a file of your choosing
>
> - check to see that `info-playing-time' is _not_ in the cache for that
>   track
>
> - play the file (a few seconds should be enough)
>
> (emms-cache-save)
>
> - check to see if `info-playing-time' has appeared in the cache file for
>   the track
>
> ...let's see where that gets us.
>
> Thank you.
>
>
> "Fran Burstall (Gmail)" <[email protected]> writes:
>
> > With emms-info-native:
> >
> > (puthash "/media/shared/music/10,000 Maniacs/Love Among the Ruins/01.
> Rainy
> > Day.mp3" '(*track* (type . file) (name . "/media/shared/music/10,000
> > Maniacs/Love Among the Ruins/01. Rainy Day.mp3") (info-albumartistsort .
> > "10,000 Maniacs") (info-artistsort . "10,000 Maniacs") (info-label .
> > "Geffen Records") (info-albumartist . "10,000 Maniacs")
> (info-originaldate
> > . "1997-06-17") (info-date . "1997-06-17") (info-discnumber . "1/1")
> > (info-album . "Love Among the Ruins") (info-tracknumber . "1/12")
> > (info-artist . "10,000 Maniacs") (info-title . "Rainy Day") (info-mtime
> > 24054 16640 611702 0) (last-played 25473 19416 485013 479000)
> (play-count .
> > 1)) emms-cache-db)
> >
> > With emms-info-libtag:
> >
> > (puthash "/media/shared/music/10,000 Maniacs/Love Among the Ruins/01.
> Rainy
> > Day.mp3" '(*track* (type . file) (name . "/media/shared/music/10,000
> > Maniacs/Love Among the Ruins/01. Rainy Day.mp3") (info-album . "Love
> Among
> > the Ruins") (info-albumartist . "10,000 Maniacs") (info-albumartistsort .
> > "10,000 Maniacs") (info-artist . "10,000 Maniacs") (info-artistsort .
> > "10,000 Maniacs") (info-date . "1997-06-17") (info-originaldate .
> > "1997-06-17") (info-label . "Geffen Records") (info-title . "Rainy Day")
> > (info-tracknumber . "1/12") (info-discnumber . "1/1") (info-playing-time
> .
> > 286) (info-mtime 24054 16640 611702 0)) emms-cache-db)
> >
> > ---Fran
> >
> >
> > On Fri, 25 Nov 2022 at 21:27, Yoni Rabkin <[email protected]> wrote:
> >
> >>
> >> Please run emms-cache-save and made sure that it isn't being written. It
> >> does write all of those here.
> >>
> >>
> >> Yoni Rabkin <[email protected]> writes:
> >>
> >> > Are you looking for emms-playing-time-min and emms-playing-time-sec?
> >> >
> >> >
> >> > "Fran Burstall (Gmail)" <[email protected]> writes:
> >> >
> >> >> In the process of responding to an Emacs SX question, I was
> surprised to
> >> >> discover that emms-info-native no longer sets info-playing-time.
> >> >>
> >> >> Steps to reproduce:
> >> >>
> >> >> (emms-cache-reset)
> >> >> (setq emms-info-functions '(emms-info-native))
> >> >>
> >> >> Then add something to the playlist, wait for the info to load,  play
> it
> >> and
> >> >> do
> >> >>
> >> >> (emms-track-get (emms-playlist-current-selected-track)
> >> 'info-playing-time)
> >> >> ;=> nil
> >> >>
> >> >> I am sure that this was working when we were testing emms-info-native
> >> but
> >> >> it ain't now (at least for me and one other Emacs SX poster:
> >> >>
> >>
> https://emacs.stackexchange.com/questions/74637/getting-info-playing-time-for-track-in-emms-emms-status
> >> >> )
> >> >>
> >> >> ---Fran
> >> >>
> >> >> Emms version: 8
> >> >> Emacs version 28.2
> >>
> >> --
> >>    "Cut your own wood and it will warm you twice"
> >>
>
> --
>    "Cut your own wood and it will warm you twice"
>

Reply via email to