diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 346eb44e..43101393 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -31,14 +31,15 @@ jobs: ref: main token: ${{ secrets.BOT_PAT }} - - name: Find lib changes - id: modified-libs - uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42 - with: - files: lib/ - files_ignore: lib/**.md - files_separator: " " - safe_output: false + # Temporary pause because of leak of tj-actions/changed-files + # - name: Find lib changes + # id: modified-libs + # uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42 + # with: + # files: lib/ + # files_ignore: lib/**.md + # files_separator: " " + # safe_output: false - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 # v6.1.0 @@ -48,12 +49,12 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - # This step is going to commit, but this will not trigger another workflow. - - name: Bump extensions that uses a modified lib - if: steps.modified-libs.outputs.any_changed == 'true' - run: | - chmod +x ./.github/scripts/bump-versions.py - ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }} + # # This step is going to commit, but this will not trigger another workflow. + # - name: Bump extensions that uses a modified lib + # if: steps.modified-libs.outputs.any_changed == 'true' + # run: | + # chmod +x ./.github/scripts/bump-versions.py + # ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }} - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2 diff --git a/lib/amazon-extractor/build.gradle.kts b/lib/amazon-extractor/build.gradle.kts new file mode 100644 index 00000000..a503203d --- /dev/null +++ b/lib/amazon-extractor/build.gradle.kts @@ -0,0 +1,7 @@ +plugins { + id("lib-android") +} + +dependencies { + implementation(project(":lib:playlist-utils")) +} \ No newline at end of file diff --git a/lib/amazon-extractor/src/main/java/eu/kanade/tachiyomi/lib/amazonextractor/AmazonExtractor.kt b/lib/amazon-extractor/src/main/java/eu/kanade/tachiyomi/lib/amazonextractor/AmazonExtractor.kt new file mode 100644 index 00000000..3402cb9e --- /dev/null +++ b/lib/amazon-extractor/src/main/java/eu/kanade/tachiyomi/lib/amazonextractor/AmazonExtractor.kt @@ -0,0 +1,41 @@ +package eu.kanade.tachiyomi.lib.amazonextractor + +import eu.kanade.tachiyomi.animesource.model.Video +import eu.kanade.tachiyomi.lib.playlistutils.PlaylistUtils +import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.util.asJsoup +import okhttp3.OkHttpClient + +class AmazonExtractor(private val client: OkHttpClient) { + + private val playlistUtils by lazy { PlaylistUtils(client) } + + fun videosFromUrl(url: String, prefix: String = ""): List