I maintain shows, and films from several platforms within an OrgMode File. Now the string you get when sharing from netflix has unnecessary information.
I get rid of that with Tasker and a Java Scriptlet.
var endName = astext.search(" auf Netflix gesehen?") -1; var text = astext.slice(15,endName); endName = endName+24; var replacer = astext.slice(0,endName); var link = String(astext.replace(replacer));
astextas input source from AutoShare Netflix Toast Interception.
Infront of my string stored in
This also happens if I instead of "resharing" the link simply print it out via
FlashTask in Tasker
emmalee last edited by
var idx = astext.indexOf("https://"); var link = astext.substring(0,idx);
First search for the string
https://and save the start index. Then cut everything away from start to the saved index.