Script for changing tv channel logo path
Added by Stefan Preisinger over 10 years ago
Hello,
i moved my tvheadend from an openelec installation to a dedicated server.
my channels are configurated with a local icon like this:
{ "name": "Das Erste HD",
"icon": "file:///storage/.xbmc/userdata/channellogos/das_erste_hd.png",
"tags": [
12
],
"dvr_extra_time_pre": 0,
"dvr_extra_time_post": 0,
"channel_number": 1
}
how can i massively change the icon folder? Anyone got a script?
thanks for infos!
Replies (2)
RE: Script for changing tv channel logo path - Added by Prof Yaffle over 10 years ago
It's not a tvheadend issue, really - have a look at sed and awk, that's what you need. Shut down tvheadend, change to the right directory, search for the string \"icon\": \"file\/\/\/storage....\",
and replace it with \"icon\": \"file\/\/\/new_storage....\",
RE: Script for changing tv channel logo path - Added by Stefan Preisinger over 10 years ago
I have to say thanks for your tips.
With some testing i found a easy way to change the path, here is the result if anyone else searches for a solution:
sed -i 's:storage/.xbmc/userdata:home/hts/.hts/tvheadend:g' /home/hts/.hts/tvheadend/channels/*
-so long