From 2b9c7fee20ef58e9c1948d7a346539f3d9707738 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sun, 1 Mar 2020 15:37:47 +0100 Subject: [PATCH] Update extractor version --- app/build.gradle | 2 +- app/src/main/java/org/schabi/newpipe/DownloaderImpl.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 962704e51..edebc7867 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,7 +63,7 @@ dependencies { exclude module: 'support-annotations' }) - implementation 'com.github.TeamNewPipe:NewPipeExtractor:fc465c8bf' + implementation 'com.github.TeamNewPipe:NewPipeExtractor:6446abc6d' testImplementation 'junit:junit:4.12' testImplementation 'org.mockito:mockito-core:2.23.0' diff --git a/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java b/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java index 0ae072c66..8c551d2a7 100644 --- a/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java +++ b/app/src/main/java/org/schabi/newpipe/DownloaderImpl.java @@ -171,7 +171,8 @@ public class DownloaderImpl extends Downloader { responseBodyToReturn = body.string(); } - return new Response(response.code(), response.message(), response.headers().toMultimap(), responseBodyToReturn); + final String latestUrl = response.request().url().toString(); + return new Response(response.code(), response.message(), response.headers().toMultimap(), responseBodyToReturn, latestUrl); } /**