unpack Link
fun unpackLink(link: String, headers: Map<String, String> = emptyMap(), packedSelector: (values: List<String>) -> String = { it.first() }): String(source)
Search packed functions in the link html and decode ONE defined by packedSelector, by default the first packed found will be decoded. Packed functions will be searched using this regex: eval\((function\(p,a,c,k,e,?\[dr]?\)..split\('\|'\).)\)
Return
The decoded packed function selected by packedSelector
Parameters
link
The link used to search the packed functions
headers
Optional additional headers
packed Selector
Selects a single packed code from the list