1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-11-14 12:07:30 +00:00

Remove unused declarations in index

This commit is contained in:
Cadence Ember 2020-08-29 19:19:55 +12:00
parent c832142b1d
commit e07848788b
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -17,18 +17,6 @@ from extractors.manifest import extract_manifest
from extractors.search import extract_search
from extractors.suggestions import extract_search_suggestions
ytdl_opts = {
"quiet": True,
"dump_single_json": True,
"playlist_items": "1-100",
"extract_flat": "in_playlist"
}
ytdl = youtube_dl.YoutubeDL(ytdl_opts)
ytdl_save_opts = ytdl_opts.copy()
ytdl_save_opts["write_pages"] = True
ytdl_save = youtube_dl.YoutubeDL(ytdl_save_opts)
class Second(object):
def __init__(self):
self.video_cache = TTLCache(maxsize=50, ttl=300)