From fa630d674955c0a6ea29d1427081e200223b85cc Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 21 Aug 2003 00:37:26 +0000 Subject: RIP Input Plugin CVS patchset: 5300 CVS date: 2003/08/21 00:37:26 --- src/input/input_http.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/input/input_http.c') diff --git a/src/input/input_http.c b/src/input/input_http.c index 7ac5e8b59..ea87ccbe7 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -19,7 +19,7 @@ * * input plugin for http network streams * - * $Id: input_http.c,v 1.62 2003/06/19 14:46:03 guenter Exp $ + * $Id: input_http.c,v 1.63 2003/08/21 00:37:29 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -541,8 +541,15 @@ static off_t http_plugin_get_length (input_plugin_t *this_gen) { } static uint32_t http_plugin_get_capabilities (input_plugin_t *this_gen) { + http_input_plugin_t *this = (http_input_plugin_t *) this_gen; + uint32_t caps = INPUT_CAP_PREVIEW; + + /* Nullsoft asked to not allow saving streaming nsv files */ + if (this->filename && + !strncmp(this->filename + strlen(this->filename) - 4, ".nsv", 4)) + caps |= INPUT_CAP_RIP_FORBIDDEN; - return INPUT_CAP_PREVIEW; + return caps; } static uint32_t http_plugin_get_blocksize (input_plugin_t *this_gen) { -- cgit v1.2.3