Skip to content

Commit

Permalink
fix pinchat and remove footer banner
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Feb 7, 2024
1 parent cc561b4 commit 12e5190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Stream {
}

const msg = await bot.sendMessage(config.telegram.chatId, text, options)
await bot.pinChatMessage(config.telegram.chatId, result.messageId).catch(() => {})
await bot.pinChatMessage(config.telegram.chatId, msg.messageId).catch(() => {})
await TwitchService.saveLastMessage(msg)
await TwitchService.saveTitle(result.title)
await BrowserService.startAndWarmUpBrowserIfNeeded().catch(() => { console.error('startAndWarmUpBrowserIfNeeded on live')})
Expand Down
1 change: 1 addition & 0 deletions helpers/browserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class PuppeteerApi {

await this.page.waitForSelector('div.persistent-player')
await this.page.$eval('button[data-a-target="consent-banner-accept"]', el => el.click()).catch(() => {})
await this.page.$eval('#twilight-sticky-footer-root', el => el.remove()).catch(() => {})
await this.page.$eval('button[data-a-target="content-classification-gate-overlay-start-watching-button"]', el => el.click()).catch(() => {})
await this.page.$eval('.video-player__default-player', el => el.remove())
this.svgImage = await this.page.$('div.persistent-player')
Expand Down

0 comments on commit 12e5190

Please sign in to comment.