Don't preemptively clean url and save StreamInfo with PlayQueueItem
This commit is contained in:
parent
183f9701fd
commit
f3a280dcb6
2 changed files with 12 additions and 3 deletions
|
|
@ -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 -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue