anyone can help?
Error as below
vlc_instance = vlc.Instance(vlc_option)
AttributeError: module 'vlc' has no attribute 'Instance'
Code: Select all
#pip install pafy
#pip install youtube_dl
#pip install python-vlc
import pafy
import vlc
import time
vlc_option = '--video-filter=invert'
#player = vlc.MediaPlayer("/path/to/file.flac")
url = """https://youtu.be/xxxxxxxx"""
vid = pafy.new(url)
best = vid.getbest()
best_player = best.url
vlc_instance = vlc.Instance(vlc_option)