Fix 0903221814

Now works, created fixed and clipped pafy
This commit is contained in:
BarsTiger
2022-03-09 18:14:45 +02:00
parent e0ea08a4af
commit 7e33d5fe51
13 changed files with 759 additions and 9 deletions

View File

@@ -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