| | |
| | | const val URL_UPLOAD_SERVER_DOUYIN = "https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page" |
| | | const val URL_UPLOAD_SERVER_KUAISHOU = "https://cp.kuaishou.com/article/publish/video" |
| | | const val URL_UPLOAD_SERVER_SHIPINHAO = "https://channels.weixin.qq.com/platform/post/create" |
| | | const val URL_UPLOAD_SERVER_XIAOHONGSHU = "https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page" |
| | | const val URL_UPLOAD_SERVER_XIAOHONGSHU = "https://creator.xiaohongshu.com/publish/publish?from=menu" |
| | | const val URL_UPLOAD_SERVER_YOUTUBE = "https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page" |
| | | const val URL_UPLOAD_SERVER_TIKTOK = "https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page" |
| | | |
| | |
| | | PlatformItem(1,"抖音",true,"https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page"), |
| | | PlatformItem(2,"快手",true,"https://cp.kuaishou.com/article/publish/video"), |
| | | PlatformItem(3,"视频号",true,"https://channels.weixin.qq.com/platform/post/create"), |
| | | PlatformItem(4,"小红书",false,"https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page"), |
| | | PlatformItem(4,"小红书",true,"https://creator.xiaohongshu.com/publish/publish?from=menu"), |
| | | PlatformItem(5,"YouTube", false,"https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page"), |
| | | PlatformItem(6,"TikTok", false,"https://creator.douyin.com/creator-micro/content/publish?enter_from=publish_page") |
| | | ) |
| | |
| | | ActionKuaishou(activityReference, threadHandler, currentTask) |
| | | action.checkIfContentLoaded() |
| | | } |
| | | "快手" -> { |
| | | "小红书" -> { |
| | | val action = |
| | | ActionRedbook(activityReference, threadHandler, currentTask) |
| | | action.checkIfContentLoaded() |
| | |
| | | |
| | | |
| | | var jsCode_CheckContentLoaded = """ |
| | | document.querySelector("#container-wrap > div.container-center > div > div > div.main-body-wrap.post-create > div.main-body > div > div.post-edit-wrap.material-edit-wrap > div.material > div > div > div > span > div") !== null |
| | | document.querySelector("#container-wrap > div.container-center > div > div > div.main-body-wrap.post-create > div.main-body > div > div.post-edit-wrap.material-edit-wrap > div.material > div > div > div > span > div > span > input[type=file]") !== null |
| | | """.trimIndent() |
| | | var jsCode_CheckVideoUploadFinished = """ |
| | | document.querySelector("#container-wrap > div.container-center > div > div > div.main-body-wrap.post-create > div.main-body > div > div.post-edit-wrap.material-edit-wrap > div.material > div.preview > div > div.media-opr > div") !==null |
| | | document.querySelector("#container-wrap > div.container-center > div > div > div.main-body-wrap.post-create > div.main-body > div > div.post-edit-wrap.material-edit-wrap > div.form > div:nth-child(1) > div.form-item-body > div > div.video-cover > div.weui-desktop-popover__wrp.pure-text-popover > span > div") !==null |
| | | """.trimIndent() |
| | | var jsCode_PublishVideo_Finished ="document.querySelector('#container-wrap > div.container-center > div > div.main-body-wrap > div.main-body > div.header-wrap > span') !==null" |
| | | var jsCode_PublishVideo_Finished ="document.querySelector('#footer > div.main-part > div.left-links > a:nth-child(3)') !==null" |
| | | |
| | | var jsPath_PublishVideo ="#container-wrap > div.container-center > div > div > div.main-body-wrap.post-create > div.main-body > div > div.post-edit-wrap.material-edit-wrap > div.form > div.form-btns > div:nth-child(5) > span > div > button" |
| | | |