glance icon indicating copy to clipboard operation
glance copied to clipboard

feat: support bilibili

Open helloteemo opened this issue 1 year ago • 2 comments

add a bilibili widget

it's look like Video Widget

image

helloteemo avatar May 22 '24 12:05 helloteemo

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.

svilenmarkov avatar May 25 '24 03:05 svilenmarkov

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.

helloteemo avatar May 25 '24 05:05 helloteemo