You are here

nos.pt changed site

25 posts / 0 new
Last post
extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks
nos.pt changed site

Hello masters can someone update nos.pt ini? Nos made changes on site.

https://nostv.pt/guia/139

Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

try this.
they are using a apikey so if it starts changing(i dont think it will) it will stop working.
no channel logo's or show icons also for the same reason,ur image needs a header with the apikey sent or it dont load.

edit:files moved to post below

extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks

Thanks @Blackbear199. There is some way to decript title info only? I want to modify some titles. Thanks again

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

download files again,its decrypted

extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks

You are a LEGEND :)
The ini works perfect but not the season (T) episode (Ep) im getting this:
[Warning ] No episode-num matching
[Warning ] episode-num unchanged: 5
[Warning ] No episode-num matching
[Warning ] episode-num unchanged: 6
[Warning ] No episode-num matching
[Warning ] episode-num unchanged: 6

After check the .xml i have episode info but is wrong.
Thanks

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

has to be some shows with season number only.
replace the episode pattern= with this.
pattern="S'S1'E'E1'""S'S1'""E'E1'"

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

oops,thjats not it.
i forgot a line to add E to the episode info so its not getting a pattern match.
files updated above.

extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks

Works great bro. Thank you

extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks

Blackbear199 in some channels for example bloomberg i get this:
[Error ] Unable to update channel BLOOMBERG
[Critical] Generic syntax exception:
[Critical] message:
[Error ] Current culture: en-GB
[Error ] time parsing error : String was not recognized as a valid DateTime.
[Error ] nextstartdatetime time scrubbed :
[Error ] computer date/time format: 01/04/2023 13:56:52
[ Info ] Existing guide data restored!

What cause this?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

sometimes they use the | in the data,webgrab uses this internally to separate shows so we have to deal with it or it breaks the data and causes the error you see.

webgrab converts these internally to !??!
to fix it we just replac them with another character with no special meaning to webgrab.
see the index_showsplit.modify line in the ini...
files updated above.

extream87
Offline
Donator
Joined: 8 years
Last seen: 2 weeks

Pufff works great... How can i say thank you?

kevev
Offline
Donator
Joined: 4 years
Last seen: 1 week

Seems to be failing again.

Error: No shows in indexpage!

rudigualter
Offline
rudigualter's picture
Donator
Joined: 2 years
Last seen: 11 months

Can someone help or share a line to add to the ini file in order to get the season and episode number? At the moment is only grabbing a number but i checked the guide from nos, and they actualy give "T1Ep113" is there a way to add it correctly on the guide or add it to the title or descripton?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

new site.

@rudigualter

make the following changes
***Note the existing lines to add a * to the beginning to disable them(or delete them).add the included ones.

*index_episode.scrub {regex(pattern="S'S1'E'E1'""S'S1'""E'E1'")||"Episode":([1-9]\d*)||}
index_episode.scrub {regex||"Episode":([1-9]\d*)||}

*index_episode.modify {addstart(not "")|E}
*index_episode.modify {addstart('index_temp_1' not "")|S'index_temp_1'}
index_episode.modify {addstart(not "")|Ep}
index_episode.modify {addstart('index_temp_1' not "")|T'index_temp_1'}

Attachments: 
rudigualter
Offline
rudigualter's picture
Donator
Joined: 2 years
Last seen: 11 months

Thank you @Blackbear199, but it seems something is wrong:

the json response have:

"Title": "Danger Force",
"SubTitle": "Teste De Amigos",
"RatingDisplay": "M12",
"GenreDisplay": "Séries de Imagem Real",
"SeriesId": "129141",
"ImdbRating": "4.4",
"Description": "Sem que saibam, o Capitão Man prepara uma série de testes para a Força Perigo, para descobrir se pode confiar neles. Contudo, a situação descontrola-se e é a equipa que tem de confiar nele.",
"ReleaseYear": "2020",
"Rating": 80,
"Season": 1,
"Episode": 115,
"Duration": 21,
"ProgramId": 2891918,
"AggregatorId": 2729656,
"IsNPVR": true,
"IsStartOver": true

As you can see it has the season flag, but when I try to srub the season, i've tried this 3 ways

*index_temp_1.scrub {regex||"Season":([1-9]\d*)||}
*index_temp_1.scrub {single|"Season":(.*?)}
*index_temp_1.scrub {single|"Season":([1-9]\d*)}

then try to added it to episode number, the season never shows

index_episode.modify {addstart(not "")|E}
index_episode.modify {addstart('index_temp_1' not "")|S'index_temp_1'}

I even added it to the subtitle to check if it appears:
index_subtitle.modify {addstart('index_episode' not "")|E'index_episode' - '}
index_subtitle.modify {addstart('index_temp_1' not "")|S'index_temp_1'}

But no luck, it seams is not getting it, for some reason

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

what channel?

rudigualter
Offline
rudigualter's picture
Donator
Joined: 2 years
Last seen: 11 months

You can use id-94 is nickelodeon

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

fixed in files above or just change.
index_temp_1.scrub {single|"Season":([1-9]\d*)}
to
index_temp_1.scrub {regex||"Season":([1-9]\d*)||}

problem..u cannot use a regex expression with separator string scrub method.lol
newbie mistake.

rudigualter
Offline
rudigualter's picture
Donator
Joined: 2 years
Last seen: 11 months

Thank you very much @Blackbear199

Always learning, and sorry for the inconvinience.
It works now.

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 18 hours

*index_temp_1.scrub {regex||"Season":([1-9]\d*)||} ok
*index_temp_1.scrub {single|"Season":(.*?)} single(with separator) can't use regex (regex needs regex||xxxxx(argument to scrub)||}
*index_temp_1.scrub {single|"Season":([1-9]\d*)} same as above.
you could have done:
index_temp_1.scrub {single|"Season":||"|"} but it would also catch zero's (which could be eliminated by index_temp_1.modify {clear("0")} but obviously you add another action so regex is the best in this case as with one command scrub only digit starting with 1-9 + any other number.
Note:
If the siteini contains (most case for episode) index_temp_1.scrub {regex||"Episode":([1-9]*)||} which will grab also episode series like 9/10 (start number not zero followed by anything else) then you elaborate properly the episode.

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

Hi Guys,

did you able to fix the nos.pt ini file?

thank you

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

Duplicated you can delete it

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

use the nostv.pt ini.
nos.tv no longer has epg,it redirects to nostv.pt epg page.

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

Thank you Blackbear, I didn't notice the new file is already available to download.

It's possible for me decrypt the ini file and made some personal changes?

Thank you

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 5 hours

download it from post #14.
thats one is decrypted.

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