1 | static File youtubeDLExtractDestination(S youtubeDLOutput) { |
2 | printIndent("XX ", youtubeDLOutput); |
3 | S s = afterFirstOccurrenceOf(youtubeDLOutput, |
4 | //"[download] Destination: " |
5 | "Destination:" |
6 | ); |
7 | if (s != null) |
8 | ret newFile(trim(firstLine(s))); |
9 | int i = indexOf(youtubeDLOutput, " has already been downloaded"); |
10 | if (i < 0) null; |
11 | ret newFile(trim(dropPrefix("[download]", lastLine(takeFirst(youtubeDLOutput, i))))); |
12 | } |
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: | 391 / 436 |
Version history: | 5 change(s) |
Referenced in: | [show references] |