You are here

HOW TO REMOVE CHANNEL ID TAGS (icon src & url)

4 posts / 0 new
Last post
Tehra
Offline
Donator
Joined: 8 years
Last seen: 3 days
HOW TO REMOVE CHANNEL ID TAGS (icon src & url)

IS THERE ANY WAY TO REMOVE THESE TAGS AUTOMATICALLY?

<icon src="https://www.montecable.com/img/senales/406-tvciudad.png" />
<url>http://www.montecable.com</url>

ACTUALLY IN MY PROGRAMMING GUIDE THESE LABELS DO NOT USE ME AND WHEN I MAKE MODIFICATIONS IN MY GUIDES, FOR EXAMPLE, WHEN I ADD A NEW CHANNEL, I USUALLY ADD THE ID OF THE NEW CHANNEL MANUALLY TO ADD IT WITHOUT THESE LABELS.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

try with rex <icon></icon>

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 37 sec

thats wont work as rex only works with elements within the <programme </programme> tags.
he wants to remove the icon and url tags from the <channel </channel> sections.

you will have to use a external program like sed,ect to remove those.
do some searching.

example
sed -i "/<url/d" guide.xml
this will remove the <url tag

sed -i "/<icon/d" guide.xml
will remove the icon tag but your going to loose the showicon along with the channel logo as they both use <icon

Tehra
Offline
Donator
Joined: 8 years
Last seen: 3 days

Thank you so much, Blackbear's solution worked for me! Thanks :)

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