You are not logged in.

#1 2012-03-11 22:33:27

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Lyvi - command-line lyrics (and more!) viewer

Screenshots:
tZnRiMA tZXdleA tZjE4eQ

Supported players:

  • Audacious

  • C* Music Player

  • Clementine

  • Consonance

  • DeaDBeeF

  • Gmusicbrowser

  • Guayadeque

  • MOC

  • MPlayer

  • Mpg123

  • Music Player Daemon

  • Pianobar

  • Qmmp

  • Rhythmbox

  • Shell-fm

  • Spotify

  • VLC Media Player

Features:

  • Mouse support

  • Displays lyrics, artist info and guitar tabs

  • Optionally set terminal background to artist photo

  • More than 20 providers (thanks to glyr)

  • Player control with configurable keybindings or statusbar buttons

  • Cache for downloaded metadata

  • Configuration file

Links:
Home page
AUR

Last edited by OK100 (2013-02-11 17:17:25)

Offline

#2 2012-03-12 08:33:08

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Lyvi - command-line lyrics (and more!) viewer

Looks nice. Send a mail to cmus mailing list, so other users know about it too.

Also add it to the cmus wiki

http://cmus.sourceforge.net/wiki/doku.php

Offline

#3 2012-03-12 11:23:38

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

x33a wrote:

Looks nice. Send a mail to cmus mailing list, so other users know about it too.

Also add it to the cmus wiki

http://cmus.sourceforge.net/wiki/doku.php

Done smile

Offline

#4 2012-03-29 18:03:26

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

I added support for shell-fm too.

Offline

#5 2012-03-31 20:30:39

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

Added support for pianobar.

Offline

#6 2012-04-01 18:26:07

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Lyvi - command-line lyrics (and more!) viewer

Loving it. Great work!

Offline

#7 2012-04-01 18:40:42

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

@theGunslinger: I'm glad you like it smile

I can add support for more players if anyone wants.

Offline

#8 2012-04-23 20:03:14

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

I added new feature: it can now display artist info as well (toggle with 'a' key).

Offline

#9 2012-04-24 20:14:01

Sirsurthur
Member
Registered: 2009-02-02
Posts: 124

Re: Lyvi - command-line lyrics (and more!) viewer

I just tested it and find it great !

Thanks a lot for it !

Offline

#10 2012-06-22 19:57:51

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

I added guitar tabs, support for mpd and moc, and keys for controlling player, along with other fixes. See github page for more details and screenshots. It's much better now.

Last edited by OK100 (2012-06-22 19:58:12)

Offline

#11 2012-06-29 13:16:51

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Lyvi - command-line lyrics (and more!) viewer

cmus-lyrics doesn't seem to work properly, here's the error it gives me when i run it

Traceback (most recent call last):
  File "/usr/bin/cmus-lyrics", line 574, in <module>
    curses.wrapper(main)
  File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/cmus-lyrics", line 529, in main
    p.status()
  File "/usr/bin/cmus-lyrics", line 174, in status
    if 'status stopped' in s:
TypeError: Type str doesn't support the buffer API

Offline

#12 2012-06-29 17:29:43

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

theGunslinger wrote:

cmus-lyrics doesn't seem to work properly, here's the error it gives me when i run it

Traceback (most recent call last):
  File "/usr/bin/cmus-lyrics", line 574, in <module>
    curses.wrapper(main)
  File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/cmus-lyrics", line 529, in main
    p.status()
  File "/usr/bin/cmus-lyrics", line 174, in status
    if 'status stopped' in s:
TypeError: Type str doesn't support the buffer API

This was python3-only error, it should work now.

Offline

#13 2012-06-29 18:57:37

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Lyvi - command-line lyrics (and more!) viewer

Are you sure? I reinstalled it with the latest revision but it still gives an error when I try to run it

Traceback (most recent call last):
  File "/usr/bin/cmus-lyrics", line 552, in <module>
    curses.wrapper(main)
  File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/cmus-lyrics", line 492, in main
    settings.update(parse_config(config_file))
  File "/usr/bin/cmus-lyrics", line 37, in parse_config
    return settings
UnboundLocalError: local variable 'settings' referenced before assignment

Offline

#14 2012-06-29 19:06:27

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

theGunslinger wrote:

Are you sure? I reinstalled it with the latest revision but it still gives an error when I try to run it

Traceback (most recent call last):
  File "/usr/bin/cmus-lyrics", line 552, in <module>
    curses.wrapper(main)
  File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/cmus-lyrics", line 492, in main
    settings.update(parse_config(config_file))
  File "/usr/bin/cmus-lyrics", line 37, in parse_config
    return settings
UnboundLocalError: local variable 'settings' referenced before assignment

Try now

Offline

#15 2012-06-29 19:09:59

theGunslinger
Member
Registered: 2011-05-20
Posts: 300

Re: Lyvi - command-line lyrics (and more!) viewer

Works perfectly again, thanks for the quick fix!

Offline

#16 2012-07-06 05:31:45

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

I renamed the script to "lyvi". The old name was a bit confusing since it supports more players now. The new AUR package name is "lyvi-git" and a link to the new repo is in the first post.

Offline

#17 2012-07-15 10:47:26

bashnev
Member
Registered: 2012-06-11
Posts: 24

Re: Lyvi - command-line lyrics (and more!) viewer

Hi,

Thanks OK100 for this nice piece of software.

The most recent update of lyvi produces the following error for each track as it starts instead of lyrics:

 Exception in thread Thread-3:
 Traceback (most recent call last):
 File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner 
self.run()
File "/usr/lib/python3.2/threading.py", line 693, in run
     self._target(*self._args, **self._kwargs)
File "/usr/bin/lyvi", line 102, in get_and_update
     m = metadata_get(type, artist, title, data['lang'])
File "/usr/bin/lyvi", line 91, in metadata_get
           get_type=type, database=db, language=lang.encode())
File "query.pyx", line 63, in plyr.Query.__cinit__ (src/glyr.c:3600)
File "query.pyx", line 297, in plyr.Query.language.__set__ (src/glyr.c:5400)
File "wrapper.pyx", line 18, in plyr._bytify (src/glyr.c:1224)
TypeError: encoding or errors without a string argument

I'm using cmus and previous versions of lyvi worked perfectly.

Offline

#18 2012-07-15 11:06:32

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

bashnev wrote:

Hi,

Thanks OK100 for this nice piece of software.

The most recent update of lyvi produces the following error for each track as it starts instead of lyrics:

 Exception in thread Thread-3:
 Traceback (most recent call last):
 File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner 
self.run()
File "/usr/lib/python3.2/threading.py", line 693, in run
     self._target(*self._args, **self._kwargs)
File "/usr/bin/lyvi", line 102, in get_and_update
     m = metadata_get(type, artist, title, data['lang'])
File "/usr/bin/lyvi", line 91, in metadata_get
           get_type=type, database=db, language=lang.encode())
File "query.pyx", line 63, in plyr.Query.__cinit__ (src/glyr.c:3600)
File "query.pyx", line 297, in plyr.Query.language.__set__ (src/glyr.c:5400)
File "wrapper.pyx", line 18, in plyr._bytify (src/glyr.c:1224)
TypeError: encoding or errors without a string argument

I'm using cmus and previous versions of lyvi worked perfectly.

Hi,
Should be already fixed in dba7f13.
Please reinstall lyvi-git and python-glyr-git from AUR and try again.

Offline

#19 2012-07-15 11:19:23

bashnev
Member
Registered: 2012-06-11
Posts: 24

Re: Lyvi - command-line lyrics (and more!) viewer

That fixed it. Cheers.

Offline

#20 2012-07-28 10:06:04

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Lyvi - command-line lyrics (and more!) viewer

Does not work with mpd, when mpd is on a remote machine.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#21 2012-07-28 15:13:44

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

Rasi wrote:

Does not work with mpd, when mpd is on a remote machine.

You can now set mpd_host and mpd_port in the configuration file (~/.config/lyvi/rc):

mpd_host = localhost
mpd_port = 6600

Offline

#22 2012-07-28 17:14:38

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Lyvi - command-line lyrics (and more!) viewer

I was wondering if you can add support for guayadeque music player!
Thanks!

Offline

#23 2012-07-28 17:52:23

Shinryuu
Member
From: /dev/urandom
Registered: 2010-02-27
Posts: 339

Re: Lyvi - command-line lyrics (and more!) viewer

This looks pretty nice also it works really well!

Offline

#24 2012-07-28 18:45:25

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Lyvi - command-line lyrics (and more!) viewer

@nierro: I'm working on it.
@Shinryuu: Thanks!

Offline

#25 2012-07-28 18:51:13

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Lyvi - command-line lyrics (and more!) viewer

Oh, thank you very much! Uhm...may be i could use this program to be executed in conky smile very nice eheh!
Thanks wink

Offline

Board footer

Powered by FluxBB