|
@@ -110,7 +110,7 @@ class MovieEditViewModel : ViewModel() {
|
|
val secret = context.getString(R.string.bomo_cloud_client_secret)
|
|
val secret = context.getString(R.string.bomo_cloud_client_secret)
|
|
val author = project.author ?: ""
|
|
val author = project.author ?: ""
|
|
val name = project.name ?: ""
|
|
val name = project.name ?: ""
|
|
- val category = 0
|
|
|
|
|
|
+ val category = project.category.id
|
|
val filePart = MultipartBody.Part.createFormData("file", file.name, RequestBody.create(MediaType.parse("video/*"), file))
|
|
val filePart = MultipartBody.Part.createFormData("file", file.name, RequestBody.create(MediaType.parse("video/*"), file))
|
|
return BoMoCloud(id, secret).videoService
|
|
return BoMoCloud(id, secret).videoService
|
|
.uploadVideo(author, name, category, filePart)
|
|
.uploadVideo(author, name, category, filePart)
|