Libraryless. Click here for Pure Java version (4233L/28K).
sS trackTitleFromAutoPostWidget(S html) { for (S img : findTagsWithParams img(html)) { S title = tagParam(img, 'title); if (empty(title)) continue; S s = dropPrefixTrimIC_orNull("listen to ", title), continue if null; int idx = lastIndexOfIC(s, " on "); if (idx < 0) continue; s = trim(takeFirst(s, idx)); ret s; } null; }
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: | 180 / 268 |
Version history: | 1 change(s) |
Referenced in: | [show references] |