emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emms-info-native not setting info-playing-time


From: Yoni Rabkin
Subject: Re: emms-info-native not setting info-playing-time
Date: Sun, 27 Nov 2022 08:41:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

"Fran Burstall (Gmail)" <fran.burstall@gmail.com> writes:

> 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

I've managed to recreate this. I was seeing playing-time being set
because I use mpv, and emms-player-mpv sets the playing time when it
plays the track.

It Petteri (author of emms-info-native) can chime in, then great,
otherwise, I'll look at why emms-info-native isn't setting that
value.

To be clear, emms-info-native should indeed be setting that value, but
the code must have some kind of bug.

Thank you for catching this.

P.S. Please don't top-post.


> On Sat, 26 Nov 2022 at 01:03, Yoni Rabkin <yoni@rabkins.net> 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)" <fran.burstall@gmail.com> 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 <yoni@rabkins.net> wrote:
>> >
>> >>
>> >> Please run emms-cache-save and made sure that it isn't being written. It
>> >> does write all of those here.
>> >>
>> >>
>> >> Yoni Rabkin <yoni@rabkins.net> writes:
>> >>
>> >> > Are you looking for emms-playing-time-min and emms-playing-time-sec?
>> >> >
>> >> >
>> >> > "Fran Burstall (Gmail)" <fran.burstall@gmail.com> 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"
>>

-- 
   "Cut your own wood and it will warm you twice"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]