Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
242
Issues
242
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
02646074
Commit
02646074
authored
Jul 12, 2018
by
Geoffrey Métais
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove any slash from subtitles download URLs
parent
39f6172b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
...ndroid/src/org/videolan/vlc/util/SubtitlesDownloader.java
+4
-1
No files found.
vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
View file @
02646074
...
...
@@ -324,7 +324,10 @@ public class SubtitlesDownloader {
if
(
mToken
==
null
||
path
==
null
)
return
;
final
StringBuilder
sb
=
new
StringBuilder
();
final
String
name
=
fileName
.
lastIndexOf
(
'.'
)
>
0
?
fileName
.
substring
(
0
,
fileName
.
lastIndexOf
(
'.'
))
:
fileName
;
sb
.
append
(
SUBTITLES_DIRECTORY
.
getPath
()).
append
(
'/'
).
append
(
name
.
replace
(
"/"
,
""
)).
append
(
'.'
).
append
(
language
).
append
(
'.'
).
append
(
subFormat
);
sb
.
append
(
SUBTITLES_DIRECTORY
.
getPath
())
.
append
(
'/'
).
append
(
name
.
replace
(
"/"
,
""
))
.
append
(
'.'
).
append
(
language
.
replace
(
"/"
,
""
))
.
append
(
'.'
).
append
(
subFormat
.
replace
(
"/"
,
""
));
final
String
srtUrl
=
sb
.
toString
();
FileOutputStream
f
=
null
;
GZIPInputStream
gzIS
=
null
;
...
...
Geoffrey Métais
@Dekans
mentioned in commit
cf08becb
·
Jul 12, 2018
mentioned in commit
cf08becb
mentioned in commit cf08becb34dd44bb2b9dfdd73be6c0ea859f1ce2
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