mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 22:18:14 +00:00
fix(InteractionManager): Use WEB for all actions
This commit is contained in:
@@ -29,7 +29,6 @@ export default class InteractionManager {
|
||||
|
||||
const action = await this.#actions.execute(
|
||||
LikeEndpoint.PATH, LikeEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
target: { video_id }
|
||||
})
|
||||
);
|
||||
@@ -49,7 +48,6 @@ export default class InteractionManager {
|
||||
|
||||
const action = await this.#actions.execute(
|
||||
DislikeEndpoint.PATH, DislikeEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
target: { video_id }
|
||||
})
|
||||
);
|
||||
@@ -69,7 +67,6 @@ export default class InteractionManager {
|
||||
|
||||
const action = await this.#actions.execute(
|
||||
RemoveLikeEndpoint.PATH, RemoveLikeEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
target: { video_id }
|
||||
})
|
||||
);
|
||||
@@ -89,7 +86,6 @@ export default class InteractionManager {
|
||||
|
||||
const action = await this.#actions.execute(
|
||||
SubscribeEndpoint.PATH, SubscribeEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
channel_ids: [ channel_id ],
|
||||
params: 'EgIIAhgA'
|
||||
})
|
||||
@@ -110,7 +106,6 @@ export default class InteractionManager {
|
||||
|
||||
const action = await this.#actions.execute(
|
||||
UnsubscribeEndpoint.PATH, UnsubscribeEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
channel_ids: [ channel_id ],
|
||||
params: 'CgIIAhgA'
|
||||
})
|
||||
@@ -143,8 +138,7 @@ export default class InteractionManager {
|
||||
const action = await this.#actions.execute(
|
||||
CreateCommentEndpoint.PATH, CreateCommentEndpoint.build({
|
||||
comment_text: text,
|
||||
create_comment_params: params,
|
||||
client: 'ANDROID'
|
||||
create_comment_params: params
|
||||
})
|
||||
);
|
||||
|
||||
@@ -164,7 +158,6 @@ export default class InteractionManager {
|
||||
|
||||
const response = await this.#actions.execute(
|
||||
PerformCommentActionEndpoint.PATH, PerformCommentActionEndpoint.build({
|
||||
client: 'ANDROID',
|
||||
actions: [ target_action ]
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user