Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Simplify pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
HaarigerHarald committed Sep 8, 2018
1 parent 78772bf commit 876fcb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void onClick(View v) {
} else {
filename = videoTitle;
}
filename = filename.replaceAll("\\\\|>|<|\"|\\||\\*|\\?|%|:|#|/", "");
filename = filename.replaceAll("[\\\\><\"|*?%:#/]", "");
filename += (ytFrVideo.height == -1) ? "" : "-" + ytFrVideo.height + "p";
String downloadIds = "";
boolean hideAudioDownloadNotification = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void onClick(View v) {
} else {
filename = videoTitle + "." + ytfile.getFormat().getExt();
}
filename = filename.replaceAll("\\\\|>|<|\"|\\||\\*|\\?|%|:|#|/", "");
filename = filename.replaceAll("[\\\\><\"|*?%:#/]", "");
downloadFromUrl(ytfile.getUrl(), videoTitle, filename);
finish();
}
Expand Down

0 comments on commit 876fcb6

Please sign in to comment.