From 2d41fd5ce9e2c821ea4da8a6650f445dbf48d641 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 26 Jun 2018 22:11:35 -0300 Subject: Hide/fix weird bug with empty downloaderArgs --- todo.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'todo.txt') diff --git a/todo.txt b/todo.txt index f5bff02..c1f7b51 100644 --- a/todo.txt +++ b/todo.txt @@ -38,4 +38,14 @@ TODO: Pass YouTube playlist or http://.../playlist.json-like URLs to use them (Done!) TODO: There's some weird glitch where, if downloaderArg is missing (=== ""), - it'll play.. something by Jake Chudnow?? + it'll play.. something by Jake Chudnow?? -- Okay, looks like it's using + ~/.mtui/downloads// as the directory for where it would + put the download file (because it's .../localink/ + encode(dlArg) and + dlArg is empty). The way the cache works is that it checks if there is + already a file in that directory, and there IS: a directory for another + track download! But the cache doesn't know this; it just thinks that + directory is the MP3 file (or whatever). So it returns it. MPV works fine + if you pass it a directory that contains music files, so in my case, + 72_food (by Jake Chudnow) plays. (That's the first thing returned by + readdir, I suppose.) + (Done!) -- cgit 1.3.0-6-gf8a5