share by timecode

This commit is contained in:
Tony Tam 2020-11-27 11:32:56 -08:00
parent 66ee677ebe
commit afb151eb3f
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class ShareUtils {
String text = getItemShareText(item) + " " + item.getMedia().getDownload_url(); String text = getItemShareText(item) + " " + item.getMedia().getDownload_url();
if(withPosition) { if(withPosition) {
int pos = item.getMedia().getPosition(); int pos = item.getMedia().getPosition();
text += "#t=" + pos / 1000;
text += " [" + Converter.getDurationStringLong(pos) + "]"; text += " [" + Converter.getDurationStringLong(pos) + "]";
} }
shareLink(context, text); shareLink(context, text);