You are here

Add logo url (icon) from my site

12 posts / 0 new
Last post
alexandarciric
Offline
Donator
Joined: 7 years
Last seen: 1 month
Add logo url (icon) from my site

Hello,

 

i need help to add channels logo, i have db logos in my server. Any code to add in ini file?

 

Tnx

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

it would be a mess to change ini to point to a channel logo, in particular for sites with multi channel. Best is to modify you guide.xml and add manually something like

  <channel id="BBC">
    <display-name lang="en">BBC</display-name>
    <icon src="http://webgrabplus.com/%3Ca%20href%3D"http://www.myepg.com/BBC.png">http://www.myepg.com/BBC.png"/>
  </channel>

Your display name must be the same of your config

alexandarciric
Offline
Donator
Joined: 7 years
Last seen: 1 month
mat8861 wrote:

it would be a mess to change ini to point to a channel logo, in particular for sites with multi channel. Best is to modify you guide.xml and add manually something like

  <channel id="BBC">
    <display-name lang="en">BBC</display-name>
    <icon src="http://webgrabplus.com/%3Ca%20href%3D"http://webgrabplus.com/%3Ca%20href%3D">http://webgrabplus.com/%3Ca%20href%3D"http://www.myepg.com/BBC.png">http://www.myepg.com/BBC.png"/>
  </channel>

Your display name must be the same of your config

 

Now is:

index_urlchannellogo {url(includeblock="<span>'index_variable_element'</span>")||<div class="program-id" >|src="|"|</div>}

 

i need logo from my domain www.domain.com/logo/name-off-channels.png

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

Whatever....you can change it in your guide.xml

Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years

I used also this solution, thank you Blackbear199!

Blackbear199 wrote:

index_urlchannellogo.modify {addstart|http://addy/to your server/GB/'config_site_id'.png}

'config_site_id' is the same value as site_id="xx" on your <channel line on your webgrab config.xml

thats why i say reanme your channel icon to this,make is simple to use it as a value

if the indexurlchannellogo element already exists you can usualyl just edit it to what i said above.

Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years
Blackbear199 wrote:

index_urlchannellogo.modify {addstart|http://addy/to your server/GB/'config_site_id'.png}

Is also possible replace some symbols making the url of logo? In this way I can't make many logos, they have inside the "config_site_id" symbols like : or ? and windows don't accept this kind of letters. :)

Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years

I attach the ini, but is like merge-xmltv.ini with some small modify.

The main trouble is: I have inside guide.xml  addreses like this:

www.mywebsite/logos/rai 1 hd.png

www.mywebsite/logos/rai 1 +1 hd.png

www.mywebsite/logos/canale 5 hd??.png

The name is the same of config_site_id, but till they are names of channels is ok, when become names of png I can't also  save them on my pc under windows, because reject the symbol ? by name of files. My server also don't like the spaces, I think prefer read %20 than one space. I hope is more clear now.

Blackbear199 wrote:

show me a ini that uses : or ? in the site_id="xx"

Attachments: 
Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years

No, probably I wasn't clear, webgrab and the ini are working perfectly, there is not any issue from webgrab. The trouble is about the next step.

I want know if is possible modify the ini to rewrite automatically some charecters like "?" or "/" about the name of the file.
I only tought probably is possible do it in a simple way, but I am not able to setup it! :D

 

Blackbear199 wrote:

u still didnt answer my question,a ini name plse.

also the illegal characters in the filenames has nothing to do with webgrab,its a operating system issue.

Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years

You can read my mind. This is a really great solution. Really thank you. I saw also curl support it, so I can rename all files in one second by unix shell. Fast and perfect.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

Like this : index_urlchannellogo.modify {addstart|http://epg-guide.com/logos/'config_site_id'.png}

Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years

No is not working, this make illegal characters, Blackbear199 already posted the solution.

mat8861 wrote:

Like this : index_urlchannellogo.modify {addstart|http://epg-guide.com/logos/'config_site_id'.png}

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

You didn't get my point  laugh

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