12
12
Fork
You've already forked cloudstream-extensions
22

Fixed Stremio #43

Open
pokerface-bad wants to merge 4 commits from pokerface-bad/stremio into master
pull from: pokerface-bad/stremio
merge into: cloudstream:master
cloudstream:master
cloudstream:builds
cloudstream:removal
cloudstream:testing
cloudstream:builds-test
pokerface-bad commented 2023年03月16日 00:53:50 +01:00 (Migrated from github.com)
Copy link

working with 2 addons :

- fix detail page. make it support series for iptv and catalog
- add streaming support for catalog add ons


ps: encode f up request

**working with 2 addons :** - https://2maxtv2.surge.sh - https://stremio-tmdb-addon.vercel.app **- fix detail page. make it support series for iptv and catalog** **- add streaming support for catalog add ons** <br> <img src="https://user-images.githubusercontent.com/117321707/225468775-4c51eb84-0a78-4ba8-bcba-24392222a512.png" width="200" height="250" /><img src="https://user-images.githubusercontent.com/117321707/225469116-f0fbfabc-8311-4c87-ac8f-0ec02d014ed0.png" width="200" height="250" /><img src="https://user-images.githubusercontent.com/117321707/225469278-41e1d91d-3691-4289-bbfb-bb21df4dd541.png" width="200" height="250" /><img src="https://user-images.githubusercontent.com/117321707/225546786-c0ff6a40-07e7-41fe-bf50-4780a5f9c688.png" width="200" height="250" /> _ps: encode f up request_
C10udburst (Migrated from github.com) reviewed 2023年03月16日 07:04:34 +01:00
C10udburst (Migrated from github.com) commented 2023年03月16日 07:03:05 +01:00
Copy link

shouldn't this line be removed?

shouldn't this line be removed?
pokerface-bad (Migrated from github.com) reviewed 2023年03月16日 08:30:42 +01:00
pokerface-bad (Migrated from github.com) commented 2023年03月16日 08:30:42 +01:00
Copy link

can you check new commit, i made some improvement so that catalog addons like tmdb support streaming.
about that url is json and i need id to check if that imdb or not (in new commit)

btw @C10udburst do you know all route stremio have ? like /catalog, /meta and /stream
somehow /meta route doesn't work in some catalog add ons like Trakt and Cyberflix

can you check new commit, i made some improvement so that catalog addons like tmdb support streaming. about that url is json and i need id to check if that imdb or not (in new commit) btw @C10udburst do you know all route stremio have ? like /catalog, /meta and /stream somehow /meta route doesn't work in some catalog add ons like Trakt and Cyberflix
Blatzar (Migrated from github.com) reviewed 2023年03月16日 14:24:53 +01:00
@ -22,2 +25,4 @@
override val hasMainPage = true
// check if id is imdb/tmdb cause stremio addons like torrentio works base on imdbId
private fun isImdborTmdb(url: String?): Boolean {
Blatzar (Migrated from github.com) commented 2023年03月16日 14:24:52 +01:00
Copy link

This shouldn't be hardcoded imo.
The extension relies on cloning, but this will override any custom stuff.

This shouldn't be hardcoded imo. The extension relies on cloning, but this will override any custom stuff.
pokerface-bad (Migrated from github.com) reviewed 2023年03月17日 02:46:12 +01:00
@ -22,2 +25,4 @@
override val hasMainPage = true
// check if id is imdb/tmdb cause stremio addons like torrentio works base on imdbId
private fun isImdborTmdb(url: String?): Boolean {
pokerface-bad (Migrated from github.com) commented 2023年03月17日 02:46:12 +01:00
Copy link

clone only replace mainUrl. it just some addons relies with other addons like torrentio that only provide /stream route so it only work inside catalog addons. i add this so that we can stream from catalog addons like tmdb.
it won't f up stream addons like iptv addons because i make a check first in code :

isMetaId = isImdborTmdb(res.id)

also in dataUrl in loadResponse

if(isMetaId) "${provider.streamUrl}/stream/${type}/${id}.json" else "${provider.mainUrl}/stream/${type}/${id}.json"

i can remove it but catalog addons just being a catalog like now
the better approach is to add setting layout so user can add source addons by themself (torrentio.. etc), but i need more time to learn that and this is as far as i can do for now 😄
detail => stremio-addon-sdk

clone only replace mainUrl. it just some addons relies with other addons like torrentio that only provide /stream route so it only work inside catalog addons. i add this so that we can stream from catalog addons like [tmdb](https://stremio-tmdb-addon.vercel.app/). it won't f up stream addons like iptv addons because i make a check first in code : ```kt isMetaId = isImdborTmdb(res.id) ``` also in dataUrl in loadResponse ```kt if(isMetaId) "${provider.streamUrl}/stream/${type}/${id}.json" else "${provider.mainUrl}/stream/${type}/${id}.json" ``` i can remove it but catalog addons just being a catalog like now the better approach is to add setting layout so user can add source addons by themself (torrentio.. etc), but i need more time to learn that and this is as far as i can do for now 😄 detail => [stremio-addon-sdk](https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/README.md)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin pokerface-bad/stremio:pokerface-bad/stremio
git switch pokerface-bad/stremio

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff pokerface-bad/stremio
git switch pokerface-bad/stremio
git rebase master
git switch master
git merge --ff-only pokerface-bad/stremio
git switch pokerface-bad/stremio
git rebase master
git switch master
git merge --no-ff pokerface-bad/stremio
git switch master
git merge --squash pokerface-bad/stremio
git switch master
git merge --ff-only pokerface-bad/stremio
git switch master
git merge pokerface-bad/stremio
git push origin master
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cloudstream/cloudstream-extensions!43
Reference in a new issue
cloudstream/cloudstream-extensions
No description provided.
Delete branch "pokerface-bad/stremio"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?