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
071b6880
Commit
071b6880
authored
Mar 08, 2018
by
Pierre SAGASPE
Browse files
VLCNetworkServerBrowserSharedLibrary : fix subtitle url encoding
parent
bc423a86
Changes
1
Hide whitespace changes
Inline
Side-by-side
SharedSources/ServerBrowsing/HTTP/VLCNetworkServerBrowserSharedLibrary.m
View file @
071b6880
...
...
@@ -2,7 +2,7 @@
* VLCNetworkServerBrowserSharedLibrary.m
* VLC for iOS
*****************************************************************************
* Copyright (c) 2015-201
7
VideoLAN. All rights reserved.
* Copyright (c) 2015-201
8
VideoLAN. All rights reserved.
* $Id$
*
* Authors: Tobias Conradi <videolan # tobias-conradi.de>
...
...
@@ -89,8 +89,9 @@
_fileSizeBytes
=
dictionary
[
@"size"
];
_duration
=
dictionary
[
@"duration"
];
NSString
*
subtitleURLString
=
dictionary
[
@"pathSubtitle"
];
if
([
subtitleURLString
isEqualToString
:
@"(null)"
])
subtitleURLString
=
nil
;
subtitleURLString
=
[
subtitleURLString
stringByAddingPercentEncodingWithAllowedCharacters
:
NSCharacterSet
.
URLHostAllowedCharacterSet
];
if
([
subtitleURLString
isEqualToString
:
@"(null)"
])
subtitleURLString
=
nil
;
subtitleURLString
=
[
subtitleURLString
stringByAddingPercentEncodingWithAllowedCharacters
:
NSCharacterSet
.
URLFragmentAllowedCharacterSet
];
_subtitleURL
=
subtitleURLString
.
length
?
[
NSURL
URLWithString
:
subtitleURLString
]
:
nil
;
_URL
=
[
NSURL
URLWithString
:
dictionary
[
@"pathfile"
]];
_container
=
NO
;
...
...
@@ -102,7 +103,8 @@
return
self
;
}
-
(
id
<
VLCNetworkServerBrowser
>
)
containerBrowser
{
-
(
id
<
VLCNetworkServerBrowser
>
)
containerBrowser
{
return
nil
;
}
...
...
Pierre SAGASPE
@Pierre
mentioned in commit
f77d9645
·
Mar 09, 2018
mentioned in commit
f77d9645
mentioned in commit f77d96456230a1e0075228fd479d3a638ad0a40e
Toggle commit list
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