Yes. Lets see what the future brings...
Already done but not released yet. It will work with mocp, mpd, audacious and totem for now.
I will implement that but not for the next version.
mmm... this is easy. Maybe I could implement it in this way instead...
The avatars are desktop entry files that should work practically anywhere:
http://www.freedesktop.org/wiki/Spec...top-entry-spec
For example, if you go to: "/usr/share/applications" you will see a lot of desktop entry files.
If Konqueror doesn't work then it is probably a Konqueror problem.
1 ) It is already in my todo list. I will make it search in google first. For example for: imdb A clockwork orange. Then from the result I will get the page.
But internal changes are needed first to be able to select multiples files.
2 ) Yes, from links it will be very easy but I don't know when I will be able to do that. There is a lot in the to do list.
Well, if you don't mind using a dock (and a composite window manager), the stacks in AWN are ideal for avatar-factory!
If it doesn't work, it might be that Konqueror derives the file type from the extension. Running this in your folder of avatars may do the trick:
(Not tested, prone to typos.)Code:for file in *; do mv "$file" "`basename "$file" .avatar`".desktop; done
The first Google result for: imdb movie_name isn't always the imdb page. Here an implementation of what I was saying (well, I mostly copied your function get_cover_picture)
You may probably rewrite the step with aux1 and aux2 using sed, but I don't know how to handle regular expressions, so I used the bash builtin string functions % and #. I just needed to isolate the table containing the string "Popular Titles".Code:get_imdb_page () { search_url="http://www.imdb.com/find?q="\"$SOURCE\"";s=tt;site=aka" search_page="$(wget -qO - "$search_url")" metadata_line_number=$(( $(echo "$search_page" | grep -n -i '<meta name="title"' | cut -d: -f1 ) )) if [ "$(echo "$search_page" | sed -n "$metadata_line_number p" | sed "s|.*content=||" | cut -d\" -f2)" = "IMDb Title Search" ]; then title_line_number=$(( $(echo "$search_page" | grep -n -i 'Popular Titles' | cut -d: -f1 ) )) aux1=$(echo "$search_page" | sed -n "$title_line_number p") aux2=${aux1#*"Popular Titles"} imdb_url="http://www.imdb.com"$(echo ${aux2%%"/table"*} | sed "s|.*href=||" | cut -d\" -f2) imdb_page="$(wget -qO - "$imdb_url")" else imdb_page=$search_page fi }
I tried with, say, 30 random titles both in english and in italian and it seems that it works.
Btw, what multiple files are refering to? Is it because of movies split into two files?
Last edited by Nonno Bassotto; September 2nd, 2007 at 11:54 PM.
Please, feel free to correct my english, so that I can improve it.
Click here to join Dropbox. Both you and I get free extra space.
Please, feel free to correct my english, so that I can improve it.
Click here to join Dropbox. Both you and I get free extra space.
Great.
I have to finish the next release and then I will see how I will do it but I was thinking in something more simple. (remember that I am a newbie )
I will not take the first result from google, I plan to grep the result from google for the first line containing something like "imdb.com/title/" and once I have the url I will use the existing grabber:
About the multiple files, to do something like:Code:get_cover_picture () { #First the code to get the imdb page and then: URL="the url" . /usr/local/share/avatar-factory/grabbers/imdb #I will rename the film grabber to imdb get_cover_picture }
The music grabber can add only one album but if I make the video grabber to work on folders it will not be able to chose only one video. But I don't know if it is really an important thing...Code:avatar-factory --video-grabber ./*.avi ./destination
Last edited by Yuzem; September 3rd, 2007 at 12:50 AM.
All settings for the stack are in gconf for the moment. Run "gconf-editor" and got to /apps/avant-window-navigator/applets/*some number*. There should be something about the icon size there.
It seems easier to take the first result from Google for the query "site:imdb.com/title fight club", for example.
mmm... I want this to work everywhere. I will install konqueror and see if there is something that I can do about that.
Bookmarks