Page 11 of 58 FirstFirst ... 91011121321 ... LastLast
Results 101 to 110 of 572

Thread: Conky Rhythmbox Python Script

  1. #101
    Join Date
    Jul 2008
    Location
    Poland
    Beans
    36
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Rhythmbox Python Script

    Artist:
    Code:
    ryniek@RyniekOnDesktop:~$ conkyRhythmbox --datatype=TI
    Traceback (most recent call last):
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 474, in <module>
        main()
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 471, in main
        rhythmboxinfo.writeOutput()
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 424, in writeOutput
        print output.encode("utf-8")
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128)
    ryniek@RyniekOnDesktop:~$
    Album:
    Code:
    ryniek@RyniekOnDesktop:~$ conkyRhythmbox --datatype=AL
    Traceback (most recent call last):
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 474, in <module>
        main()
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 471, in main
        rhythmboxinfo.writeOutput()
      File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 424, in writeOutput
        print output.encode("utf-8")
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 6: ordinal not in range(128)
    ryniek@RyniekOnDesktop:~$
    Album and Artist of randomly choosen by me song has polish letters.

  2. #102
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Rhythmbox Python Script

    Can you install the attached deb file, this is the next version (2.05) with what I hope is the fix...

    Let me know how you get on, if all is okay I'll rollout the update via apt
    Attached Files Attached Files

  3. #103
    Join Date
    Jul 2008
    Location
    Poland
    Beans
    36
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Rhythmbox Python Script

    Thanks man. I've installed ver. 2.0.5 and by now i don't have any problems. Unicode works fine, polish letters in output works fine. Thanks

  4. #104
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Rhythmbox Python Script

    UPDATE

    Fixed the script to handle unicode output better (I hope)

    The first post has been updated and the apt package should be available soon

  5. #105
    Join Date
    Jul 2008
    Location
    Poland
    Beans
    36
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Rhythmbox Python Script

    When i'm listening to songs which has been performed by many artist, the output is to long and it extends too much on desktop. I modified the script like that:
    Code:
    elif datatype == "AR": #artist
        if self.musicData.artist == None or len(self.musicData.artist) == 0:
            output = None
        else:
            output = self.musicData.artist[0:30] + "..."
    Could you add the option which could cut off output bigger than maybe 35 letters?
    It could help other who don't know Python.

  6. #106
    Join Date
    May 2008
    Beans
    15

    Re: Conky Rhythmbox Python Script

    Using the last.fm plugin, I get "Unknown" for both artist & title. Works fine playing mp3s etc.

    Edit: typing 'rhythmbox-client --print-playing' in terminal returns both the artist and title so the data should be available to conkyRhythmbox... hopefully!!
    Last edited by yello_ubu; January 14th, 2009 at 08:20 PM.

  7. #107
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Rhythmbox Python Script

    @ryniek - I'll add a maxlength option to the script at some point, I've added it to my todo list for now...it will need to work on the command line and in templates, so it can be used for only certain datatypes if need be.

    @yello_ubu - I have both CD and last.fm support in my todo list

    Not sure when I'll start on the mods...I have quite a bit on right now

    Cheers

    Edit: Update coming now I couldn't help myself
    Last edited by kaivalagi; January 15th, 2009 at 12:27 AM.

  8. #108
    Join Date
    May 2008
    Beans
    15

    Smile Re: Conky Rhythmbox Python Script

    Cheers kaivalagi. No hurry, as and when. I'll stay tuned!

  9. #109
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Rhythmbox Python Script

    UPDATE

    I've updated the script as follows:

    • Updated to handle CD and last.fm music sources better
    • Added --maxlength option for command line and templates, to limit string output if need be
    • Updated README


    Maxlength usage help:
    Code:
      -m LENGTH, --maxlength=LENGTH
                            [default: 0] Define the maximum length of any
                            datatypes output, if truncated the output ends in
                            "..."

    The first post has been updated with the new attachments and the apt based packages are available
    Last edited by kaivalagi; January 15th, 2009 at 01:11 AM.

  10. #110
    Join Date
    May 2008
    Beans
    15

    Re: Conky Rhythmbox Python Script

    Whoosh! That was fast!! Works perfectly on last.fm too! Cheers kaivalagi

Page 11 of 58 FirstFirst ... 91011121321 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •