-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weibo: fix multiple issues with extracting videos.
* Add support for posts with both images and videos. * Fix bug where we didn't grab 1080p videos. Caused by getting videos from the mobile page, which doesn't return 1080p videos. The fix is to use the `https://www.weibo.com/ajax/statuses/show?id=:id` API. We can't use this API for everything because it doesn't work for posts that can only be opened on the mobile site, so we only use it to grab videos. This API also requires a session cookie. * Update the hashtag search link to `https://s.weibo.com/weibo?q=%23fgo%23`. * Fix commentaries to strip `https://weibo.cn/sinaurl?u=` from outgoing links, to not output image links for emoticons, and to output desktop links instead of mobile links. Fixes #5726: Weibo video samples are fetched instead of fullsize.
- Loading branch information
Showing
3 changed files
with
240 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.