-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Support for gachi.gay and its variants was disabled a couple of months ago due to its shutdown, and the feature for playlists has been missed. Since gachi.gay has been revived under new ownership, a straightforward solution would be to revert the previous changes. However, I'm wondering if a more generic version could also be implemented (could maintain special gachi.gay implementation to enable support for its thumbnails). This would involve making a HEAD request to the given URL and checking if the content-type header in the response matches video/* or audio/*. If so, it could be embedded in a video or audio tag. This would enable support for https://catsh.zip or the https://patchy.moe variants (the user would have to share the /-/file/... path) or any other generic file server. Additionally a file name could potentially be parsed from the content-disposition header.
Regarding additional features, it's unclear if thumbnail support is feasible like it is out of the box with gachi.gay. A potential concern is that a malicious actor could exploit this to easily obtain a streamer's IP address. To mitigate this, the feature could be opt-in with a warning, and/or users could be allowed to maintain a whitelist of permitted URLs.
Would be interested in your thoughts or specific implementation details.