[GH-ISSUE #1332] Obtain title when the link is shared from YouTube/Spotify/YT Music #884

Closed
opened 2026-02-25 22:38:22 +03:00 by kerem · 12 comments
Owner

Originally created by @ChuZhenMok on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1332

Describe the feature you'd like to request

Currently, when sharing a link from YouTube to floccus to save as a bookmark, the Title will be saved as "YouTube" as default.
Is it possible to obtain the title when pasting the link?
Thank you for the amazing app.

Describe the solution you'd like

Is it possible to obtain the title when pasting the link?

Describe alternatives you've considered

Maybe the title can be obtained after saving the bookmark also can.

Originally created by @ChuZhenMok on GitHub (Jan 26, 2023). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/1332 ### Describe the feature you'd like to request Currently, when sharing a link from YouTube to floccus to save as a bookmark, the Title will be saved as "YouTube" as default. Is it possible to obtain the title when pasting the link? Thank you for the amazing app. ### Describe the solution you'd like Is it possible to obtain the title when pasting the link? ### Describe alternatives you've considered Maybe the title can be obtained after saving the bookmark also can.
kerem 2026-02-25 22:38:22 +03:00
Author
Owner

@marcelklehr commented on GitHub (May 21, 2023):

When the sharing app supplies a title, that is used. If not, we fetch it. Seems like in your case YouTube sets the title to "YouTube". So, nothing we can do. Sorry.

<!-- gh-comment-id:1556128968 --> @marcelklehr commented on GitHub (May 21, 2023): When the sharing app supplies a title, that is used. If not, we fetch it. Seems like in your case YouTube sets the title to "YouTube". So, nothing we can do. Sorry.
Author
Owner

@mortee commented on GitHub (Dec 15, 2023):

I mean, are customized solutions to getting the page title for certain enormously popular websites absolutely off the table? I find this issue with specifically Youtube really annoying too, and I'd love to have it solved somehow.

<!-- gh-comment-id:1858278372 --> @mortee commented on GitHub (Dec 15, 2023): I mean, are customized solutions to getting the page title for certain enormously popular websites absolutely off the table? I find this issue with specifically Youtube really annoying too, and I'd love to have it solved somehow.
Author
Owner

@marcelklehr commented on GitHub (Dec 15, 2023):

I mean, are customized solutions to getting the page title for certain enormously popular websites absolutely off the table?

Mmmh, I guess we can introduce an exception for Youtube

<!-- gh-comment-id:1858312453 --> @marcelklehr commented on GitHub (Dec 15, 2023): > I mean, are customized solutions to getting the page title for certain enormously popular websites absolutely off the table? Mmmh, I guess we can introduce an exception for Youtube
Author
Owner

@mortee commented on GitHub (Dec 15, 2023):

Wow, that would be awesome! I'm sure there's some quite primitive API that can provide the video title, given its ID.

<!-- gh-comment-id:1858316595 --> @mortee commented on GitHub (Dec 15, 2023): Wow, that would be awesome! I'm sure there's some quite primitive API that can provide the video title, given its ID.
Author
Owner

@marcelklehr commented on GitHub (Dec 15, 2023):

We can just make it use the fallback title fetcher which is used when no title is passed

<!-- gh-comment-id:1858323238 --> @marcelklehr commented on GitHub (Dec 15, 2023): We can just make it use the fallback title fetcher which is used when no title is passed
Author
Owner

@mortee commented on GitHub (Dec 15, 2023):

I don't follow. Isn't the issue here exactly that the "fallback title fetcher", which is invoked when no title is passed along the shared URI, only returns "YouTube" for YT links, because (I'm assuming) that's what the initial HTML response contains for the URI?

<!-- gh-comment-id:1858333054 --> @mortee commented on GitHub (Dec 15, 2023): I don't follow. Isn't the issue here exactly that the "fallback title fetcher", which is invoked when no title is passed along the shared URI, only returns "YouTube" for YT links, because (I'm assuming) that's what the initial HTML response contains for the URI?
Author
Owner

@marcelklehr commented on GitHub (Dec 15, 2023):

My assessment here was that the YouTube app sends a title, but only sets it to "YouTube", so since the title is set, floccus assumes it's good and the fallback doesn't kick in.

<!-- gh-comment-id:1858336651 --> @marcelklehr commented on GitHub (Dec 15, 2023): My assessment [here](https://github.com/floccusaddon/floccus/issues/1332#issuecomment-1556128968) was that the YouTube app sends a title, but only sets it to "YouTube", so since the title is set, floccus assumes it's good and the fallback doesn't kick in.
Author
Owner

@marcelklehr commented on GitHub (Dec 15, 2023):

Just tested: The title tag in youtube's initial response contains the full video title as expected

<!-- gh-comment-id:1858339884 --> @marcelklehr commented on GitHub (Dec 15, 2023): Just tested: The title tag in youtube's initial response contains the full video title as expected
Author
Owner

@mortee commented on GitHub (Dec 15, 2023):

Weird. When I share from my YT app into a text note, then the full video title is there, too. Where and how might this be diverted to the fixed "YouTube" string?

<!-- gh-comment-id:1858344481 --> @mortee commented on GitHub (Dec 15, 2023): Weird. When I share from my YT app into a text note, then the full video title is there, too. Where and how might this be diverted to the fixed "YouTube" string?
Author
Owner

@GambaJo commented on GitHub (Dec 30, 2023):

I have the same issue. I don't think, this is a general problem of the suplying app, because it works with the "original" bookmarks app for Nextcloud.
For example, when I visit a youtube page in my Android browser an click on "share" and choose the nextcloud bookmarks app, this app have the whole title of the youtube video and not only "Youtube".

I also tried this with sharing a link from NewPipe. Nextcloud bookmark app get the whole title, floccus only "Youtube".

<!-- gh-comment-id:1872552018 --> @GambaJo commented on GitHub (Dec 30, 2023): I have the same issue. I don't think, this is a general problem of the suplying app, because it works with the "original" bookmarks app for Nextcloud. For example, when I visit a youtube page in my Android browser an click on "share" and choose the nextcloud bookmarks app, this app have the whole title of the youtube video and not only "Youtube". I also tried this with sharing a link from NewPipe. Nextcloud bookmark app get the whole title, floccus only "Youtube".
Author
Owner

@marcelklehr commented on GitHub (Nov 27, 2024):

I found the issue. The user agent was to blame for the wrong title. With a neutral UA the title is obtained correctly 🎉

<!-- gh-comment-id:2503159684 --> @marcelklehr commented on GitHub (Nov 27, 2024): I found the issue. The user agent was to blame for the wrong title. With a neutral UA the title is obtained correctly :tada:
Author
Owner

@github-actions[bot] commented on GitHub (Nov 28, 2025):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:3587582469 --> @github-actions[bot] commented on GitHub (Nov 28, 2025): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#884
No description provided.