From f910f24dfa2bf3991926fc578d44cdefac6f2ade Mon Sep 17 00:00:00 2001 From: Powaful3000 Date: Thu, 16 Jun 2022 08:39:58 -0500 Subject: [PATCH] Update XPath constants (#32) Descriptions' and More Options' Full XPaths were rendered incorrect upon website modifications. XPaths are updated and increased opplast version number by 1. --- opplast/__init__.py | 2 +- opplast/constants.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opplast/__init__.py b/opplast/__init__.py index 5ab6cbe..24f9546 100644 --- a/opplast/__init__.py +++ b/opplast/__init__.py @@ -1,5 +1,5 @@ __name__ = "opplast" -__version__ = "1.0.13" +__version__ = "1.0.14" from .exceptions import * from .constants import * diff --git a/opplast/constants.py b/opplast/constants.py index a55ef64..ecf42cd 100644 --- a/opplast/constants.py +++ b/opplast/constants.py @@ -8,8 +8,8 @@ ERROR_CONTAINER = '//*[@id="error-message"]' STATUS_CONTAINER = "/html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[2]/div/div[1]/ytcp-video-upload-progress/span" VIDEO_URL_CONTAINER = "//span[@class='video-url-fadeable style-scope ytcp-video-info']" -DESCRIPTION_CONTAINER = "/html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-video-metadata-editor/div/ytcp-video-metadata-editor-basics/div[2]/ytcp-social-suggestions-textbox/ytcp-form-input-container/div[1]/div[2]/div[1]/ytcp-mention-input" -MORE_OPTIONS_CONTAINER = "/html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-video-metadata-editor/div/div/ytcp-button" +DESCRIPTION_CONTAINER = "/html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-ve/ytcp-video-metadata-editor/div/ytcp-video-metadata-editor-basics/div[2]/ytcp-social-suggestions-textbox/ytcp-form-input-container/div[1]/div[2]/div/ytcp-social-suggestion-input" +MORE_OPTIONS_CONTAINER = "/html/body/ytcp-uploads-dialog/tp-yt-paper-dialog/div/ytcp-animatable[1]/ytcp-ve/ytcp-video-metadata-editor/div/div/ytcp-button/div" # COUNTERS TAGS_COUNTER = 500