tresni / freenas-rss-extension

Automatically exported from code.google.com/p/freenas-rss-extension
0 stars 0 forks source link

Filter Match Occurs but Download Fails (when URL contains space characters) #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click on the download link next to a matched item that has not downloaded
2.
3.

What is the expected output? What do you see instead?
Expect a success message at the top, instead it says failed - only files 
without spaces in the url work

What version of the product are you using? On what operating system?
mostly the latest trunk files, on FreeNAS 0.7.1

Please provide any additional information below.
I made it work by changing one line in rss_functions.inc

  $data = file_get_contents($url, false, $cntx);

I changed it to:
  $data = file_get_contents(str_replace(' ', '%20', $url), false, $cntx);

I know it's not pretty and I'm sure there's a better way to do this, but now 
the torrents that didn't work do so I'm a happy RSS downloader.

Original issue reported on code.google.com by omni...@gmail.com on 2 Jul 2013 at 12:21