glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
7.49k stars 260 forks source link

feat: support bilibili #100

Closed helloteemo closed 2 months ago

helloteemo commented 4 months ago

add a bilibili widget

it's look like Video Widget

image
svilenmarkov commented 4 months ago

Hey, thanks for contributing!

While I would like to support more sources, I think rather than having different widgets for each source it would make more sense to have a single videos widget that supports multiple sources. I'll spend some time thinking about the best way to do this as I'd have to make some backwards incompatible changes.

helloteemo commented 4 months ago

I agree with you that the current Bilibili Channel implementation also reuses video widgets

The difficulty with widgets that support multiple sources (including all that require network requests) is how to process responses to HTTP requests into a standard structure. Glance must implement mainstream channels, and when it encounters the rest of the channels, it leaves the processing to itself.

Maybe gopher-lua would help.