You are here

Removing URL From Channel Lineup

3 posts / 0 new
Last post
jamesm147
Offline
Donator
Joined: 4 years
Last seen: 3 years
Removing URL From Channel Lineup

I am using REX to remove as much unnecessary data as possible. Is the url a needed part of the channel lineup??
I've tried using (url)(/url) to remove it, with no luck. Thanks for you time.

(channel id="retroplex.us")
(display-name lang="en")Retro Plex (USA)(/display-name)
(icon src="http://213.126.50.203/icon" /)
(url)http://www.tvpassport.com(/url)
(/channel)

jamesm147
Offline
Donator
Joined: 4 years
Last seen: 3 years

Sed command below removes the URLs from the xml guides.

sed -i '/<url>/,/ANYCHAR<\/url>/d' /var/www/guide.xml

jamesm147
Offline
Donator
Joined: 4 years
Last seen: 3 years

This method replaces the url with your own.

xmlstarlet ed -L -u "//channel/url" -v "http://your-address" guide.xml

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl