Ahwxorg / Binternet

A custom Pinterest frontend, made in PHP.
GNU General Public License v3.0
133 stars 13 forks source link

Follow Pinterest URL schemes #13

Open IkelAtomig opened 1 year ago

IkelAtomig commented 1 year ago

Hello, I am a member of Libredirect Extension team. We are trying to support redirections from Pinterest to Binternet but you don't follow the URL schemes.

It would be better if you follow them and also easy for us and users to use your services. So, Many public instances will be up and could see the images privately.

Ahwxorg commented 1 year ago

Hello! I would be happy to help! What do you mean specifically?

For example Pinterest has the following URL for queries: https://www.pinterest.com/search/pins/?q=hello%20world For Binternet this would be: https://binternet.instance.tld/search.php?q=hello%20world

For images/pins, the URL scheme Binternet uses is: https://binternet.ahwx.org/image_proxy.php?url=https://i.pinimg.com/originals/f0/1d/a0/f01da0c6a297c2cff502f238ac5645e0.jpg Pinterest uses the following: https://www.pinterest.com/pin/472666923407902169/.

Do you mean I should make it so the search and the image "showcase" URL schemes of Pinterest would work on Binternet?

Looking forward to a reply Ahwx

IkelAtomig commented 1 year ago

Do you mean I should make it so the search and the image "showcase" URL schemes of Pinterest would work on Binternet?

Yes.

I meant it should be same URL but different domain. I hope you know about the Piped project. A Frontend for YouTube. If not, you could look them on Github at TeamPiped/Piped.

What they do is for example, turns https://youtu.be/pKUgt7-HaoE to https://piped.video/pKUgt7-HaoE.

Literally every URL is same just the domain name is different.


I noticed your own URL Schemes but it would be a wreckage to support for certain functionalities we provide in the extensions. That is why we are asking you to match the actual schemes.

Ahwxorg commented 1 year ago

Alright! I will try that, don't expect it soon though, I'm leaving for 10 days in a few hours and I currently have no idea how to support the URL schemes you seem to be looking for, so it'll take some time.

IkelAtomig commented 1 year ago

That is not a problem. We will insert it in new release after you finished working on it.

IkelAtomig commented 1 year ago

Any updates ?

Ahwxorg commented 1 year ago

I don't really know how I would implement this.

IkelAtomig commented 1 year ago

Maybe look at other Frontend projects such as Nitter, Invidious, Piped, Libreddit, etc. You might get an idea.

IkelAtomig commented 1 year ago

Not urging. But if it would take time. We shall work on it slowly.

codedipper commented 1 year ago

Not urging. But if it would take time. We shall work on it slowly.

It runs from pure PHP files, so you have to do some nginx magic to run code from that file on the right path.

realroot2185 commented 10 months ago

For images/pins, the URL scheme Binternet uses is: https://binternet.ahwx.org/image_proxy.php?url=https://i.pinimg.com/originals/f0/1d/a0/f01da0c6a297c2cff502f238ac5645e0.jpg Pinterest uses the following: https://www.pinterest.com/pin/472666923407902169/.

How do you get the converted link? If one has Pintarest link how can I get Binternet's version?

How convert collections? They are in this format https://www.pinterest.com/<author>/<collectio>/.

IkelAtomig commented 10 months ago

@realroot2185 That's the problem. Binternet wasn't made with that in mind. The author of Binternet is trying to implement it.

Ahwxorg commented 10 months ago

The author of Binternet is trying to implement it.

No, I am just depressed.

IkelAtomig commented 10 months ago

@Ahwxorg We are sorry to hear that. Please take care of yourself and work on it when you are back to your normal self.

realroot2185 commented 10 months ago

Sorry to hear that.

Is there any relation to the Binternet and Pintarest link? So that one can convert it, running some script or something.

IkelAtomig commented 10 months ago

There will something definitely but we need to analyze it in a calm way.

Ahwxorg commented 10 months ago

From what I remember it's something based on the image ID on Pinterest itself.

Ahwxorg commented 10 months ago

From what I remember it's something based on the image ID on Pinterest itself.

IkelAtomig commented 10 months ago

From what I remember it's something based on the image ID on Pinterest itself.

That's what I thought too. But image ID is basically in the html code not in URL though.

Ahwxorg commented 10 months ago

Could be that it is the pining ID, obtained through the request URL.