Hi Chales,
when you download "http://fr.wiktionary.org/wiki/Fichier:Fr-chaise.ogg", I think what you obtain is not an ogg file, but an html file, i.e. the same html that you see if you click on the link. (you can try to edit the file you obtain with a text editor to check)
What you need to download is the file linked in this html, in this case, http://upload.wikimedia.org/wikipedia/commons/a/a3/Fr-chaise.ogg There is a method which can be used to automatically guess the /a/a3/ directories given the name of the file ( Fr-chaise.ogg ).
I am not sure how I did it (but I did it), I think it is the first character of the md5sum and then the first two characters.
Do not hesitate to contact me if you are interested in this md5 thingy, I know I have it somewhere.
Have fun !
should Dload the any file. It all looks fine and rosy up to here but when I open the file with QTPlayer it doesn't play and the info window gives me 0 bytes whereas:
ls Fichier:Fr-chaise.ogg -rw-r--r-- - 24K 11 Jan 09:53 Fichier:Fr-chaise.ogg
There is nothing wrong with my players; this shell script:
test -d /tmp/frp || /bin/mkdir -p /tmp/frp ; cd /tmp/frp ; for i in $ (curl -s http://fr.wiktionary.org/wiki/$%7B1%7Dhttp://fr.wiktionary.org/wiki/$%7B1%7D|grep --only-matching "http.*ogg"" |/usr/bin/sed 's/".*$//') ; do curl -sO $i; done && open -g -a itunes /tmp/frp/Fr-${1}*.ogg
works for most entries (try chaise). So I Dload the file Fr-chaise.ogg and play the files with no problem. Also:
ls /Volumes/neo/Users/pm/Music/iTunes/iTunes\ Music/Unknown\ Artist/ Unknown\ Album/une\ chaise.ogg -rw-r--r--@ - 15K 11 Jan 10:00 …/Music/iTunes/iTunes Music/Unknown Artist/Unknown Album/une chaise.ogg
Thanks, _______________________________________________ Wiktionary-l mailing list Wiktionary-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wiktionary-l