2011/9/29 Audiodef Online <[email protected]>: > That's a good point. I manually checked to see what wget does, and it > finds the direct path to the file and downloads it. However, it saves > the file as the name of the file in the url, so what wget deposits is a > file named download.php?id=27721. This doesn't get played by liquidsoap. > > So the question becomes: how can I force wget to save the file as the > name of the audio file instead of the name of the file in the url? > > Looking at the man page, I see there's an -O option. I didn't see > anything else that might be helpful, but I'm not familiar with wget > beyond the basics. I guess it's a matter of executing a wget command > that automatically uses the audio file name: > > -------------------------------- > > wget -O phobos__sweet_peas_341.mp3 > http://electro-music.com/forum/download.php?id=27721 > > --2011-09-29 13:34:22-- > http://electro-music.com/forum/download.php?id=27721 > Resolving electro-music.com... 173.201.189.104 > Connecting to electro-music.com|173.201.189.104|:80... connected. > HTTP request sent, awaiting response... 302 Found > Location: > http://electro-music.com/forum/phpbb-files/phobos__sweet_peas_341.mp3 > [following] > --2011-09-29 13:34:22-- > http://electro-music.com/forum/phpbb-files/phobos__sweet_peas_341.mp3 > Reusing existing connection to electro-music.com:80. > HTTP request sent, awaiting response... 200 OK > Length: 1986688 (1.9M) [audio/mpeg] > Saving to: `phobos__sweet_peas_341.mp3' > > ------------------------------------ > > In the above, I entered the file name manually. How would I get it to > happen automatically? And then, how do I get liquidsoap to execute it > that way instead of using wget with no options? > > Alternatively, I'm wondering if liquidsoap itself can rename the > downloaded file - to anything it wants as long as the file extension is > correct.
What David was saying is that we actually use wget internally to download the file.. Try this: liquidsoap 'output.ao(fallible=true, single(timeout=400., "http://electro-music.com/forum/download.php?id=27721")) set("log.level", 4)' Romain ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
