Back to Top

download doesnt handle redirects quite right?

2 posts / 0 new
Last post
rbrc
Offline
Last seen: 12 years 4 months ago
Joined: 01/10/2010 - 15:05
download doesnt handle redirects quite right?

I've created my own podcast feed for handling live music sets and such. I needed to set it up in such a fashion so that I could track what doggcatcher had and had not yet downloaded, so I setup a php file called getFile.php that just logs the file access to a db and then does a redirect:
header("Location:$file");

the file downloads completely fine but ends up in LOST.DIR and then doggcatcher says "Not sure how to handle this enclosure type, it doesn't look like supported audio or video."

Any suggestions how I can fix this? I can update the feed if necessary.

rbrc
Offline
Last seen: 12 years 4 months ago
Joined: 01/10/2010 - 15:05
got it working by making the

got it working by making the feed call getFile.mp3 and setting up an htaccess rewriterule to use getFile.php when getFile.php is called. An annoying hack but it works, so ok.