Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Question how to Restart vod and episodes with curl ?

code64

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
142
Reaction score
279
Points
74
Location
Algiers
Hello all

my version xui is 21 official .

i'had transfert my series from server to another server i proceed like that :

1- Send all series and vod directory fom server1 to server2 with sshpass and scp
2- Change series and vod path with my own php mysql script ( small script )

after doing that episodes and movies are moved corectlly to server2 and path was changed by my script with no problem but the issue is that i have to reencode all episodes and movies by doing mass edit ( series & movies ) and this is not my need :)

i want to use xtream ui api and use this api in php loop and retreive all episoses id for exemple and restart them automaticly from php script with curl or with linux bash script i had try this api

"http://myseverxui:panelport/api.php?action=episode&sub=start&stream_id=episodeid&server_id=serverid"

and this one work only in same browser that xui panel is opened and i want to know if someone can help of course how to execute this command outside of my browser or in php or bash script

must i use cookies ? Or some api key ?

thank's a lot in advance .
 
Hello all

my version xui is 21 official .

i'had transfert my series from server to another server i proceed like that :

1- Send all series and vod directory fom server1 to server2 with sshpass and scp
2- Change series and vod path with my own php mysql script ( small script )

after doing that episodes and movies are moved corectlly to server2 and path was changed by my script with no problem but the issue is that i have to reencode all episodes and movies by doing mass edit ( series & movies ) and this is not my need :)

i want to use xtream ui api and use this api in php loop and retreive all episoses id for exemple and restart them automaticly from php script with curl or with linux bash script i had try this api

"http://myseverxui:panelport/api.php?action=episode&sub=start&stream_id=episodeid&server_id=serverid"

and this one work only in same browser that xui panel is opened and i want to know if someone can help of course how to execute this command outside of my browser or in php or bash script

must i use cookies ? Or some api key ?

thank's a lot in advance .

The api.php works due to you have a session still open in the same browser from the panel as soon as log out the api.php won't work.

My recomendación is make a copy and mod the api.php file with you requirements that you need and move to a public side to be executed with a security that only you know something like TOTP , secure link or whatever.
 
The api.php works due to you have a session still open in the same browser from the panel as soon as log out the api.php won't work.

My recomendación is make a copy and mod the api.php file with you requirements that you need and move to a public side to be executed with a security that only you know something like TOTP , secure link or whatever.


Thank's a lot joelonlyne yes it's good idea i will try it and give feedback.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top