Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Question how to Restart vod and episodes with curl ?

code64

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
127
Reaction score
299
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 .
 

joelonlyne

Extended Member
Ext. Member
Joined
May 29, 2020
Messages
137
Reaction score
630
Points
104
Location
Usa
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.
 

code64

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
127
Reaction score
299
Points
74
Location
Algiers
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock