mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 15:21:54 +00:00
format: rephrase comments
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user