Use relatedItems instead of info.getRelatedStreams()
This commit is contained in:
parent
7a30f4a7d2
commit
4274827dbe
3 changed files with 3 additions and 3 deletions
|
@ -163,7 +163,7 @@ dependencies {
|
||||||
exclude module: 'support-annotations'
|
exclude module: 'support-annotations'
|
||||||
}
|
}
|
||||||
|
|
||||||
implementation 'com.github.wb9688:NewPipeExtractor:70136e6a099d610d1fe6340549aa0542f7f26f1e'
|
implementation 'com.github.wb9688:NewPipeExtractor:fc3a63fec56c110d7f434ef4377b3eeb2b8bbefe'
|
||||||
|
|
||||||
implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
||||||
implementation "org.jsoup:jsoup:1.13.1"
|
implementation "org.jsoup:jsoup:1.13.1"
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class RelatedVideosFragment extends BaseListInfoFragment<RelatedStreamInf
|
||||||
autoplaySwitch.setChecked(autoplay);
|
autoplaySwitch.setChecked(autoplay);
|
||||||
autoplaySwitch.setOnCheckedChangeListener((compoundButton, b) ->
|
autoplaySwitch.setOnCheckedChangeListener((compoundButton, b) ->
|
||||||
PreferenceManager.getDefaultSharedPreferences(getContext()).edit()
|
PreferenceManager.getDefaultSharedPreferences(getContext()).edit()
|
||||||
.putBoolean(getString(R.string.auto_queue_key), b).apply());
|
.putBoolean(getString(R.string.auto_queue_key), b).apply());
|
||||||
return headerRootLayout;
|
return headerRootLayout;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -168,7 +168,7 @@ public final class PlayerHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<StreamInfoItem> autoQueueItems = new ArrayList<>();
|
final List<StreamInfoItem> autoQueueItems = new ArrayList<>();
|
||||||
for (final InfoItem item : info.getRelatedStreams()) {
|
for (final InfoItem item : relatedItems) {
|
||||||
if (item instanceof StreamInfoItem && !urls.contains(item.getUrl())) {
|
if (item instanceof StreamInfoItem && !urls.contains(item.getUrl())) {
|
||||||
autoQueueItems.add((StreamInfoItem) item);
|
autoQueueItems.add((StreamInfoItem) item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue