This PR fixes certain Pinterest videos from returning the user's avatar instead of the video. https://github.com/imputnet/cobalt/blob/440d039e2cafa12051e7e6c1912a1673ed1eb533/api/src/processing/services/pinterest.js#L26
This section was failing to get the video, as not all Pinterest videos have 720p in the URL, which failed to parse the video. It would then try to parse for images, hence returning the person who uploaded's avatar. This seems pretty safe to remove, tested on a bunch of different links and all worked fine.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/imputnet/cobalt/pull/1153
**Author:** [@hyperdefined](https://github.com/hyperdefined)
**Created:** 3/11/2025
**Status:** ✅ Merged
**Merged:** 3/12/2025
**Merged by:** [@dumbmoron](https://github.com/dumbmoron)
**Base:** `main` ← **Head:** `fix-pinterest`
---
### 📝 Commits (1)
- [`d77b22e`](https://github.com/imputnet/cobalt/commit/d77b22e98faad7e2608e6a11e773edfa0e47cae1) api/pinterest: fix video parsing (#1148)
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `api/src/processing/services/pinterest.js` (+1 -1)
</details>
### 📄 Description
This PR fixes certain Pinterest videos from returning the user's avatar instead of the video.
https://github.com/imputnet/cobalt/blob/440d039e2cafa12051e7e6c1912a1673ed1eb533/api/src/processing/services/pinterest.js#L26
This section was failing to get the video, as not all Pinterest videos have `720p` in the URL, which failed to parse the video. It would then try to parse for images, hence returning the person who uploaded's avatar. This seems pretty safe to remove, tested on a bunch of different links and all worked fine.
This is a fix for #1148.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1153
Author: @hyperdefined
Created: 3/11/2025
Status: ✅ Merged
Merged: 3/12/2025
Merged by: @dumbmoron
Base:
main← Head:fix-pinterest📝 Commits (1)
d77b22eapi/pinterest: fix video parsing (#1148)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
api/src/processing/services/pinterest.js(+1 -1)📄 Description
This PR fixes certain Pinterest videos from returning the user's avatar instead of the video.
https://github.com/imputnet/cobalt/blob/440d039e2cafa12051e7e6c1912a1673ed1eb533/api/src/processing/services/pinterest.js#L26
This section was failing to get the video, as not all Pinterest videos have
720pin the URL, which failed to parse the video. It would then try to parse for images, hence returning the person who uploaded's avatar. This seems pretty safe to remove, tested on a bunch of different links and all worked fine.This is a fix for #1148.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.