consumet / consumet.ts

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
https://consumet.org/extensions/list/
GNU General Public License v3.0
384 stars 208 forks source link

bugfix: extract url source at flixhq #478

Closed dhelbegor closed 4 months ago

dhelbegor commented 4 months ago

What kind of change does this PR introduce? Solved a bug when trying to extract source url at flixHQ.

Did you add tests for your changes? No, bug the tests related to the functionality is working now.

If relevant, did you update the documentation? No

Summary Closes #569

Other information

fsmdeveloper commented 4 months ago

Thank you, brother! I am checking it.

dhelbegor commented 4 months ago

Thank you, brother! I am checking it.

You are welcome. Please, let me know if it works correctly for you too :D.

fsmdeveloper commented 4 months ago

**YES BROTHER!!! 😍 It's working properly! thank you so much!! ❤️❤️

fsmdeveloper commented 4 months ago

movie/watch-avatar-19690

Bro, is there any way to retrieve TMDB ID or IMDb ID using the media ID? "19690"

ClayArsenio26 commented 4 months ago

movie/watch-avatar-19690

Bro, is there any way to retrieve TMDB ID or IMDb ID using the media ID? "19690"

bro help me how to install the consumet.ts in server I have install npm but I cant run consumet.ts bro pleaseee. now I install only pull from docker from api.consumet.org please sahre to me step by step to run consumet.ts contact me on telegram t.me/kimjonghung

dhelbegor commented 4 months ago

movie/watch-avatar-19690

Bro, is there any way to retrieve TMDB ID or IMDb ID using the media ID? "19690"

hummm, I don't think so. they are diferent ID's. maybe u can use the movie/tv series title and retrieve the data from those sites.

you can try to bring the discussion to discord: https://discord.gg/dDmyZ9X3

fsmdeveloper commented 4 months ago

movie/watch-avatar-19690 Bro, is there any way to retrieve TMDB ID or IMDb ID using the media ID? "19690"

bro help me how to install the consumet.ts in server I have install npm but I

I cant run consumet.ts bro pleaseee. now I install only pull from docker from api.consumet.org please sahre to me step by step to run consumet.ts contact me on telegram t.me/kimjonghung

ClayArsenio26

You can't run consumet.ts. it's a standalone package. you should install it on you own nodejs project. or use api.consumet.org and deploy it directly on your vps or vercel

https://conmet.vercel.app/ use this

ClayArsenio26 commented 4 months ago

`> > > **movie/watch-avatar-19690`**

Bro, is there any way to retrieve TMDB ID or IMDb ID using the media ID? "19690"

bro help me how to install the consumet.ts in server I have install npm but I

I cant run consumet.ts bro pleaseee. now I install only pull from docker from api.consumet.org please sahre to me step by step to run consumet.ts contact me on telegram t.me/kimjonghung

ClayArsenio26

You can't run consumet.ts. it's a standalone package. you should install it on you own nodejs project. or use api.consumet.org and deploy it directly on your vps or vercel

https://conmet.vercel.app/ use this

now I have deploy into my vps, but still not working. please tell me bro how to work it? in my file .mjs import { MOVIES } from "@consumet/extensions"; `const goku = new MOVIES.FlixHQ();` `const args = process.argv.slice(2);` const idepisode = args[0]; `const mediainfo = args[1];` `goku.fetchEpisodeSources(idepisode, mediainfo).then(data => {` const jsonData = JSON.stringify(data); console.log(jsonData); }) ``

and in my file .php <?php header('Content-Type: application/json; charset=utf-8'); `$query1 = $_GET['idepisode'];` `$query2 = $_GET['mediainfo'];` $escapedQuery1 = escapeshellarg($query1); $escapedQuery2 = escapeshellarg($query2); `$output = shell_exec("/usr/bin/node goku_search.mjs $escapedQuery1 $escapedQuery2");` echo ($output); ``

`

fsmdeveloper commented 4 months ago

You need to build the consumet.ts (dist)

fork consumet.ts in your github account, then clone it on your desktop, then yarn install then yarn build "build": "rimraf dist && tsc -p tsconfig.json",

then use this fork version on your nodejs project,

add it in package.json

"dependencies": {
        "@consumet/extensions": "git+https://github.com/fsmdeveloper/consumet.ts.git#master",
}

you can use my fork version in your nodejs project.

then it will work. I've tested it!

ClayArsenio26 commented 4 months ago

image this is work well, but when I access from direct file php in browser its dont work, when execute on terminal its work well. can you help me bro ?

fsmdeveloper commented 4 months ago

image this is work well, but when I access from direct file php in browser its dont work, when execute on terminal its work well. can you help me bro ?

I can't help with PHP! I wouldn't say I like this language. Seek help from a PHP expert

ClayArsenio26 commented 4 months ago

**YES BROTHER!!! 😍 It's working properly! thank you so much!! ❤️❤️

can u share how run methods ur code like that from url with parameters??

fsmdeveloper commented 4 months ago

**YES BROTHER!!! 😍 It's working properly! thank you so much!! ❤️❤️

can u share how run methods ur code like that from url with parameters??

share your Whatsapp number, I'll help you.

ClayArsenio26 commented 4 months ago

**YES BROTHER!!! 😍 It's working properly! thank you so much!! ❤️❤️

can u share how run methods ur code like that from url with parameters??

share your Whatsapp number, I'll help you.

oke bro many big thank this is my whatsapp number wa.me/8846294762

gabinfinity commented 4 months ago

Is it still working? It doesnt works for me

fsmdeveloper commented 4 months ago

Other endpoints work well, but the /watch (Streaming links) endpoint is not working again

fsmdeveloper commented 4 months ago

dhelbegor brother can you check it?? it's the same issue again! 😒