api: support new xiaohongshu links, add fallbacks to getRedirectingURL#1392
Merged
wukko merged 1 commit intoimputnet:developfrom Jul 18, 2025
Merged
api: support new xiaohongshu links, add fallbacks to getRedirectingURL#1392wukko merged 1 commit intoimputnet:developfrom
wukko merged 1 commit intoimputnet:developfrom
Conversation
b4ff3ca to
007e3d9
Compare
Co-authored-by: KwiatekMiki <hi@kwiatekmiki.pl> Closes imputnet#1394
Member
|
thank you for the PR! i cleaned up the code to avoid clutter and moved the fallback to GET to the general function so that all services can benefit from it. i'm not sure if updating tests makes much sense, cuz the links will expire in less than 14 days, but maybe @dumbmoron has an opinion on that. |
|
Thank you all for the hardworking💋💋💋 |
amanhnb88
pushed a commit
to amanhnb88/unduh-media-bebas
that referenced
this pull request
Mar 8, 2026
this will allow instances that don't use my fork to get 100% until github/imputnet/cobalt#1392 gets merged will get reverted once it gets merged and instances start using the new version
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when you share a video (or anything else), you now get a new type of link, example: http://xhslink.com/m/2wAnaTkLRc1
new links don't support the HEAD method (you get a 404 response), so i had to use GET. the content length is ~420 bytes so it shouldn't be that bad.
also, all of the links in tests expired so i replaced them
this is my first contribution to cobalt in some time and i hope i did everything right, if not please tell me :3
(i downloaded their app on my phone just for this)