You are here

Removing URL From Channel Lineup

3 posts / 0 new
Last post
jamesm147
Offline
Donator
Joined: 5 years
Last seen: 3 months
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://www.webgrabplus.com/icon" /)
(url)http://www.tvpassport.com(/url)
(/channel)

jamesm147
Offline
Donator
Joined: 5 years
Last seen: 3 months

Sed command below removes the URLs from the xml guides.

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

jamesm147
Offline
Donator
Joined: 5 years
Last seen: 3 months

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