Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Jodel social app #462

Closed
xyrolaith opened this issue Sep 16, 2024 · 2 comments · Fixed by #463
Closed

[Feature Request] Jodel social app #462

xyrolaith opened this issue Sep 16, 2024 · 2 comments · Fixed by #463
Assignees
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@xyrolaith
Copy link
Contributor

Jodel is a local social app which has switched to uneccessary long sharing URLs a while ago.

Example URL: http://shared.jodel.com/a/key_live_jcZZZZnKwxb53xxxxAAAAijozto4YYY1?%24identity_id=123456789012345678&feature=shared_post&campaign=image_DE_FrontPage&type=0&duration=0&source=android&data=eyIkY2Fub25pY2FsX2lkZW50aWZpZXIiOiJzYWpcLzY2ZTdmYzAzNTYyNTA3ZGVlYjFhMDEzNiIsIiRwdWJsaWNseV9pbmRleGFibGUiOiJ0cnVlIiwicG9zdElkIjoiNjZlN2ZjMDM1NjI1MDdkZWViMWEwMTM2IiwiJGRlc2t0b3BfdXJsIjoiaHR0cHM6XC9cL3NoYXJlLmpvZGVsLmNvbVwvcG9zdD9wb3N0SWQ9NjZlN2ZjMDM1NjI1MDdkZWViMWEwMTM2IiwicmVmZXJyZXJfaWQiOiI1YWU1OGYzMDBhMDA1NTdmN2M0MzMwNDUiLCIkYW5kcm9pZF91cmwiOiJodHRwczpcL1wvc2hhcmUuam9kZWwuY29tXC9wb3N0P3Bvc3RJZD02NmU3ZmMwMzU2MjUwN2RlZWIxYTAxMzYiLCIkaW9zX3VybCI6Imh0dHBzOlwvXC9zaGFyZS5qb2RlbC5jb21cL3Bvc3Q%2FcG9zdElkPTY2ZTdmYzAzNTYyNTA3ZGVlYjFhMDEzNiJ9?channel=copy

To get the shorter sharing URL, the value from the URL parameter "data" must be base64 decoded. Also note the %2F in the example which means the string should be URL decoded beforehand.

The result is a JSON object where the short URL ($android_url) can be extracted from:

{
    "$canonical_identifier": "saj\/66e7fc03562507deeb1a0136",
    "$publicly_indexable": "true",
    "postId": "66e7fc03562507deeb1a0136",
    "$desktop_url": "https:\/\/share.jodel.com\/post?postId=66e7fc03562507deeb1a0136",
    "referrer_id": "5ae58f300a00557f7c433045",
    "$android_url": "https:\/\/share.jodel.com\/post?postId=66e7fc03562507deeb1a0136",
    "$ios_url": "https:\/\/share.jodel.com\/post?postId=66e7fc03562507deeb1a0136"
}

Currently the URL is exactly the same for Android, iOS and desktop but who knows if this might change.

@svenjacobs svenjacobs added the feature New feature or request label Sep 16, 2024
@svenjacobs
Copy link
Owner

Hello @xyrolaith,

thanks for the detailed feature request. Do you want to try and create a pull request? 😃

xyrolaith added a commit to xyrolaith/leon that referenced this issue Sep 17, 2024
@xyrolaith
Copy link
Contributor Author

Done

I hope I got everything right.

@svenjacobs svenjacobs added the help wanted Extra attention is needed label Sep 17, 2024
svenjacobs added a commit that referenced this issue Sep 18, 2024
* feat: Add Jodel support (#462)

* chore: Use alphabetic imports ordering

* chore: use KotlinX Serialization

---------

Co-authored-by: xyrolaith <18216850+xyrolaith@users.noreply.github.com>
Co-authored-by: Sven Jacobs <github@svenjacobs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants