updated to support the latest streamlink