mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-16 07:57:38 +00: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:
@@ -568,7 +568,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
if (secondsString.isEmpty() //if nothing was got,
|
if (secondsString.isEmpty() //if nothing was got,
|
||||||
&& minutesString.isEmpty()//treat as unlabelled seconds
|
&& minutesString.isEmpty()//treat as unlabelled seconds
|
||||||
&& hoursString.isEmpty()) {
|
&& hoursString.isEmpty()) {
|
||||||
secondsString = Parser.matchGroup1("t=(\\d{1,3})", timeStamp);
|
secondsString = Parser.matchGroup1("t=(\\d+)", timeStamp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user