You are here

Download ok, Rex formatting give error

14 posts / 0 new
Last post
masterke
Offline
Donator
Joined: 6 years
Last seen: 2 months
Download ok, Rex formatting give error

when I download my 270 channels the download is perfect, when I want to work with rex to make the xml file with the options I want in my file I get an error with the message "index was out of range" and it stops after this message.
so the file through rex is not been done.
what can give this message error ???
have somebody also have this error been seen and what have you do to fix this so the rex file works to get my xml file that I want.
if you need more info ask me please so we can get an solution.
greets
and Thanks for the help to have this again working on my ubuntu linux server.

the error:

Debug ] 79158 shows in 269 channels
[ Debug ] 0 updated shows
[ Debug ] 79158 new shows added
[ Info ]
[ Info ]
[ ] Job finished at 04/11/2024 02:21:17 done in 2h 28m 34s
[ Info ] Job (REX Version: 3.4.1) started at 04/11/2024 02:21:17
[ Info ] Starting REX Postprocess
[ Info ] 79158 shows to process ..
[Critical]
Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
[Critical]
at System.Collections.Generic.List`1.get_Item(Int32 index)
at  .–. . (String, String, List`1, String& , String& )
at  .–. . (String, Dictionary`2, Char, String[]& , String[]& )
at  .–. . (XmlNode,  ,  )
at  .–. ()
at  .–..ctor(String[])
at  .—. (String[])
[Critical] Unhandled Exception
[Critical] Execution stopped

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 3 hours

upload your rex.config.xml

masterke
Offline
Donator
Joined: 6 years
Last seen: 2 months

i am sick home for a couple days and have yesterday with some search on the forum a couple of hours test and changed the rex file and I have it working,
possible did I have a fault in my rex file that gives me the error,
with the right line like I found in the MDB topic on this forum I have now a working grab and rex config and perfect result,
I'm gonna change it a bit so I get for series also the season and episode numbers in my output text so I can see it in my dreambox receiver in the EPG what episode it is.
so it is solved the problem, I had to have a beter look in the topics to understand how the new rex file works.

datalife
Offline
Donator
Joined: 3 years
Last seen: 1 month

I have upload to the last version 5.3 and I have the same error in rex postprocess.
the incriminate error is this

{'description'}\n{\n• Anno di produzione: 'productiondate'}{\n• Regia: 'director(, )'}{\n• Attori: 'actor(, )[max_elements=3]'}

If I reduce the request in only two elements (indifferent productiondate, director or actor) all is OK,

{'description'}\n{\n• Anno di produzione: 'productiondate'}

when I insert the third element, the problem returns

where am I wrong?

Thnks

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 11 hours
datalife
Offline
Donator
Joined: 3 years
Last seen: 1 month

Thanks now is ok, but when there are 3 actors in the end of the list there are strange symbols.

Example with 3 actors
• Attori: Mark Harmon, Sasha Alexander, Michael Weatherly<!?

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 11 hours

can you post your rex.config line ?

datalife
Offline
Donator
Joined: 3 years
Last seen: 1 month

This is my rex.config file, the line is

{'description()'}\n{\n• Anno di produzione: 'productiondate()'}{\n• Regia: 'director(, )'}{\n• Attori: 'actor(, )[max_elements=3]'}

Attachments: 
WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 12 years
Last seen: 11 hours
Is the support helpful?
support us

Hi .. this is a bug in the REX code ... I have fixed it . Install the evaluation version 5.3.0.1 .. https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/eval...

Small remark .. the first \n between } { , does nothing . In fact, text between sections is not allowed, but \n is considered a white space and doesnot create a warning .

datalife
Offline
Donator
Joined: 3 years
Last seen: 1 month

Thanks, perfect.
There are still some bugs to fix, but now the "max elemnet" code is ok.

loznic89
Offline
Donator
Joined: 5 years
Last seen: 2 days
mat8861 wrote:

Please check http://www.webgrabplus.com/comment/37222#comment-37222

Thanks i had the same error and resolved with this.

But I have a strange behavior with the attribute "- lang" in element-names "description an title"

I am Using this code in rex to create 2 languages ​​and then differentiate the 2 formats in tvheadend, file attached

But in guide.xml it creates double the same language and also weird things like:

"desc lang="eses">................"
"desc lang="esen">................"

Any tips to get this working like in older versions of rex? I attach the files I am using

Thanks and Regards.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 3 hours

on the downloads page get the documented configuration files.
it explains wg config,mdb and rex in debth.
whats happening is for example
{'category(, )'. }{'episode()' }{'starrating()' }{('writer()') }{'rating()' }{('productiondate()')}{\n 'description()'}{\n Actores: 'actor(, )'}{\n Director: 'director(, )'.}

in the above category and description have lang="xx" attributes.
when u put lang="es" the category and description attributes are added to it..
lang="eseses"

you need to use force_targetattribute

- force_targetattribute : <force_targetattribute>true</force_targetattribute> .. default false
When true, it will add the target attribute value to the result, also when the expanded elements have other attribute values.
If the attribute values are added to the element content with /a or /a+ and a target attribute is specified it will
be added despite any of the force_targetattribute values

this forces lang="es" or lang="en" or whatever you specify only.

edit:
sorry uploaded source.xml instead of rex result.

Attachments: 
loznic89
Offline
Donator
Joined: 5 years
Last seen: 2 days

I'm sorry, I was looking for information on the wiki but I didn't find anything. I'm not very good at English.

Thank you very much, now it works fine by adding it in rex.xml - force_targetattribute

Regards

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 3 hours
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