ageRestrictedContent cookie only sent for youtube
Now the age restricted content cookie is only sent when sending a request to youtube. There's no need to remove the cookie when the service changes because whether to add the cookie is determined by looking at the url the request is being sent to.
This commit is contained in:
parent
b1c310ce22
commit
bd1c43cd37
3 changed files with 29 additions and 17 deletions
|
|
@ -242,9 +242,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this))
|
||||
.setChecked(false);
|
||||
ServiceHelper.setSelectedServiceId(this, item.getItemId());
|
||||
drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true);
|
||||
drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this))
|
||||
.setChecked(true);
|
||||
DownloaderImpl.getInstance().updateAgeRestrictedContentCookies(getApplicationContext());
|
||||
}
|
||||
|
||||
private void tabSelected(final MenuItem item) throws ExtractionException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue