mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix extractor not fetching page.
This commit is contained in:
parent
fa5bf890f2
commit
1b41b75243
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper
|
|||
public class VideoHelpers {
|
||||
public static void handleNewVideo(String url, long time, me.kavin.piped.utils.obj.db.Channel channel) {
|
||||
try {
|
||||
handleNewVideo(YOUTUBE_SERVICE.getStreamExtractor(url), time, channel);
|
||||
var extractor = YOUTUBE_SERVICE.getStreamExtractor(url);
|
||||
extractor.fetchPage();
|
||||
handleNewVideo(extractor, time, channel);
|
||||
} catch (Exception e) {
|
||||
ExceptionHandler.handle(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue