emms-help
[Top][All Lists]
Advanced

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

Re: Adding a description text property for a track


From: Yoni Rabkin
Subject: Re: Adding a description text property for a track
Date: Tue, 15 Mar 2022 13:55:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Yuchen Pei <hi@ypei.me> writes:

> On Sun, Feb 27 2022, Grant Shangreaux wrote:
>
>>> Mike Kazantsev <mk.fraggod@gmail.com> writes:
>>>
>>> And if a fixed one-liner description with some custom meaning is
>>> needed, I'd think it'd make sense to have a custom info function to
>>> interpret it somehow.
>>
>> Agreed, I think url track types could have their own info function.
>
> I added a info function for url track types using youtube-dl / yt-dlp:
>
> <https://git.savannah.gnu.org/cgit/emms.git/commit/?h=info-ytdl&id=13a862a99c740f960dd74205f106760314e6faab>
> <https://git.savannah.gnu.org/cgit/emms.git/commit/?h=info-ytdl&id=6b3b9edc5a4b6b936b468b9d3bfd472570532335>
>
> It supports all urls supported by youtube-dl / yt-dlp, including
> mediagoblin (e.g.[1]), peertube (e.g.[2]), and popular video hosting
> platforms that shall not be named.
>
> [1] https://media.libreplanet.org/u/libreplanet/m/fs-awards-ceremony/
> [2] https://framatube.org/w/ptK47LvsEGYAqMDs9ktziX
>
> Let me know what you think.

We can't add this as it is at the moment since it tries, as far as I can
tell, to run any "https" entry through ytdl. I have plenty of https
streams that are simply internet radio stations and other such streams
that have nothing to do with the software ytdl supports.

The other issue is that it shouldn't be specific to youtube or ytdl. If
anything, it should promote mediagoblin. Better still, it should be
named something like emms-info-streaming-video, and have the mechanism
inside to support multiple backends, one of which would be ytdl.

Also, small correction: (add-to-list emms-info-functions
'emms-info-ytdl) -> (add-to-list 'emms-info-functions 'emms-info-ytdl)

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



reply via email to

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