Upgrade jsoup

This commit is contained in:
wb9688 2020-05-03 11:54:37 +02:00
parent 7b81e98581
commit e16a2d7cb6
3 changed files with 6 additions and 6 deletions

View File

@ -163,10 +163,10 @@ dependencies {
exclude module: 'support-annotations' exclude module: 'support-annotations'
} }
implementation 'com.github.TeamNewPipe:NewPipeExtractor:f3913e241e379adf0091319091e8f895c5fcfd07' implementation 'com.github.wb9688:NewPipeExtractor:8f71bde776336c442da66f2656e0141881fa9987'
implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751" implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
implementation "org.jsoup:jsoup:1.9.2" implementation "org.jsoup:jsoup:1.13.1"
implementation "com.squareup.okhttp3:okhttp:3.12.11" implementation "com.squareup.okhttp3:okhttp:3.12.11"

View File

@ -3,6 +3,7 @@ package org.schabi.newpipe.info_list.holder;
import android.content.ClipData; import android.content.ClipData;
import android.content.ClipboardManager; import android.content.ClipboardManager;
import android.content.Context; import android.content.Context;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod; import android.text.method.LinkMovementMethod;
import android.text.style.URLSpan; import android.text.style.URLSpan;
import android.text.util.Linkify; import android.text.util.Linkify;
@ -12,7 +13,6 @@ import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import org.jsoup.helper.StringUtil;
import org.schabi.newpipe.R; import org.schabi.newpipe.R;
import org.schabi.newpipe.extractor.InfoItem; import org.schabi.newpipe.extractor.InfoItem;
import org.schabi.newpipe.extractor.comments.CommentsInfoItem; import org.schabi.newpipe.extractor.comments.CommentsInfoItem;
@ -143,7 +143,7 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
} }
private void openCommentAuthor(final CommentsInfoItem item) { private void openCommentAuthor(final CommentsInfoItem item) {
if (StringUtil.isBlank(item.getUploaderUrl())) { if (TextUtils.isEmpty(item.getUploaderUrl())) {
return; return;
} }
try { try {

View File

@ -1,6 +1,6 @@
package org.schabi.newpipe.util; package org.schabi.newpipe.util;
import org.jsoup.helper.StringUtil; import android.text.TextUtils;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
@ -16,7 +16,7 @@ public final class CookieUtils {
for (String cookies : cookieStrings) { for (String cookies : cookieStrings) {
cookieSet.addAll(splitCookies(cookies)); cookieSet.addAll(splitCookies(cookies));
} }
return StringUtil.join(cookieSet, "; ").trim(); return TextUtils.join("; ", cookieSet).trim();
} }
public static Set<String> splitCookies(final String cookies) { public static Set<String> splitCookies(final String cookies) {