From 7fea3dbf4383e7778b1452162fbcc8636bd96f0e Mon Sep 17 00:00:00 2001 From: Biplob Sutradhar Date: Sat, 28 Oct 2023 09:04:58 +0600 Subject: [PATCH] Quick patch updated `ALREADY_SUBSCRIBE` and `SUBSCRIBE_BIN` xpath value (#5) --- data/xpath.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/xpath.json b/data/xpath.json index d8aec20..17299f8 100644 --- a/data/xpath.json +++ b/data/xpath.json @@ -8,8 +8,8 @@ "IS_EXPENDEDABLE_EXPENDED_BUTTON": "//*[contains(normalize-space(), 'Subscriptions')]/following-sibling::div[@id='items']/ytd-guide-collapsible-entry-renderer/ytd-guide-entry-renderer", "THREE_LINES": "//yt-icon-button[@id='guide-button']", "DRAWER_OPENED": "//div[@id='contentContainer' and @opened]", - "ALREADY_SUBSCRIBE": "//div[@id='inner-header-container']//div[@id='notification-preference-button' and not(@hidden)]//span[text()='Subscribed']", - "SUBSCRIBE_BTN": "//div[@id='inner-header-container']/div/div[@id='subscribe-button']/ytd-subscribe-button-renderer/yt-smartimation/yt-button-shape[not(@hidden)]/button", + "ALREADY_SUBSCRIBE": "//div[@id='inner-header-container']//div[@id='notification-preference-button' and not(@invisible)]//span[text()='Subscribed']", + "SUBSCRIBE_BTN": "//div[@id='inner-header-container']/div/div[@id='subscribe-button']//yt-button-shape[not(@hidden) and @id='subscribe-button-shape']/button", "UNSUB1": "//yt-formatted-string[text()='Unsubscribe']", "UNSUB2": "//button[@aria-label='Unsubscribe']" }