koillection icon indicating copy to clipboard operation
koillection copied to clipboard

Scraper does not respect long-text field length

Open thomas-333 opened this issue 2 years ago • 2 comments

Long-text fields are restricted to 255 characters. However when using the scraper more than 255 characters are imported, although you cannot then edit the field without Koillection complaining.

To re-create:

Use the following scrapper settings:

Box Text #//*[@id='info']/table[1]/tbody[1]/tr[13]/td[2]#

Then run on https://vgcollect.com/item/49758

Over 255 characters are successfully imported and saved. However if you then try and edit the field you can't as Koillection complains it is over 255 characters.

Personally I need more than 255 characters so would prefer the long text limit to be increased. However I'm unaware if this will cause problems elsewhere. Failing that perhaps a new field type could be created with a far higher character limit?

As a second point, which may well be best under discussions rather than here, it would be good if markdown could be used in a text field so text can be bolded, line breaks used etc.

thomas-333 avatar Oct 02 '23 10:10 thomas-333

Ok, I'm going to remove the characters limitation, it shouldn't have any impact. I will also add the textarea as a field type for scrappers, line breaks should work with this type.

benjaminjonard avatar Oct 02 '23 12:10 benjaminjonard

Thanks. Sounds good to me.

thomas-333 avatar Oct 02 '23 12:10 thomas-333