tanaikech/goodls

Feature Request: Add "verbose" or "debug" option

brianredbeard opened this issue · 0 comments

I'm currently have to perform a reconciliation loop over a set of files in a directory which requires repeatedly attempting to download content. Unfortunately, while I see the fileId and the name of individual files in the output, i don't see the folder or other data.

e.g.

...
{"Filename": "keys.ogg", "Type": "", "MimeType": "audio/ogg", "FileSize": 4562227}
Downloading (bytes)... 171706 / 171706
{"Filename": "notes.mid", "Type": "", "MimeType": "audio/unknown", "FileSize": 171706}
Downloading (bytes)... 5093014 / 5093014
{"Filename": "rhythm.ogg", "Type": "", "MimeType": "audio/ogg", "FileSize": 5093014}
Downloading (bytes)... 934 / 934
{"Filename": "song.ini", "Type": "", "MimeType": "application/octet-stream", "FileSize": 934}
Downloading (bytes)... 4555503 / 4555503
{"Filename": "song.ogg", "Type": "", "MimeType": "audio/ogg", "FileSize": 4555503}
!! Downloading 'vocals.ogg' (fileId: XXXXXX48Io6JnVQz6s0EML4u8m9mc8PQk) was skipped by an error. Status code is 403.
!! Downloading 'album.png' (fileId: XXXXXXKByh2uw_aX8F-axMZlLWTP8iT1u) was skipped by an error. Status code is 403.
!! Downloading 'drums_1.ogg' (fileId: XXXXXXsWxLmUwdRRc3tbVilEnbPDFbOz1) was skipped by an error. Status code is 403.
!! Downloading 'drums_2.ogg' (fileId: XXXXXX3EClcHnYwQ1dB78x0ANoWQ2rXUt) was skipped by an error. Status code is 403.
!! Downloading 'drums_3.ogg' (fileId: XXXXXXoC2CeSg6lHaOzhHDbqFjJGTrjOO) was skipped by an error. Status code is 403.
!! Downloading 'guitar.ogg' (fileId: XXXXXX8PLtHQTklvwp51lnsaxU9Uk-bME) was skipped by an error. Status code is 403.
!! Downloading 'notes.mid' (fileId: XXXXXXeG_IlyI4bgVLcgSuhJ2q7XCAeQ1) was skipped by an error. Status code is 403.
!! Downloading 'rhythm.ogg' (fileId: XXXXXX_BZcC5i85Yg5aZbrbFIDShCk0Zv) was skipped by an error. Status code is 403.
...

In this situation it would be helpful to more easily identify content which was not retrieved. Honestly, i'm not really opinionated on the mechanism. I assume I could use the fileId information, but it would be challenging to rebuild the directory content on that alone.

Open to suggestions and flexible on how things get done. :D