static File youtubeDLExtractDestination(S youtubeDLOutput) { printIndent("XX ", youtubeDLOutput); S s = afterFirstOccurrenceOf(youtubeDLOutput, //"[download] Destination: " "Destination:" ); if (s != null) ret newFile(trim(firstLine(s))); int i = indexOf(youtubeDLOutput, " has already been downloaded"); if (i < 0) null; ret newFile(trim(dropPrefix("[download]", lastLine(takeFirst(youtubeDLOutput, i))))); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018462 |
Snippet name: | youtubeDLExtractDestination |
Eternal ID of this version: | #1018462/6 |
Text MD5: | 23a0874c771b9dcd806c96d9dbb11a57 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-30 22:51:34 |
Source code size: | 446 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 390 / 435 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |