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')
|
STATIC_DIR = root_dir.with_child('static')
|
||||||
FAVICON_PATH = STATIC_DIR.with_child('favicon.png')
|
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)
|
youtube = ycdl.YCDL(youtube_core)
|
||||||
|
|
||||||
site = flask.Flask(
|
site = flask.Flask(
|
||||||
|
|
|
@ -6,5 +6,5 @@ session with these variables preloaded.
|
||||||
import bot
|
import bot
|
||||||
import ycdl
|
import ycdl
|
||||||
|
|
||||||
youtube_core = ycdl.ytapi.Youtube(bot.YOUTUBE_KEY)
|
youtube = ycdl.ytapi.Youtube(bot.get_youtube_key())
|
||||||
youtube = ycdl.YCDL(youtube_core)
|
ydl = ycdl.YCDL(youtube)
|
||||||
|
|
|
@ -9,12 +9,12 @@ import ycdl_repl
|
||||||
from voussoirkit import downloady
|
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)
|
youtube = ycdl.YCDL(youtube_core)
|
||||||
|
|
||||||
DIRECTORY = '.\\youtube thumbnails'
|
DIRECTORY = '.\\youtube thumbnails'
|
||||||
|
|
||||||
videos = ycdl_repl.youtube.get_videos()
|
videos = ycdl_repl.ydl.get_videos()
|
||||||
for video in videos:
|
for video in videos:
|
||||||
try:
|
try:
|
||||||
thumbnail_path = os.path.join(DIRECTORY, video['id']) + '.jpg'
|
thumbnail_path = os.path.join(DIRECTORY, video['id']) + '.jpg'
|
||||||
|
|
Loading…
Reference in a new issue