Personal changes.
This commit is contained in:
parent
a29a637bcb
commit
1c69a2aa59
3 changed files with 5 additions and 5 deletions
|
@ -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(
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue