maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Is MussOrgsky still working ? (https://talk.maemo.org/showthread.php?t=67255)

stickymick 2013-04-25 08:55

Re: Is MussOrgsky still working ?
 
Successfully pulled some album art down a few days ago. I'm on the latest version too.

Just for info, I once used the Google app and was miffed when I got adverts instead of album art for a couple of albums.

Xagoln 2013-04-25 11:32

Re: Is MussOrgsky still working ?
 
Hmm, that's strange. I get no results for my queries from within Mussorgsky, but if I start it from Terminal and then copy and paste the Bing search URI that is output to the terminal on each search into the web browser, I see the Bing search results containing album art. Usually lots of it!

ersanpermana 2013-04-27 03:20

Re: Is MussOrgsky still working ?
 
Thanks for update it' working now :D

luunaitk12 2013-07-17 00:10

Re: Is MussOrgsky still working ?
 
the latest 0.5.2, can anyone help change the search from bing.com to google.com for album art. or guide where what is need to be changed and where for this change.

thanks...

luunaitk12 2013-07-17 01:21

Re: Is MussOrgsky still working ?
 
2 Attachment(s)
ok i had contacted ivan last year for this request and i got a reply from him (which i jus found out searching through my emails) so he guided what to do inorder to make that change but i m not able to do that as i dont know how to go about it or what tools i need etc.
so i will write here his instructions and if any1 here can do that would really be helpful. here are his instructions:

just need to modify the code of MussorgskyAlbumArt class in
album_art_thread.py . It has two "entry points":
1. get_album_art: It is called in the automatic download. It means
"give me one image for the artist-album". It will pick up the first
image found.
2. get_alternatives: Called when the user clicks on an album art. It
returns multiple images so the user can pick one in the UI.

need to reimplement (or create parallel functions for
google) these two functions:
1. __msn_images (that searches bing and get the html page with results)
2. __get_url_from_msn_results_page (that gets the url of each
individual image from the page).

Note that the file has a "main", so you can test it without running
the whole Mussorgsky. Good for development.


also have attached the latest deb file and the source file from the given link above.

Xagoln 2013-07-23 00:54

Re: Is MussOrgsky still working ?
 
1 Attachment(s)
I've started looking into doing this, but my Python skills are not stellar.

I have worked out what I think are the google search parameters for refining the image search, and added a new parameter '-e' to select the search engine (defaults to Google, but could be changed).

And I've copy/pasted the __msn methods, making __google variants.

There's still a fair bit of work before this would work, I think. Any Python devs out there?

Android_808 2013-11-10 18:36

Re: Is MussOrgsky still working ?
 
As a quick fix for those running version from repo, change:

BASE_MSN="https://www.google.com/search?site=&tbm=isch&q="
MSN_MEDIUM="&tbs=isz:m"
MSN_SMALL="&tbs=isz:s"
MSN_SQUARE=""
MSN_PHOTO=""

Further down there are some references to "imgurl:"" change to "imgurl="

Now you should have basic working google image results instead of bing. Still testing at the moment. I'll clean it up, correct functions using some of the extra details from above posts code, minus engine option as I don't have a working bing version at the moment. Ideally I'd like to make a version which uses script files from albumartdownloader (uses "boo" script?) so that they can be kept up to date.

luunaitk12 2013-11-10 19:48

Re: Is MussOrgsky still working ?
 
Quote:

Originally Posted by Android_808 (Post 1385509)
As a quick fix for those running version from repo, change:

BASE_MSN="https://www.google.com/search?site=&tbm=isch&q="
MSN_MEDIUM="&tbs=isz:m"
MSN_SMALL="&tbs=isz:s"
MSN_SQUARE=""
MSN_PHOTO=""

Further down there are some references to "imgurl:"" change to "imgurl="

Now you should have basic working google image results instead of bing. Still testing at the moment. I'll clean it up, correct functions using some of the extra details from above posts code, minus engine option as I don't have a working bing version at the moment. Ideally I'd like to make a version which uses script files from albumartdownloader (uses "boo" script?) so that they can be kept up to date.


thanks you sir. now just need someone to put it together n make the file. if anyone can....

Android_808 2013-11-10 21:11

Re: Is MussOrgsky still working ?
 
working on it at the moment! I'll package the fix first.

luunaitk12 2013-11-10 21:18

Re: Is MussOrgsky still working ?
 
ok thank you very much really appriciate ur time n effort n helping others as well in the process :)


All times are GMT. The time now is 07:25.

vBulletin® Version 3.8.8