UPDATE
6.5.3.
Added parameter processing to select the desired video stream quality. Set as a value for the "default-stream" parameter. Allowable values: 144p, 256p, 576p, 720p, 1080p, etc. In case the requested resource does not have the quality of the stream specified by you in the "default-stream" parameter or this parameter is not specified, the best of the existing ones will be selected from the offered ones.
For example
In this case, a stream with a quality of 720p will be selected
#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//localhost%3a8088/https%3a//www.youtube.com/watch?v=JpTL53Su4U8&default-stream=720p
#DESCRIPTION Прямий (youtube)
In this case, a stream with a quality of 1080p will be selected
#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//localhost%3a8088/https%3a//www.youtube.com/watch?v=JpTL53Su4U8&default-stream=1080p
#DESCRIPTION Прямий (youtube)
In this case, the best of the existing ones will be selected
#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//localhost%3a8088/https%3a//www.youtube.com/watch?v=JpTL53Su4U8
#DESCRIPTION Прямий (youtube)
Enjoy!