Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
cca8a5d8
Commit
cca8a5d8
authored
May 11, 2016
by
Felix Paul Kühne
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server browsing: don't filter playlist files
parent
db6398ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m
.../ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m
+2
-1
Sources/NSString+SupportedMedia.h
Sources/NSString+SupportedMedia.h
+1
-0
Sources/NSString+SupportedMedia.m
Sources/NSString+SupportedMedia.m
+6
-0
Sources/VLCConstants.h
Sources/VLCConstants.h
+1
-0
No files found.
SharedSources/ServerBrowsing/General/VLCNetworkServerBrowserVLCMedia.m
View file @
cca8a5d8
...
...
@@ -49,7 +49,8 @@
-
(
BOOL
)
shouldFilterMedia
:(
VLCMedia
*
)
media
{
return
!
[
media
.
url
.
absoluteString
isSupportedAudioMediaFormat
]
&&
!
[
media
.
url
.
absoluteString
isSupportedMediaFormat
]
&&
media
.
mediaType
!=
VLCMediaTypeDirectory
;
NSString
*
absoluteString
=
media
.
url
.
absoluteString
;
return
!
[
absoluteString
isSupportedAudioMediaFormat
]
&&
!
[
absoluteString
isSupportedMediaFormat
]
&&
!
[
absoluteString
isSupportedPlaylistFormat
]
&&
media
.
mediaType
!=
VLCMediaTypeDirectory
;
}
-
(
void
)
_addMediaListRootItemsToList
...
...
Sources/NSString+SupportedMedia.h
View file @
cca8a5d8
...
...
@@ -18,6 +18,7 @@
-
(
BOOL
)
isSupportedMediaFormat
;
-
(
BOOL
)
isSupportedAudioMediaFormat
;
-
(
BOOL
)
isSupportedSubtitleFormat
;
-
(
BOOL
)
isSupportedPlaylistFormat
;
-
(
BOOL
)
isSupportedFormat
;
...
...
Sources/NSString+SupportedMedia.m
View file @
cca8a5d8
...
...
@@ -33,6 +33,12 @@
return
([
self
rangeOfString
:
kSupportedSubtitleFileExtensions
options
:
options
].
location
!=
NSNotFound
);
}
-
(
BOOL
)
isSupportedPlaylistFormat
{
NSUInteger
options
=
NSRegularExpressionSearch
|
NSCaseInsensitiveSearch
;
return
([
self
rangeOfString
:
kSupportedPlaylistFileExtensions
options
:
options
].
location
!=
NSNotFound
);
}
-
(
BOOL
)
isSupportedFormat
{
NSUInteger
options
=
NSRegularExpressionSearch
|
NSCaseInsensitiveSearch
;
...
...
Sources/VLCConstants.h
View file @
cca8a5d8
...
...
@@ -74,6 +74,7 @@
#define kSupportedFileExtensions @"\\.(3gp|3gp|3gp2|3gpp|amv|asf|avi|axv|divx|dv|flv|f4v|gvi|gxf|m1v|m2p|m2t|m2ts|m2v|m4v|mks|mkv|moov|mov|mp2v|mp4|mpeg|mpeg1|mpeg2|mpeg4|mpg|mpv|mt2s|mts|mxf|mxg|nsv|nuv|oga|ogg|ogm|ogv|ogx|spx|ps|qt|rec|rm|rmvb|tod|ts|tts|vlc|vob|vro|webm|wm|wmv|wtv|xesc)$"
#define kSupportedSubtitleFileExtensions @"\\.(srt|sub|cdg|idx|utf|ass|ssa|aqt|jss|psb|rt|smi|txt|smil)$"
#define kSupportedAudioFileExtensions @"\\.(aac|aiff|aif|amr|aob|ape|axa|caf|flac|it|m2a|m4a|m4b|mka|mlp|mod|mp1|mp2|mp3|mpa|mpc|mpga|oga|ogg|oma|opus|rmi|s3m|spx|tta|voc|vqf|wav|w64|wma|wv|xa|xm)$"
#define kSupportedPlaylistFileExtensions @"\\.(asx|b4s|cue|ifo|m3u|m3u8|pls|ram|rar|sdp|vlc|xspf|wax|wvx|zip|conf)$"
#define kBlobHash @"521923d214b9ae628da7987cf621e94c4afdd726"
...
...
Felix Paul Kühne
@fkuehne
mentioned in commit
aaa97c9c
·
Jun 13, 2016
mentioned in commit
aaa97c9c
mentioned in commit aaa97c9c285db8914bf2977309888c17fcc07a18
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment