Quantcast
Channel: Active questions tagged podcasts - Super User
Viewing all articles
Browse latest Browse all 31

How can I make wget rename downloaded files to not include the query string?

$
0
0

I'm downloading a site with wget and a lot of the links have queries attached to them, so when I do this:

wget -nv -c -r -H -A mp3 -nd http://url.to.old.podcasts.com/

I end up with a lot of files like this:

1.mp3?foo=bar2.mp3?blatz=pow3.mp3?fizz=buzz

What I'd like to end up with is:

1.mp32.mp33.mp3

This is all taking place in ubuntu linux and I've got wget 1.10.2.

I know I can do this after I get everything via a script to rename everything. However I'd really like a solution from within wget so I can see the correct names as the download is happening.

Can anyone help me unravel this?


Viewing all articles
Browse latest Browse all 31

Trending Articles