You are here

Rename logo url by id name

3 posts / 0 new
Last post
Tapiocapioca
Offline
Has donated long time ago
Joined: 8 years
Last seen: 5 years
Rename logo url by id name

I am trying to find one solution about the logos in my xml file because I can't dowload them from the provider website (SKY Italia).

The only one solution I found is publish the .png files on one my website and link it.

I need rename all files because the script I am using (guidatv.sky.it.ini) make links to the sky website, I found the way to change it but not the way to change the names of the files

So i have many links like:

hxxp://guidatv.sky.it/app/guidatv/images/epgimages/channels/home/6605_home.png

 After my job i have links like:

hxxp://www.mywebsite.com/logos/6605_home.png

Can someone suggest the way to rename the files with the name of the id? I want links like:

hxxp://www.mywebsite.com/logos/Italia_1.png

Is it possible do it?

 

Thank you!

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

also if you havnt already.

get the latest ini and channels.xml here...

the current one was broken(worked but chanel id's and names didnt match correctly).

http://www.webgrabplus.com/content/guidatvskyit-error

I think my problem is different, I am living in Indonesia, I think sky ban the acces to them address from the country where I am living. :(

I did what you suggest in your previous post, mi problem is rename the files, now I am not interest to download it, I prefer download the files by myself and upload on my website, what I want is rename the files link only, I don't want the ID of the website, want the display-name or the channel id about the name.

I found this kind of command.

http://webgrabplus.com/sites/default/files/download/documentation/Manual...

Section 4.5.3 Special elements (see APPENDIX E)

I i only replace

scope.range {(datelogo)|end}
index_urlchannellogo.modify  {addstart|'config_site_id'}
index_urlchannellogo.modify {substring(type=regex)|##icon_file=([^\#]*)}
index_urlchannellogo.modify {addstart(not=="")|hxxp://guidatv.sky.it/app/guidatv/images/epgimages/channels/home/}
end_scope

with

index_urlchannellogo.modify {addstart|hxxp://www.mywebsite.com/'config_display_name'.png}

Will I have links like??? I try :)

hxxp://www.mywebsite.com/rai uno.png
hxxp://www.mywebsite.com/rai due
.png

..

cvxcvx
Offline
Donator
Joined: 8 years
Last seen: 3 weeks

HI. Am have chennel witch difrent name

 

    <channel update="i" site="dummy" site_id="xx" xmltv_id="13 Ulica HD">13 Ulica HD</channel>
    
   <channel update="i" site="dummy" site_id="xx" xmltv_id="13 Ulica HD PL">13 Ulica HD PL</channel>

 

And how to configure to show this same adres from logo?

  <channel id="13 Ulica HD">
    <display-name lang="pl">13 Ulica HD</display-name>
    <icon src="http://d57e32cb.static.ziggozakelijk.nl/%3Ca%20href%3D"http://site.logo/13.png">http://site.logo/13.png" />
  </channel>
  <channel id="13 Ulica HD PL">
    <display-name lang="pl">13 Ulica HD PL</display-name>
    <icon src="http://d57e32cb.static.ziggozakelijk.nl/%3Ca%20href%3D"http://site.logo/13.png">http://site.logo/13.png" />
  </channel>

 

Am try add  logo_id="13"

<channel update="i" site="dummy" logo_id="13" site_id="xx" xmltv_id="13 Ulica HD">13 Ulica HD</channel>

But am have this error

[Error   ] WG.Common.InvalidConfigException: [Error   ] Channel element has invalid argume "logo_id"
   w WGconsole.Config..ctor(String ConfigurationFilePath)

 

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