BOT-HAT / Youtube-First-Comment-Bot

A bot for automatically post comment when a youtube channel upload a new video.
133 stars 51 forks source link

Code Misbehaving #19

Closed nkosinathi-sola closed 2 years ago

nkosinathi-sola commented 3 years ago

I picked up something in the code.

Ultimately we need to use the link variables [cid and lastvid] of the last video on a Playlist, So that when a next video is posted, we fire up a comment.

But currently this is the behaviour: If we take for example a playlist with 6 videos like this : https://www.youtube.com/playlist?list=PLQbzkJk10-f7EVsnmEOysmAF7zBmTMokr

We need the last video variables, which is number 6 [https://www.youtube.com/watch?v=oSiqV-7EEks&list=PLQbzkJk10-f7EVsnmEOysmAF7zBmTMokr&index=6], to run the cycle and wait for upload number 7, then comment when that video is uploaded.

How can we alter the code to do that?