iv-org / documentation

The official Invidious documentation
https://docs.invidious.io
Creative Commons Zero v1.0 Universal
567 stars 154 forks source link

Response of `/API/V1/VIDEOS/:ID` have wrong type #557

Open sudipghimire533 opened 3 months ago

sudipghimire533 commented 3 months ago

As described in docs

{
    adaptiveFormats: {
        projectionType: u32
    }
}

But as seen from:

https://vid.puffyan.us/api/v1/videos/Wx92JT6IrKY

value of that field is "RECTUNGULAR"

unixfox commented 3 months ago

True, it shouldn't be an int (https://crystal-lang.org/api/1.12.1/UInt32.html) but a string

Feel free to create a PR for fixing that, file is here: https://github.com/iv-org/documentation/blob/master/docs/api.md