Don't preemptively clean url and save StreamInfo with PlayQueueItem

This commit is contained in:
Aris Poloway 2018-04-04 20:11:13 -04:00
parent 183f9701fd
commit f3a280dcb6
2 changed files with 12 additions and 3 deletions

View file

@ -122,7 +122,7 @@ public class RouterActivity extends AppCompatActivity {
currentService = NewPipe.getServiceByUrl(url);
currentServiceId = currentService.getServiceId();
currentLinkType = currentService.getLinkTypeByUrl(url);
currentUrl = NavigationHelper.getCleanUrl(currentService, url, currentLinkType);
currentUrl = url;
} else {
currentService = NewPipe.getService(currentServiceId);
}
@ -307,7 +307,8 @@ public class RouterActivity extends AppCompatActivity {
// StreamDetailFragment can fetch data itself
if(playerChoiceKey.equals(getString(R.string.show_info_key))) {
disposables.add(Observable
.fromCallable(() -> NavigationHelper.getIntentByLink(this, currentUrl))
.fromCallable(() -> NavigationHelper.getIntentByLink(this,
NavigationHelper.getCleanUrl(currentService, currentUrl, currentLinkType)))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(intent -> {