format: rephrase comments

This commit is contained in:
LuanRT
2021-10-20 02:51:21 -03:00
parent 24c11f2c06
commit f0360cac69
2 changed files with 5 additions and 6 deletions

View File

@@ -178,7 +178,8 @@ const formatVideoData = (data, context, desktop) => {
return video_details;
};
const filters = (order) => { // TODO: Refactor this crazy thing
const filters = (order) => {
// TODO: Do this more efficiently
switch (order) {
case 'any,any,relevance':
return 'EgIQAQ%3D%3D';

View File

@@ -24,7 +24,7 @@ class Livechat extends EventEmitter {
enqueueActionGroup(group) {
group.forEach((action) => {
if (!action.addChatItemAction) return; //TODO: handle different action types */
if (!action.addChatItemAction) return; //TODO: handle different action types
const message_content = action.addChatItemAction.item.liveChatTextMessageRenderer;
if (!message_content) return;
@@ -82,7 +82,7 @@ class Livechat extends EventEmitter {
}
});
// How long we should wait to poll the chat again.
// How long we should wait to poll the chat again
if (continuation_contents.liveChatContinuation.continuations[0].timedContinuationData) {
this.poll_intervals_ms = continuation_contents.liveChatContinuation.continuations[0].timedContinuationData.timeoutMs;
} else {
@@ -134,6 +134,4 @@ class Livechat extends EventEmitter {
this.running = false;
clearTimeout(this.livechat_poller);
}
}
module.exports = Livechat;
}