Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
8df3dab8
Commit
8df3dab8
authored
May 15, 2013
by
Felix Paul Kühne
Browse files
expand list of supported file extensions
parent
059685e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCAppDelegate.m
View file @
8df3dab8
...
...
@@ -78,7 +78,7 @@
NSMutableArray
*
filePaths
=
[
NSMutableArray
arrayWithCapacity
:[
foundFiles
count
]];
NSURL
*
fileURL
;
for
(
NSString
*
fileName
in
foundFiles
)
{
if
([
fileName
rangeOfString
:
@"
\\
.(3gp|3gp|3gp2|3gpp|amv|asf|avi|divx|dv|flv|f4v|gvi|gxf|m1v|m2p|m2t|m2ts|m2v|m4v|mkv|moov|mov|mp2v|mp4|mpeg|mpeg1|mpeg2|mpeg4|mpg|mpv|mt2s|mts|mxf|
oga
|ogm|ogv|ogx|spx|ps|qt|rm|rmvb|ts|tts|vob|webm|wm|wmv)$"
options
:
NSRegularExpressionSearch
|
NSCaseInsensitiveSearch
].
length
!=
0
)
{
if
([
fileName
rangeOfString
:
@"
\\
.(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|
nsv|nuv|oga|ogg
|ogm|ogv|ogx|spx|ps|qt|
rar|rec|
rm|rmvb|
tod|
ts|tts|vob|
vro|
webm|wm|wmv
|wtv|xesc
)$"
options
:
NSRegularExpressionSearch
|
NSCaseInsensitiveSearch
].
length
!=
0
)
{
[
filePaths
addObject
:[
directoryPath
stringByAppendingPathComponent
:
fileName
]];
/* exclude media files from backup (QA1719) */
...
...
Write
Preview
Supports
Markdown
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