olavfosse / eradio

The simple radio player for GNU Emacs
GNU General Public License v3.0
62 stars 6 forks source link

Add `eradio-{get,show}-song-title` functions #11

Closed isamert closed 3 years ago

isamert commented 4 years ago

I've created this function for my needs, hence it only works with mpv (and only works with internet radios, it does not extract information from other sources). Related to #6 but does not fulfill the requirements listed on there. Leaving this here for reference, feel free to close the PR.

isamert commented 4 years ago

Probably also should've listed socat as dependency in readme. I didn't look for emacs native alternative for it. Update: Added it to readme.

High-Flyer commented 10 months ago

This will be very handy thing to have with eradio. Thank you for the package o7.

High-Flyer commented 10 months ago

with all due repsect am a newbie where am supposed to insert =eradio-{get,show}-song-title=

olavfosse commented 10 months ago

Hello @High-Flyer

The most straightforward way would be to use the eradio.el version from Isamert's feature branch https://github.com/isamert/eradio/tree/feature/song-name. You could uninstall my eradio package, download the eradio.el file from https://github.com/isamert/eradio/tree/feature/song-name, drop it in your ~/.emacs.d and load it in your emacs config. Alternatively use his main branch: https://github.com/isamert/eradio/blob/master/eradio.el.

Here's a diff from olavfosse/eradio/eradio.el and Isamert's feature branch eradio.el.

image

Merry Christmas

High-Flyer commented 10 months ago

Greetings, I am on windows OS, emacs installed through Chocolatey Package Manager I am on Elpaca installed the eradio package through the MElPA Repository.

As you mentioned about the alternate https://github.com/isamert/eradio/tree/feature/song-name

What i did just removed you eradio.el file and replaced it with isamert one. Elpaca recolpiled everything on Byte recompile command. I can see M-x eradio-show-song-title, but sadly its not showing the title.

Sadly I dont know whats SOCAT. I can not find anything of such in package managers. I believe its the part Linux utils.

Without SOCAT running the package throwing error,

json-read-from-string: JSON readtable error: 39

I tried installing some ipython alternates here in chocolatey / winget namely nteract

TBH I am clueless here. I dunno how to link anything to emacs to my msys2 system which already installed. I understand what am asking is beyoind the scope of your package and what you offered is generous help, and it will be fine if we leave this topic unsolved.:)

PS: Distrotube published video already sadly without the song name displaying.

I am sorry to bring these at festive season. I wish you Good eve. Warm Regards May the children of Palestine feel Love and Joy too. Merry Christmas. Seasons Greetings

olavfosse commented 10 months ago

What i did just removed you eradio.el file and replaced it with isamert one. Elpaca recolpiled everything on Byte recompile command. I can see M-x eradio-show-song-title, but sadly its not showing the title.

I didn't write nor use eradio-show-song-title, so unfortunately I don't know how to help you with this. Godspeed.

PS: Distrotube working on this package for his next video, perhaps have to wait for his video x_x.

Oh shoot. I just googled and see he made a video about eradio earlier. So that's why I got some new stars recently 😅.

I am sorry to bring these at festive season. I wish you Good eve. Warm Regards May the children of Palestine feel Love and Joy too. Merry Christmas. Seasons Greetings

No worries man

God bless