-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Double tap in the player to quickly seek,
Show title of the episode in the player, TImer which shows current time of the played video, Don't resume video if it is paused after activity was resumed, Stop automatic source selection after user manually picked something
- Loading branch information
1 parent
b640b06
commit e311db7
Showing
10 changed files
with
480 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
app/src/main/java/com/mrboomdev/awery/catalog/provider/AywaExtensionProvider.java
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/mrboomdev/awery/catalog/provider/JsExtensionProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.mrboomdev.awery.catalog.provider; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import com.mrboomdev.awery.catalog.template.CatalogEpisode; | ||
import com.mrboomdev.awery.catalog.template.CatalogMedia; | ||
|
||
import org.mozilla.javascript.Context; | ||
|
||
import java.util.List; | ||
|
||
public class JsExtensionProvider extends ExtensionProvider { | ||
|
||
@Override | ||
public void getEpisodes(int page, CatalogMedia media, @NonNull ResponseCallback<List<CatalogEpisode>> callback) { | ||
super.getEpisodes(page, media, callback); | ||
} | ||
|
||
public JsExtensionProvider(String script) { | ||
var context = Context.enter(); | ||
var scope = context.initSafeStandardObjects(); | ||
context.evaluateString(scope, script, null, 1,null); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "JsExtensionProvider"; | ||
} | ||
} |
Oops, something went wrong.