diff --git a/public/js/live.js b/public/js/live.js
index 24d3a45..c27d14c 100644
--- a/public/js/live.js
+++ b/public/js/live.js
@@ -219,7 +219,7 @@ function poll() {
${to_duration(v.length)} |
${v.live_status} |
- ${v.description || "Untitled"} |
+ ${v.title || v.description || "Untitled"} |
|
VLC |
`);
@@ -229,7 +229,7 @@ function poll() {
}
if (v.live_status == "LIVE") {
var notification = notify(`${v.from.name} is live on Facebook`, {
- body: `Started ${$.timeago(v.created_time)}.\n${v.description || ""}`,
+ body: `Started ${$.timeago(v.created_time)}.\n${v.title || v.description || ""}`,
icon: `https://graph.facebook.com/${a.id}/picture`,
});
notification.addEventListener("click", function(e) {
@@ -254,7 +254,7 @@ function poll() {
form.append("batch", JSON.stringify(facebook.accounts.map(function(a) {
return {
method: "GET",
- relative_url: `${a.id}/videos?fields=created_time,from,title,description,embeddable,embed_html,length,live_status`,
+ relative_url: `${a.id}/videos?fields=created_time,from,title,description,length,live_status`,
};
})));
xhr.send(form);