This was written in Python as a backend for the TubeRepair tweak by bag.xml (et al).
Check it out via Github: tuberepair-python
This is the 360p (SD) Server.
Open TubeRepair's setting and change the custom URL to:
(hold to copy)
To use the HD version, change to this URL:
(hold to copy)