|
@@ -110,7 +110,7 @@ class MovieEditViewModel : ViewModel() {
|
|
|
val secret = context.getString(R.string.bomo_cloud_client_secret)
|
|
|
val author = project.author ?: ""
|
|
|
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))
|
|
|
return BoMoCloud(id, secret).videoService
|
|
|
.uploadVideo(author, name, category, filePart)
|