1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

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.
This commit is contained in:
Gracecr 2016-07-14 16:50:57 -04:00 committed by GitHub
parent 66e88829dd
commit c880047c4f

View File

@ -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);
}
}