You are here

nos.pt.ini Show images

14 posts / 0 new
Last post
SocksKodi
Offline
Joined: 8 years
Last seen: 8 years
nos.pt.ini Show images

Is it possible to get the show images from this website. http://www.nos.pt/particulares/televisao/guia-tv/Pages/default.aspx
Thx

SocksKodi
Offline
Joined: 8 years
Last seen: 8 years

It no longer says forbidden 403 in my browser tho. 

SocksKodi
Offline
Joined: 8 years
Last seen: 8 years

Going to test it out. Thx!

SocksKodi
Offline
Joined: 8 years
Last seen: 8 years

This is weird. If I open the image url directly from the website it's all good but as soon as I copy the url it says forbidden...

SocksKodi
Offline
Joined: 8 years
Last seen: 8 years

And if I have the image open in my browser, it no longer says 403...

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years
Blackbear199 wrote:

it still does for me but if you want to add them and see if it works...

for channel logo add the index_urlchannelogo line here..

index_variable_element.scrub {single(scope=datelogo)|<div id="channel-logo">|alt='|'|</div>}
*
index_urlchannellogo {url|http|<div id="channel-logo">|src='|'|</div>}
*
index_showsplit.scrub {multi(include="<span class=\"duration\">")|<div id="programs-container">|<span style="height:|</li>|<div class="clearfix">}

for program images at the very bottom before the channels.xml creation sectionbefore the last end_scope add these 2 showicon lines..

showicon.scrub {regex||\$_(\d+_resized_\d+x\d+.jpg)_#||}
showicon.modify {addstart(not "")|http://images.nos.pt/}
end_scope
*
**  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _
**      #####  CHANNEL FILE CREATION (only to create the xxx-channel.xml file)

 

Hi,

On channels.xml creation I see lines comment....

Quote:

*url_index {url|http://www.nos.pt/particulares/televisao/guia-tv/Pages/default.aspx}
*index_site_channel.scrub {multi|<ul id="channels-list-slider">|<img src='//images.nos.pt/EPGChannelImages/|.png|</ul>}
*index_site_id.scrub{multi|<ul id="channels-list-slider">|channel.aspx?channel=|'|</ul>}

Can you please see if this is ok?

One more time... thanks

 

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years
Blackbear199 wrote:

 

whats ok?

thats for channels.xml creation.dont touch that or you will not be able to create one.its stays disabled(* at beginning of line).

you only enable it to create a  new channels.xml when they change the lineup.

 

 

Ah ok... They change it...

I will test and upload new one... OK?

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years
Blackbear199 wrote:

 

whats ok?

thats for channels.xml creation.dont touch that or you will not be able to create one.its stays disabled(* at beginning of line).

you only enable it to create a  new channels.xml when they change the lineup.

 

 

Ah ok... They change it...

I will test and upload new one... OK?

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years

I do some test yesterday and urlchannellogo is working ok.

There is some change on grab info from programs, I will take a closer look on the weekend and report...

 

bubs
Offline
Has donated long time ago
Joined: 8 years
Last seen: 6 years

Hi,

I try the changes, the xml grab the link for the images but nether on browser nether on kodi the images show.

Another thing, It will be good if the the title doesn't strip after " - " because kodi not show sub-title, so all info like "champions league - TEAM A vs TEAM B" shows only "champions league"
The info from Season and episode are not showing correctly on kodi, the info is prensent in xml but maybe the format is incorrect.

thx

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years

I need a help here, because pictures of shows don't apeer I' would like something like this:

Original:

<icon src="http://webgrabplus.com/%3Ca%20href%3D"http://imaXX.nos.pt/266945_resized_352x198.jpg">http://imaXX.nos.pt/266945_resized_352x198.jpg" />

To:

<icon src="http://webgrabplus.com/storage/.kodi/epg_icons/AMD/266945_resized_352x198.jpg" />

Here AMD is channel name...

I try:

showicon.modify {replace(debug)('index_title' "http://imaXXX.nos.pt/")|/storage/.kodi/epg_icons/|channel}

 

And log:

[  Debug ] Debugging information SiteIni

[  Debug ] Element:  SHOWICON

[  Debug ] Modify

[  Debug ]      command & arguments : replace(debug)('index_title' "http://imaXXX.nos.pt/")

[  Debug ]      Expression-1            : /storage/.kodi/epg_icons/

[  Debug ]      Expression-2            : channel

[  Debug ]      Element value before operation:

[  Debug ] http://imaXXX.nos.pt/611236_resized_352x198.jpg

[  Debug ]      Element value after operation:

[  Debug ] http://imXXX.nos.pt/611236_resized_352x198.jpg

:( Can't fix this..

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years

Done..

Sorry...

Attachments: 
myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years
Blackbear199 wrote:

ok,so u want to host the show icons on you local machine.

first the showicon expects a http link,so if you have a server running put them in a folder in the html folder(like epg_icons)

or have you tried it with a local path and it worked?

so you want to change this(i change it to hxxp to it doesnt get messed up)..
<icon src="hxxp://images.nos.pt/611236_resized_352x198.jpg" />

to

<icon s r c="/storage/.kodi/epg_icons/AMD/611236_resized_352x198.jpg" />

i added space to s r c so it doesnt get messed up/

but as i said above it need to be a http so maybe..

<icon src="hxxp://127.0.0.1/epg_icons/AMD/611236_resized_352x198.jpg" />

so on you server in the html folder you would add a folder named epg_icons with a subfolder named AMD and inside that the actual icons.

the actual replace is simple,you dont need to compare the index_title as your replaceing generic information thats not specific to and show.

hxxp://images.nos.pt is the same for every show icon.

showicon.modify {replace(not "")|hxxp://images.nos.pt|hxxp://127.0.0.1/epg_icons/AMD}

now if it works using the local path..

showicon.modify {replace(not "")|hxxp://images.nos.pt|/storage/.kodi/epg_icons/AMD}

dont forget i changed h t t p to hxxp

the not "" is just a check to see if showicon is empty(has no value).if it's empty it doesnt even try to replace anything.

 

Yeap that's it...

But I need to add at end the channel name (as string)...

Can I use:

Quote:

showicon.modify {replace(not "")|hxxp://images.nos.pt|hxxp://127.0.0.1/epg_icons/|channel|/}

I Try and result is:

Quote:
<icon s r c="/611236_resized_352x198.jpg" />

and not:

Quote:
<icon s r c="<hxxp://127.0.0.1/epg_icons/AMCHD/611236_resized_352x198.jpg" />

I put "string" channel, but I think xmltv id is best, what you think?

Debug:

Quote:

[  Debug ] Element:  SHOWICON
[  Debug ] Modify
[  Debug ]      command & arguments : replace(debug)(not "")
[  Debug ]      Expression-1            : hxxp://images.nos.pt
[  Debug ]      Element value before operation:
[  Debug ] hxxp://images.nos.pt/611236_resized_352x198.jpg
[  Debug ]      Element value after operation:
[  Debug ] /611236_resized_352x198.jpg
[  Debug ] Debugging information SiteIni
[  Debug ] Element:  SHOWICON

:(

Edit...

myraspxbmc
Offline
Joined: 8 years
Last seen: 5 years

Done :) 

Like always a big thank's...

I just edit your's, :) I will use like this:

temp_5.modify {set|'config_xmltv_id'}

showicon.modify {replace(not "")|hxxp://images.nos.pt/|hxxp://IP/epg_icons/'temp_5'/}

 

 

Output:

<icon s r c="hxxp://IP/epg_icons/AMCHD/611236_resized_352x198.jpg" />

 

I love learning with your help....

edit:

Later I will test and report...

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