shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo
https://shaarli.readthedocs.io/
Other
3.45k stars 296 forks source link

Fix metadata fetching for YouTube URLs #2069

Closed puppe closed 8 months ago

puppe commented 9 months ago

YouTube responds with a redirect if it thinks that the user agent is too old. This commit changes the user agent string to that of a current version of Firefox. See also https://github.com/shaarli/Shaarli/issues/531#issuecomment-1902784175.