download next into playlist

This commit is contained in:
Azlux
2018-11-23 00:08:34 +01:00
parent c7d66d4a31
commit 8f2cce9e9f
3 changed files with 65 additions and 25 deletions

View File

@ -3,7 +3,11 @@ import variables as var
def get_url_info():
with youtube_dl.YoutubeDL() as ydl:
ydl_opts = {
'noplaylist': True
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
for i in range(2):
try:
print(var.playlist)