Libraryless. Click here for Pure Java version (4233L/28K).
1 | sS trackTitleFromAutoPostWidget(S html) {
|
2 | for (S img : findTagsWithParams img(html)) {
|
3 | S title = tagParam(img, 'title); |
4 | if (empty(title)) continue; |
5 | S s = dropPrefixTrimIC_orNull("listen to ", title), continue if null;
|
6 | int idx = lastIndexOfIC(s, " on "); |
7 | if (idx < 0) continue; |
8 | s = trim(takeFirst(s, idx)); |
9 | ret s; |
10 | } |
11 | null; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025935 |
| Snippet name: | trackTitleFromAutoPostWidget |
| Eternal ID of this version: | #1025935/2 |
| Text MD5: | cc829e7bc22c40c6839ece7ec2e40694 |
| Transpilation MD5: | 07b3079e99735ca0c5bef2dbf601a410 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-10-30 16:17:43 |
| Source code size: | 367 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 387 / 512 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |