mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
fix subscribe
This commit is contained in:
parent
80dd3bc224
commit
86e5a02729
@ -92,7 +92,7 @@ class VIP(Redis, MySQL):
|
||||
|
||||
self.cur.execute("INSERT IGNORE INTO channel values"
|
||||
"(%(link)s,%(title)s,%(description)s,%(channel_id)s,%(playlist)s,%(last_video)s)", data)
|
||||
self.cur.execute("INSERT INTO subscribe values(%s,%s)", (user_id, channel_id))
|
||||
self.cur.execute("INSERT INTO subscribe values(%s,%s, NULL)", (user_id, channel_id))
|
||||
self.con.commit()
|
||||
logging.info("User %s subscribed channel %s", user_id, data["title"])
|
||||
return "Subscribed to {}".format(data["title"])
|
||||
|
Loading…
Reference in New Issue
Block a user