@@ -72,7 +72,7 @@ int main(int argc, char **argv)
7272 CONFIG .sonic_mode = 1 ;
7373 } else if (CONFIG .sonic_username || CONFIG .sonic_password ) {
7474 fprintf (stderr ,
75- "Error: You have to supply both username and password to\
75+ "Error: You have to supply both username and password to \
7676activate Sonic mode.\n" );
7777 exit (EXIT_FAILURE );
7878 }
@@ -151,7 +151,8 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
151151 {"cache-location" , required_argument , NULL , 'L' }, /* 14 */
152152 {"sonic-username" , required_argument , NULL , 'L' }, /* 15 */
153153 {"sonic-password" , required_argument , NULL , 'L' }, /* 16 */
154- {"sonic-id3" , no_argument , NULL , 'L' }, /* 17 */
154+ {"sonic-id3" , no_argument , NULL , 'L' }, /* 17 */
155+ {"no-range-check" , no_argument , NULL , 'L' }, /* 18 */
155156 {0 , 0 , 0 , 0 }
156157 };
157158 while ((c =
@@ -228,6 +229,9 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
228229 case 17 :
229230 CONFIG .sonic_id3 = 1 ;
230231 break ;
232+ case 18 :
233+ CONFIG .no_range_check = 1 ;
234+ break ;
231235 default :
232236 fprintf (stderr , "see httpdirfs -h for usage\n" );
233237 return 1 ;
@@ -300,6 +304,8 @@ HTTPDirFS options:\n\
300304 --retry-wait Set delay in seconds before retrying an HTTP request\n\
301305 after encountering an error. (default: 5)\n\
302306 --user-agent Set user agent string (default: \"HTTPDirFS\")\n\
307+ --no-range-check Disable the build-in check for the server's support\n\
308+ for HTTP range requests\n\
303309\n\
304310 For mounting a Airsonic / Subsonic server:\n\
305311 --sonic-username The username for your Airsonic / Subsonic server\n\
0 commit comments