Skip to content

Commit 8c41e97

Browse files
authored
Merge pull request #241 from elimu-ai/127-download-videos-from-external-platform
refactor: switch to external download url
2 parents 35172cb + 8007d14 commit 8c41e97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/ai/elimu/content_provider/ui/video/VideosFragment.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ public void run() {
144144
Log.i(getClass().getName(), "videoFile: " + videoFile);
145145
Log.i(getClass().getName(), "videoFile.exists(): " + videoFile.exists());
146146
if (!videoFile.exists()) {
147-
// Download file bytes
148-
BaseApplication baseApplication = (BaseApplication) getActivity().getApplication();
149-
String fileUrl = baseApplication.getBaseUrl() + videoGson.getFileUrl();
147+
// Download file
148+
String fileUrl = videoGson.getFileUrl();
150149
Log.i(getClass().getName(), "fileUrl: " + fileUrl);
151150
byte[] bytes = MultimediaDownloader.downloadFileBytes(fileUrl);
152151
Log.i(getClass().getName(), "bytes.length: " + bytes.length);

0 commit comments

Comments
 (0)