Bugfix 1910210844:
Fixed import bug
This commit is contained in:
@@ -8,12 +8,19 @@ import urllib.parse
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import json
|
import json
|
||||||
import zipfile
|
import zipfile
|
||||||
|
import re
|
||||||
try:
|
try:
|
||||||
import vlc
|
import vlc
|
||||||
except:
|
except:
|
||||||
subprocess.check_call([sys.executable, "-m", "pip", "install", 'python-vlc'])
|
subprocess.check_call([sys.executable, "-m", "pip", "install", 'python-vlc'])
|
||||||
import vlc
|
import vlc
|
||||||
|
|
||||||
|
try:
|
||||||
|
import youtube_dl
|
||||||
|
except:
|
||||||
|
subprocess.check_call([sys.executable, "-m", "pip", "install", 'youtube_dl'])
|
||||||
|
import youtube_dl
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pafy
|
import pafy
|
||||||
except:
|
except:
|
||||||
@@ -670,6 +677,9 @@ def addtopl():
|
|||||||
|
|
||||||
print(str(len(list(playlist))))
|
print(str(len(list(playlist))))
|
||||||
willbesong = {}
|
willbesong = {}
|
||||||
|
# willbesong['name'] = bytes(results[whichres]["title"], 'Windows-1251', 'ignore').decode('Windows-1251', 'ignore')
|
||||||
|
# willbesong['author'] = bytes(results[whichres]["channel"], 'Windows-1251', 'ignore').decode('Windows-1251', 'ignore')
|
||||||
|
# willbesong['url'] = url
|
||||||
willbesong['name'] = results[whichres]["title"]
|
willbesong['name'] = results[whichres]["title"]
|
||||||
willbesong['author'] = results[whichres]["channel"]
|
willbesong['author'] = results[whichres]["channel"]
|
||||||
willbesong['url'] = url
|
willbesong['url'] = url
|
||||||
|
|||||||
Reference in New Issue
Block a user