Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,16 @@ public List<JmAlbumMeta> getWatchHistory(int page) {

@Override
public void deleteWatchHistory(String id) {
throw new UnsupportedOperationException("Delete history via HTML client is not currently supported. Use JmApiClient instead.");
HttpUrl url = newHttpUrlBuilder()
.addPathSegment("ajax")
.addPathSegment("remove_album_playlist")
.build();
RequestBody body = new FormBody.Builder()
.add("video_id", id)
.add("list", "watchlist")
.build();

executePostRequest(url, body);
}

@Override
Expand Down
Loading