You are not logged in.

#76 2012-10-07 18:46:24

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

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

zeltak wrote:

heheh ok it does actually run now but i still get the black box in the alt config (it uses covers). normal config with backdrop and lyrics works great though smile

Z.

This is because you are using local images and don't have bg_path_cover option set smile

Last edited by OK100 (2012-10-07 18:48:10)

Offline

#77 2012-10-08 05:10:17

bslackr
Member
Registered: 2012-01-27
Posts: 131

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

OK100 wrote:

@bslackr: Latest commit should fix your issue. If not, please post your complete mpd config (WITH comments).

Looks good now, thanks.

Offline

#78 2012-10-08 07:43:16

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

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

zeltak wrote:

Hya again

found another bug. this seems to happen only when you play external files in mpd (not in libraraym through a unix socket):

  % lyvi                                                     !661
Traceback (most recent call last):
  File "/usr/bin/lyvi", line 1019, 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/lyvi", line 986, in main
    sleep(1)
KeyboardInterrupt



as always thx alot!

Z

if you're using bind_to_address option in mpd you should also set mpd_host option in lyvi to the same value.
For example:

mpd_host = /home/USER/.mpd/socket

Last edited by OK100 (2012-10-08 07:44:52)

Offline

#79 2012-10-08 16:39:33

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hallelujah smile

everything works butter smooth ;-)

thx alot. btw i just thought of something, does lyvi read a current saved .lyrics file in the dir or auto downloads it each time?

thx alot again

Z.

P.S i still have some more ideas but i will let you rest a bit..lol smile

Last edited by zeltak (2012-10-08 16:40:34)

Offline

#80 2012-10-08 17:30:15

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

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

zeltak wrote:

hallelujah smile

everything works butter smooth ;-)

cool

zeltak wrote:

thx alot. btw i just thought of something, does lyvi read a current saved .lyrics file in the dir or auto downloads it each time?

Lyvi stores everything (including images) in the cache file (at ~/.local/share/lyvi/metadata.db) and reads from it the next time.

Offline

#81 2012-10-09 15:10:38

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hya again.

Still getting the occasional error or two ;-)

lo Rush - Caravan
       File "/usr/bin/lyvi", line 212, in bg_setlocal
 Searching lyrics...
   bg_set(tmp_img, float(SETTINGS['bg_opacity']))
                                                   File "/usr/bin/lyvi", line 173, in bg_set
                                           image2 = image1.point(lambda p: p * opacity)
                                    File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1121, in point
       self.load()
                    File "/usr/lib/python2.7/site-packages/PIL/ImageFile.py", line 201, in load
                                              raise IOError("image file is truncated (%d bytes not processed)" % len(b))
              IOError: image file is truncated (5 bytes not processed)
                 

and yeah urxvt turns out to be a great image viewer ;-)..lol

thx

Z.

Last edited by zeltak (2012-10-09 15:11:45)

Offline

#82 2012-10-09 15:47:57

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

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

zeltak wrote:

hya again.

Still getting the occasional error or two ;-)

lo Rush - Caravan
       File "/usr/bin/lyvi", line 212, in bg_setlocal
 Searching lyrics...
   bg_set(tmp_img, float(SETTINGS['bg_opacity']))
                                                   File "/usr/bin/lyvi", line 173, in bg_set
                                           image2 = image1.point(lambda p: p * opacity)
                                    File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1121, in point
       self.load()
                    File "/usr/lib/python2.7/site-packages/PIL/ImageFile.py", line 201, in load
                                              raise IOError("image file is truncated (%d bytes not processed)" % len(b))
              IOError: image file is truncated (5 bytes not processed)
                 

and yeah urxvt turns out to be a great image viewer ;-)..lol

thx

Z.

I also had this issue a few times today. Please let me know if latest commit fixes it.

Offline

#83 2012-10-09 17:54:35

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

Yup

that seems to have fixed it smile

best

Z

Offline

#84 2012-10-14 13:29:26

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

Hya again

did i mention i frakkin love lyvi ;-)..

so been using it daily for last week and some more bugs have risen so reporting them:

1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples

http://paste.xinu.at/Gm61EQ/


another example:

http://paste.xinu.at/n2KD/

and a zip file with 2 images :

http://paste.xinu.at/aWmDC0/


errors:  there are quite a few every X songs here are some i saved (will report the rest as they appear)

 |<  >>  ||  >|                lyrics    All (10s)Exception in thread Thread-27:
                             Traceback (most recent call last):
              File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                     self.run()
                                                 File "/usr/lib/python2.7/threading.py", line 504, in run
       self.__target(*self.__args, **self.__kwargs)
                                                    File "/usr/bin/lyvi", line 261, in get_and_update
                                                      bg_setlocal()
                  File "/usr/bin/lyvi", line 212, in bg_setlocal
                 bg_set(tmp_img, float(SETTINGS['bg_opacity']))
 Come on, come on, come on, come on line 173, in bg_Didn't I make you feel
 Like you were the only man?t(lambda p: p * opacity)Yeah, I did not give you nearly everything that →
 a woman possibly canhon2.7/site-packages/PIL/Image.Honey, you know I didint
 And each time I tell myself that I, well, I thin→
 k I've had enough                        File "/usrWell, what I'm gonna show you, baby, that a woma→inn can be tough
 I want you to come on, come on, come on, come on→uncand take ittes not processed)" % len(b))        
 Take another little piece of my heart now, babyr: i(Break it)is truncated (44 bytes not processed)
 Break another little bit of my heart now, darlin→

another common error is that the word  opacity'])) keeps staying on the 1st line

thx again

Z

Offline

#85 2012-10-14 13:31:11

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

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

Off topic: Zeltak, can you share your Xresources? (namely the font)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#86 2012-10-14 14:20:46

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hehe sure

the font is Envy Code R (from AUR)

by resources i assume you mean color: http://paste.xinu.at/eH2/

let me know if you have any other questions

best

Z

Offline

#87 2012-10-14 15:37:45

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

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

Thanks! I was hoping you could also share the specific font line from .Xresources / .Xdefaults.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#88 2012-10-14 17:50:32

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

here it is:

http://paste.xinu.at/WK49/

have fun

Z.

Offline

#89 2012-10-14 18:25:16

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

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

Thanks!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#90 2012-10-15 12:34:43

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hi again

as i said in prev post ill report the bugs as they come smile

drag by? Did the favors wane?
 Did he roam down the town all the while?
 Will you wake from your dream, with a wolf at theException in thread Thread-2:
                            Traceback (most recent call last):
             File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                    self.run()
                                                File "/usr/lib/python2.7/threading.py", line 504, in run
      self.__target(*self.__args, **self.__kwargs)
                                                    File "/usr/bin/lyvi", line 942, in autoscroll
                                                  self.refresh()
               File "/usr/bin/lyvi", line 914, in refresh
          self.pager.refresh()
                                File "/usr/bin/lyvi", line 838, in refresh
                           self.win.addstr(y, 1, text[i].encode('utf-8'), color)
                             error: addstr() returned ERR
      
      Exception in thread Thread-3:
                                   Traceback (most recent call last):
                    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                           self.run()
    File "/usr/lib/python2.7/threading.py", line 504, in run
             self.__target(*self.__args, **self.__kwargs)
        File "/usr/bin/lyvi", line 271, in get_and_update
          ui.refresh()
                        File "/usr/bin/lyvi", line 914, in refresh
                   self.pager.refresh()
                                         File "/usr/bin/lyvi", line 838, in refresh
                                    self.win.addstr(y, 1, text[i].encode('utf-8'), color)
                                      error: addstr() returned ERR
               
               

thx

Z

Offline

#91 2012-10-15 16:07:57

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

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

zeltak wrote:

hi again

as i said in prev post ill report the bugs as they come smile

drag by? Did the favors wane?
 Did he roam down the town all the while?
 Will you wake from your dream, with a wolf at theException in thread Thread-2:
                            Traceback (most recent call last):
             File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                    self.run()
                                                File "/usr/lib/python2.7/threading.py", line 504, in run
      self.__target(*self.__args, **self.__kwargs)
                                                    File "/usr/bin/lyvi", line 942, in autoscroll
                                                  self.refresh()
               File "/usr/bin/lyvi", line 914, in refresh
          self.pager.refresh()
                                File "/usr/bin/lyvi", line 838, in refresh
                           self.win.addstr(y, 1, text[i].encode('utf-8'), color)
                             error: addstr() returned ERR
      
      Exception in thread Thread-3:
                                   Traceback (most recent call last):
                    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                           self.run()
    File "/usr/lib/python2.7/threading.py", line 504, in run
             self.__target(*self.__args, **self.__kwargs)
        File "/usr/bin/lyvi", line 271, in get_and_update
          ui.refresh()
                        File "/usr/bin/lyvi", line 914, in refresh
                   self.pager.refresh()
                                         File "/usr/bin/lyvi", line 838, in refresh
                                    self.win.addstr(y, 1, text[i].encode('utf-8'), color)
                                      error: addstr() returned ERR
               
               

thx

Z

Please update lyvi to latest version and run it with -d option. When your lyrics window get messed, post here lyvi.log file that was created in the current directory.

Thanks

Offline

#92 2012-10-15 17:34:51

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

thx

already running with the -d

Here is the output:

http://paste.xinu.at/csUQHS/


btw did you see my  prev post issue:

1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples
http://paste.xinu.at/Gm61EQ/

another example:
http://paste.xinu.at/n2KD/
and a zip file with 2 images :
http://paste.xinu.at/aWmDC0/

thx

Z

Last edited by zeltak (2012-10-15 17:50:12)

Offline

#93 2012-10-15 17:52:47

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

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

zeltak wrote:

thx

already running with the -d

btw did you see my  prev post issue:

1.black box issue- for some artist/albums lyvi dosent pick up the image and just shows a black box. here are some examples
http://paste.xinu.at/Gm61EQ/

another example:
http://paste.xinu.at/n2KD/
and a zip file with 2 images :
http://paste.xinu.at/aWmDC0/

thx

Z

Are you sure you have the images in the usual directories? Can I see your config file please?

Offline

#94 2012-10-15 18:02:15

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hya

first some more errors in the log:

http://paste.xinu.at/AAyjIA/

here are the config files:

http://paste.xinu.at/5PcA/

and

http://paste.xinu.at/qFqsWn/

the images are exactly as the other images in the same file structure

example:

'/home/zeltak/Zmusic/R/Randy Newman/Lonely at the Top-The Best of Randy Newman/Folder.jpg'

'/home/zeltak/Zmusic/M/Manu chao/Proxima Estacion Esperanza/Folder.jpg'

etc

thx

Z

Offline

#95 2012-10-15 18:40:31

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

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

Hi,

It would be really helpful if you can update and post the log file again as I added some more debug output.

Thanks

Offline

#96 2012-10-15 18:57:36

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

here you go,  a nice combination of errors smile

http://paste.xinu.at/f9M/

thx again

Z

Offline

#97 2012-10-16 19:00:05

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

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

I tried the same songs (Elliott Smith - Coming Up Roses and Sparks - Hasta Manana, Monsieur) and everything worked fine for me. Can you please test if it always crash with this songs? Is it a common error for you?

Thanks

Offline

#98 2012-10-16 19:58:42

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

hya again

first of all here is a much more detailed log for the past 24 hours..maybe it will help

http://paste.xinu.at/dIZW/

ok so trying these songs again didnt crash but in the sparks track it did not find the album art (just show a black box).

Let me know if any other tests are required as ill be happy to help

BTW, did u have these tracks in your collections, ;-).. looks like you have great taste in music ;-)

best

Z

Offline

#99 2012-10-17 15:45:24

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

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

zeltak wrote:

hya again

first of all here is a much more detailed log for the past 24 hours..maybe it will help

http://paste.xinu.at/dIZW/

I tried a few things but still can't get this bug. Do you know how to make it crash or it seems to be random?

zeltak wrote:

ok so trying these songs again didnt crash but in the sparks track it did not find the album art (just show a black box).

Set bg_color to the same as your terminal background color. I'm not sure why it doesn'ŧ show the right image though, but I'll keep digging.

zeltak wrote:

BTW, did u have these tracks in your collections, ;-).. looks like you have great taste in music ;-)

heheh of course not, I just edited the tags of some other song big_smile

Offline

#100 2012-10-17 17:40:55

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

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

Do you know how to make it crash or it seems to be random?

i thinks its pretty random

Set bg_color to the same as your terminal background color.

did that with no success. still getting black backgrounds. this is not random and in specific albums

thx again, let me know if you need any other testing!

Z

Offline

Board footer

Powered by FluxBB