create a python program to stream video from m3u8 url using moviepy.editor module
def stream(url, title): if '?type=m3u8_native' in url: url = url.replace('?type=m3u8_native', '?type=m3u8') url = url.replace('/manifest.m3u', '/index_1_av.m3u8') clip = VideoFileClip(url).resize(width=854) clip.write_videofile(str(title + '.mp4'))