Fix 0903221814
Now works, created fixed and clipped pafy
This commit is contained in:
@@ -18,11 +18,7 @@ except:
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", 'youtube_dl'])
|
||||
import youtube_dl
|
||||
|
||||
try:
|
||||
import pafy
|
||||
except:
|
||||
subprocess.check_call([sys.executable, "-m", "pip", "install", 'pafy'])
|
||||
import pafy
|
||||
import resources.pafy_fix.pafy as pafy
|
||||
|
||||
try:
|
||||
import requests
|
||||
@@ -791,6 +787,7 @@ def playmusic(url, name, author):
|
||||
best = video.getbest()
|
||||
playurl = best.url
|
||||
|
||||
|
||||
global instance
|
||||
global media
|
||||
global mediaplayer
|
||||
|
||||
Reference in New Issue
Block a user