Merge pull request #115 from GilgusMaximus/master

Fix of the ft-video-list display since release from streams
This commit is contained in:
Preston 2020-09-02 17:48:29 -04:00 committed by GitHub
commit 21352c6c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,10 @@ const actions = {
return payload.publishText
}
const strings = payload.publishText.split(' ')
// filters out the streamed x hours ago and removes the streamed in order to keep the rest of the code working
if (strings[0].toLowerCase() === 'streamed') {
strings.shift()
}
const singular = (strings[0] === '1')
let publicationString = payload.templateString.replace('$', strings[0])
switch (strings[1].substring(0, 2)) {