Some fixes + improvements
This commit is contained in:
parent
a0226289fb
commit
8b3659611a
|
@ -76,6 +76,8 @@
|
|||
<data android:host="invidiou.sh" />
|
||||
<data android:host="invidious.toot.koeln" />
|
||||
<data android:host="invidious.ggc-project.de" />
|
||||
<data android:host="invidious.13ad.de" />
|
||||
<data android:host="yewtu.be" />
|
||||
|
||||
<!-- NITTER INSTANCES -->
|
||||
<data android:host="nitter.net" />
|
||||
|
@ -85,6 +87,9 @@
|
|||
<data android:host="nitter.13ad.de" />
|
||||
<data android:host="tw.openalgeria.org" />
|
||||
<data android:host="nitter.pussthecat.org" />
|
||||
<data android:host="nitter.mastodont.cat" />
|
||||
<data android:host="nitter.dark.fail" />
|
||||
<data android:host="nitter.tedomum.net" />
|
||||
|
||||
<!-- BIBLIOGRAM INSTANCES -->
|
||||
<data android:host="bibliogram.art" />
|
||||
|
|
|
@ -101,7 +101,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
"invidious.snopyta.org",
|
||||
"invidiou.sh",
|
||||
"invidious.toot.koeln",
|
||||
"invidious.ggc-project.de"
|
||||
"invidious.ggc-project.de",
|
||||
"invidious.13ad.de",
|
||||
"yewtu.be"
|
||||
};
|
||||
public static String[] nitter_instances = {
|
||||
"nitter.net",
|
||||
|
@ -109,7 +111,10 @@ public class MainActivity extends AppCompatActivity {
|
|||
"nitter.42l.fr",
|
||||
"nitter.13ad.de",
|
||||
"tw.openalgeria.org",
|
||||
"nitter.pussthecat.org"
|
||||
"nitter.pussthecat.org",
|
||||
"nitter.mastodont.cat",
|
||||
"nitter.dark.fail",
|
||||
"nitter.tedomum.net"
|
||||
};
|
||||
public static String[] bibliogram_instances = {
|
||||
"bibliogram.art",
|
||||
|
|
|
@ -429,7 +429,7 @@ public class TransformActivity extends Activity {
|
|||
boolean embedded_player = sharedpreferences.getBoolean(SET_EMBEDDED_PLAYER, false);
|
||||
|
||||
if (Arrays.asList(invidious_instances).contains(Objects.requireNonNull(i.getData()).getHost()) && embedded_player) {
|
||||
if (!i.getData().toString().contains("videoplayback")) {
|
||||
if (!i.getData().toString().contains("videoplayback") && !i.getData().toString().contains("/channel/")) {
|
||||
Intent intentPlayer = new Intent(TransformActivity.this, WebviewPlayerActivity.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
intentPlayer.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
|
||||
|
|
|
@ -7,7 +7,7 @@ buildscript {
|
|||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.6.1'
|
||||
classpath 'com.android.tools.build:gradle:3.6.2'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Added:
|
||||
- Support to more Invidious and Nitter instances
|
||||
|
||||
Fixed:
|
||||
- Built-in player opening channels
|
Loading…
Reference in New Issue