Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Audex does not show CD cover

  1. #1
    Join Date
    May 2011
    Location
    Nürnberg, Germany
    Posts
    26

    Default Audex does not show CD cover

    Hello all,

    in theory, Audex should automagically search and download the cover art for a CD, show it in the GUI, and store it together with the rippped files.
    However, this does not work for me (I use OpenSUSE 12.2 and audex 0.74b1-2.1). The program does not show any CD cover.
    Sometimes I get a notification in the system tray saying something like e.g.:
    "finished http://images.google.com/images?gbv=1&q=Aerosmith%20Pump"
    So, it seems that Audex does perform a search but fails to download the image(s). When I enter the above url manually in firefox, I see several cover images though.

    Any ideas?

    Friedhelm.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Audex does not show CD cover

    Quote Originally Posted by fstappert View Post
    Hello all,

    in theory, Audex should automagically search and download the cover art for a CD, show it in the GUI, and store it together with the rippped files.
    However, this does not work for me (I use OpenSUSE 12.2 and audex 0.74b1-2.1). The program does not show any CD cover.
    Sometimes I get a notification in the system tray saying something like e.g.:
    "finished http://images.google.com/images?gbv=1&q=Aerosmith%20Pump"
    So, it seems that Audex does perform a search but fails to download the image(s). When I enter the above url manually in firefox, I see several cover images though.

    Any ideas?

    Friedhelm.
    So I had not been using Audex, but it seems very nice, except it does not fetch the CD cover for me either. I had to add in the KDE:Extra openSUSE 12.2 repository to install Audex. I did send an email to I presume the author on the issue and we will see if I get a reply. In the mean time, its easy to find and save a CD cover by manual means unless you are ripping CD's by the hundreds. The Audex Web site can be found here:

    Audex

    I noticed that the Home button does not bring you back home and the latest news is dated 2011-01-15, so it is hard to say if there is still anyone there at home anymore. The bottom line is it is a bug in Audex and I am unsure if anyone will be working on a fix there.

    Thank You,

    Edit Flash: Just got my email message returned to sender about the Audex Problem. I am thinking you are now S.O.L. on this problem. Sorry ...
    Last edited by jdmcdaniel3; 16-Jan-2013 at 19:48.
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    May 2011
    Location
    Nürnberg, Germany
    Posts
    26

    Default Re: Audex does not show CD cover

    Okay; "Hilf dir selbst, so hilft dir Gott", as they say in Germany.
    So I downloaded the source code from the Audex homepage (thanks for link!) and fixed it myself.

    I found the fix in a thread on kde-apps.org:
    Audex KDE-Apps.org

    It turned out that the regular expression for scanning the Google response was wrong (don't ask me what exactly was wrong; I've never been good at reading these expressions).

    Here comes a quick HowTo, in case anybody wants to implement the fix, too:

    o First, in order to compile the sources, I had to install the following packages:
    cmake
    gcc-c++
    libkde4-devel
    libkdcddb4-devel
    libcompactdisc4-devel
    cdparanoia-devel

    o Download and extract the source code somewhere
    o Follow the instructions on the Audex homepage, i.e.
    In the source directory type:
    mkdir build
    cd build
    cmake ..
    make

    o At first, I got a compiler error for utils/hashlist.cpp: It did not find "close" and "lseek".
    Fixed this by adding "#include <unistd.h>".

    o Then, edit utils/coverfetcher.cpp according to the above mentioned thread, i.e. the code in method "parse_html_response" should read:
    Code:
    ...
      QRegExp rx("<a\\shref=\"(\\/imgres\\?imgurl=[^\"]+)\">[\\s\\n]*<img[^>]+src=\"([^>]+)\"></a>");
      QString html = xml;
      html.replace( QLatin1String("&amp;"), QLatin1String("&") );
      
      rx.setMinimal(TRUE);
      
      int pos = 0; int i = 0;
      while (((pos = rx.indexIn(html, pos)) != -1) && (i < fetch_no)) {
    ...
    o Once more, type "make" in the build directory. You will find the new audex executable -- now with a working cover fetcher -- in the same directory.
    o I did not perform "make install", I just copied the new executable to /usr/bin/ thereby overwriting the "original" one.

    Now everything works perfectly for me :-)

    Have Fun!
    Friedhelm.

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Unhappy Re: Audex does not show CD cover

    Most interesting. I found some names that were not right in your prerequisite listing:

    Code:
    cmake
    gcc-c++
    libkde4-devel
    libkcddb4-devel
    libkcompactdisc4-devel
    cdparanoia-devel
    After loading these and making the modifications you mention, I still get the following error:

    Code:
    /home/james/Downloads/audex/utils/hashlist.cpp:35:41: error: ‘lseek’ was not declared in this scope
    /home/james/Downloads/audex/utils/hashlist.cpp:45:13: error: ‘close’ was not declared in this scope
    make[2]: *** [CMakeFiles/audex.dir/utils/hashlist.cpp.o] Error 1
    make[1]: *** [CMakeFiles/audex.dir/all] Error 2
    make: *** [all] Error 2
    james@linux-c100:~/Downloads/audex/build>
    Placing this at the top with the other include did not eliminate the above error message:

    Code:
    #include <unistd.h>
    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Thumbs up Re: Audex does not show CD cover

    Never Mind, I added the include to the file "utils/hashlist.h" which was complaining and now it compiles and does work, fetching the CD cover. So to recap the steps:

    1) Download the latest source file from here: http://kde.maniatek.com/audex/files/audex-0.74b1.tar.xz
    2) open Up YaST, search for the following packages and install these if not already there:

    Code:
    cmake
    gcc-c++
    libkde4-devel
    libkcddb4-devel
    libkcompactdisc4-devel
    cdparanoia-devel
    3) Extract the audex-0.74b1.tar.xz file into your downloads folder
    4) Modify the file $HOME/Downloads/audex-0.74b1.tar.xz/utils/coverfetcher.cpp such that:

    Beginning at Line 165 change to:

    Code:
    ...
      QRegExp rx("<a\\shref=\"(\\/imgres\\?imgurl=[^\"]+)\">[\\s\\n]*<img[^>]+src=\"([^>]+)\"></a>");
      QString html = xml;
      html.replace( QLatin1String("&amp;"), QLatin1String("&") );
      
      rx.setMinimal(TRUE);
      
      int pos = 0; int i = 0;
      while (((pos = rx.indexIn(html, pos)) != -1) && (i < fetch_no)) {
    ...
    5) Modify the file $HOME/Downloads/audex-0.74b1.tar.xz/utils/hashlist.h such that:

    Add the Line:

    Code:
    #include <unistd.h>
    Open up Terminal and execute these commands:

    Code:
    cd $HOME/Downloads/audex-0.74b1.tar.xz
    mkdir build
    cd build
    cmake ..
    make
    make install <or> sudo make install
    Or you can forgo the Make Install if you already have installed Audex and just copy the binary file over as in

    Code:
    sudo cp $HOME/Downloads/audex-0.74b1.tar.xz/build/audex /usr/bin/
    I just popped in an Audio CD and it found the cover with no problems. Thanks for the fix information.

    Thank You,
    Last edited by jdmcdaniel3; 19-Jan-2013 at 15:43.
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  6. #6
    Join Date
    May 2011
    Location
    Nürnberg, Germany
    Posts
    26

    Default Re: Audex does not show CD cover

    Thanks for the corrections. In fact, it makes more sense to add the #include in hashlist.h.

    Just one more thing: You might have to be root to be able to copy the file to /usr/bin

    Code:
    sudo cp $HOME/Downloads/audex-0.74b1.tar.xz/build/audex /usr/bin/
    Too bad the original author is no longer available. I really like this piece of software...

    Regards,
    Friedhelm.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Audex does not show CD cover

    On 2013-01-19 21:26, fstappert wrote:
    > Too bad the original author is no longer available. I really like this
    > piece of software...


    Could you describe what it does? Does it rip CDs and find the cover, right?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  8. #8
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Audex does not show CD cover

    Quote Originally Posted by robin_listas View Post
    On 2013-01-19 21:26, fstappert wrote:
    > Too bad the original author is no longer available. I really like this
    > piece of software...


    Could you describe what it does? Does it rip CDs and find the cover, right?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))
    This is a CD ripper like Asunder, but with more features including now, fetching the CD cover as well.



    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  9. #9
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Audex does not show CD cover

    Quote Originally Posted by fstappert View Post
    Thanks for the corrections. In fact, it makes more sense to add the #include in hashlist.h.

    Just one more thing: You might have to be root to be able to copy the file to /usr/bin

    Code:
    sudo cp $HOME/Downloads/audex-0.74b1.tar.xz/build/audex /usr/bin/
    Too bad the original author is no longer available. I really like this piece of software...

    Regards,
    Friedhelm.
    I edited my post and added in sudo for the copy command. Also, I guess you need the sudo for the make install, but not sure. Some programs will install in your local home folder and since we installed from the games repository,

    Code:
    "http://download.opensuse.org/repositories/games/openSUSE_12.2/"
    I am just not sure about that requirement. Anyone else gives it a try, tell us if it needed or not.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Audex does not show CD cover

    On 2013-01-19 23:56, jdmcdaniel3 wrote:
    >
    > robin_listas;2520001 Wrote:


    >> Could you describe what it does? Does it rip CDs and find the cover,
    >> right?


    > This is a CD ripper like Asunder, but with more features including now,
    > fetching the CD cover as well.
    >
    > [image: http://paste.opensuse.org/view/download/1741267]


    Mmm. I'll have to try them... the one I used was grip, had the bunch of
    features I wanted. Others I felt lacking in one thing or other. But it
    was made for an old version of gtk and is not maintained any more.

    With grip I could choose the exact set of options that lame would run
    with...

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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