mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-04-01 20:40:03 +02:00
Fix issue #167
This commit is contained in:
parent
6e6187175a
commit
346656e53d
@ -1525,7 +1525,10 @@ public class RetrofitPeertubeAPI {
|
||||
}
|
||||
try {
|
||||
RequestBody displayName = RequestBody.create(playlistParams.getDisplayName(), MediaType.parse("text/plain"));
|
||||
RequestBody description = RequestBody.create(playlistParams.getDescription(), MediaType.parse("text/plain"));
|
||||
RequestBody description = null;
|
||||
if (playlistParams.getDescription() != null) {
|
||||
description = RequestBody.create(playlistParams.getDescription(), MediaType.parse("text/plain"));
|
||||
}
|
||||
RequestBody channelId = RequestBody.create(playlistParams.getVideoChannelId(), MediaType.parse("text/plain"));
|
||||
if (apiAction == PlaylistsVM.action.CREATE_PLAYLIST) {
|
||||
Call<VideoPlaylistData.VideoPlaylistCreation> stringCall = peertubeService.addPlaylist(getToken(), displayName, description, playlistParams.getPrivacy(), channelId, bodyThumbnail);
|
||||
|
Loading…
x
Reference in New Issue
Block a user