- January 7, 2006
- 1,335
- 1,005
- Home Country
- Netherlands
They get the newest videos from the TV interface page opposed to the activities list, the Kodi plugin tries to imitate the TV client with coded paths and a few workarounds which is a lot different then what we use (cleaner but with a few limitations set by the API):
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L491
Not sure if we can include it into the current construction but will give it another go this weekend.
// UPDATE
Tried to include the Kodi approach but the 2 don't mix, it will require another authentication and might break in the future as its hard-coded headers + json output reading of the TV interface.
If someone else wants to try it then it comes down to converting these functions:
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L490
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L639
Afterwards it will also need a new separate auth token which is why with Kodi you need to authenticate twice I guess and this is also version dependent.
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L491
Not sure if we can include it into the current construction but will give it another go this weekend.
// UPDATE
Tried to include the Kodi approach but the 2 don't mix, it will require another authentication and might break in the future as its hard-coded headers + json output reading of the TV interface.
If someone else wants to try it then it comes down to converting these functions:
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L490
https://github.com/bromix/plugin.vi.../resources/lib/youtube/client/youtube.py#L639
Afterwards it will also need a new separate auth token which is why with Kodi you need to authenticate twice I guess and this is also version dependent.
Last edited: