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

Commit

Permalink
修正52ck
Browse files Browse the repository at this point in the history
  • Loading branch information
grandiloquent committed Sep 12, 2021
1 parent 4d0900c commit c2a7021
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/src/main/java/euphoria/psycho/player/PlayerHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ static Point getRealScreenSize(Context context) {
}

static File[] getVideos(String videoPath) {
if (videoPath == null) {
return null;
}
File dir = new File(videoPath).getParentFile();
if (dir == null) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private void initializePlayer() {
String videoPath = getIntent().getData().getPath();
mFiles = getVideos(videoPath);
if (mFiles == null) {
Logger.e(String.format("initializePlayer, %s", getIntent().getData()));
updateUI();
mPlayer.setVideoURI(getIntent().getData());
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/euphoria/psycho/videos/Ck52.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected String fetchVideoUri(String uri) {
if (response == null) {
return null;
}
String videoUri = StringShare.substringLeast(response, "\"url\":\"", "\",\"");
String videoUri = StringShare.substring(response, "\"link_pre\":\"\",\"url\":\"", "\",\"");
if (videoUri == null) {
return null;
}
Expand Down

0 comments on commit c2a7021

Please sign in to comment.