Personal changes.

master
voussoir 2020-01-06 22:01:23 -08:00
parent a29a637bcb
commit 1c69a2aa59
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ TEMPLATE_DIR = root_dir.with_child('templates')
STATIC_DIR = root_dir.with_child('static')
FAVICON_PATH = STATIC_DIR.with_child('favicon.png')
youtube_core = ycdl.ytapi.Youtube(bot.YOUTUBE_KEY)
youtube_core = ycdl.ytapi.Youtube(bot.get_youtube_key())
youtube = ycdl.YCDL(youtube_core)
site = flask.Flask(

View File

@ -6,5 +6,5 @@ session with these variables preloaded.
import bot
import ycdl
youtube_core = ycdl.ytapi.Youtube(bot.YOUTUBE_KEY)
youtube = ycdl.YCDL(youtube_core)
youtube = ycdl.ytapi.Youtube(bot.get_youtube_key())
ydl = ycdl.YCDL(youtube)

View File

@ -9,12 +9,12 @@ import ycdl_repl
from voussoirkit import downloady
youtube_core = ycdl.ytapi.Youtube(bot.YOUTUBE_KEY)
youtube_core = ycdl.ytapi.Youtube(bot.get_youtube_key())
youtube = ycdl.YCDL(youtube_core)
DIRECTORY = '.\\youtube thumbnails'
videos = ycdl_repl.youtube.get_videos()
videos = ycdl_repl.ydl.get_videos()
for video in videos:
try:
thumbnail_path = os.path.join(DIRECTORY, video['id']) + '.jpg'