diff --git a/peertube-plugin-video-annotation/client/shared-player.js b/peertube-plugin-video-annotation/client/shared-player.js index 542c00e..80a2b15 100644 --- a/peertube-plugin-video-annotation/client/shared-player.js +++ b/peertube-plugin-video-annotation/client/shared-player.js @@ -19,7 +19,7 @@ export function buildPlayer (video, player, videojs) { } function parseAnnotations (annotationsText) { - const splitted = annotationsText.split('\n\n') + const splitted = annotationsText.split(/\n\r?\n\r?/) return splitted.map(s => buildAnnotation(s)) .filter(a => !!a) diff --git a/peertube-plugin-video-annotation/package.json b/peertube-plugin-video-annotation/package.json index 1a34837..459b2fc 100644 --- a/peertube-plugin-video-annotation/package.json +++ b/peertube-plugin-video-annotation/package.json @@ -1,7 +1,7 @@ { "name": "peertube-plugin-video-annotation", "description": "PeerTube plugin video annotation", - "version": "0.0.2", + "version": "0.0.3", "author": "Chocobozzz", "bugs": "https://framagit.org/framasoft/peertube/peertube-plugin-video-annotation/issues", "clientScripts": [