Fix issue #736
This commit is contained in:
parent
5625cbdea6
commit
cc26ade921
|
@ -60,7 +60,7 @@ ext.swipebackLibraryVersion = '1.0.3'
|
|||
ext.ratethisappLibraryVersion = '1.2.0'
|
||||
ext.uploadServiceVersion = "3.4.2"
|
||||
ext.torrentstreamVersion = "2.6.1"
|
||||
ext.uploadServiceVersion = "3.4.2"
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
|
||||
|
@ -90,7 +90,7 @@ dependencies {
|
|||
implementation 'com.android.support:multidex:1.0.3'
|
||||
implementation 'com.google.android.exoplayer:exoplayer:2.9.3'
|
||||
implementation "com.github.TorrentStream:TorrentStream-Android:$torrentstreamVersion"
|
||||
implementation "net.gotev:uploadservice:$uploadServiceVersion"
|
||||
implementation 'com.github.stom79:android-upload-service:3.4.2-Mastalab'
|
||||
implementation 'com.github.mabbas007:TagsEditText:1.0.5'
|
||||
implementation 'com.jaredrummler:material-spinner:1.3.1'
|
||||
playstoreImplementation "io.github.kobakei:ratethisapp:$ratethisappLibraryVersion"
|
||||
|
|
|
@ -347,9 +347,10 @@ public class PeertubeUploadActivity extends BaseActivity implements OnRetrievePe
|
|||
uploadConfig.getCancelled().message = getString(R.string.toast_cancelled);
|
||||
uploadConfig.getCompleted().actions.add(new UploadNotificationAction(R.drawable.ic_check, getString(R.string.video_uploaded_action), clickIntent));
|
||||
|
||||
|
||||
String uploadId =
|
||||
new MultipartUploadRequest(PeertubeUploadActivity.this, "https://" + Helper.getLiveInstance(PeertubeUploadActivity.this) + "/api/v1/videos/upload")
|
||||
.addFileToUpload(uri.toString(), "videofile")
|
||||
.addFileToUpload(uri.toString().replace("file://",""), "videofile")
|
||||
.addHeader("Authorization", "Bearer " + token)
|
||||
.setNotificationConfig(uploadConfig)
|
||||
.addParameter("name", filename)
|
||||
|
|
Loading…
Reference in New Issue