Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
392 B
3
Indexable
Never
if (epg.isCurrent()) {
            Calendar current = Calendar.getInstance();

            long seconds = TimeUnit.MILLISECONDS.toSeconds(current.getTimeInMillis() - epg.getStart());

            if (channelCid != null) {
                epgRepresentation.url = epgRepresentation.url.replaceAll("(?<=" + channelCid + "/)(.*?)(?=\\.m3u8)", "rewind-" + seconds);
            }
        }