From c880047c4f3c26efc682c1cc0551ecc2a19f10ad Mon Sep 17 00:00:00 2001 From: Gracecr Date: Thu, 14 Jul 2016 16:50:57 -0400 Subject: [PATCH] Allows for large times stamps fixing #330 @scde submitted #330, along with a couple proposed fixes. This is the second proposed fix, which allows for arbitrarily large timestamps. All credit to @scde for this. --- .../extractor/services/youtube/YoutubeStreamExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java index 49cdcade0..afdaff3a9 100644 --- a/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java +++ b/app/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractor.java @@ -568,7 +568,7 @@ public class YoutubeStreamExtractor extends StreamExtractor { if (secondsString.isEmpty() //if nothing was got, && minutesString.isEmpty()//treat as unlabelled seconds && hoursString.isEmpty()) { - secondsString = Parser.matchGroup1("t=(\\d{1,3})", timeStamp); + secondsString = Parser.matchGroup1("t=(\\d+)", timeStamp); } }