list-card icon indicating copy to clipboard operation
list-card copied to clipboard

Subfield. multidimensional

Open joeydaal opened this issue 3 years ago • 5 comments

Is there a way to select the value? I want the image value as showen below

entries:

  • title: 'GGD Utrecht: Derde van besmette Verknipt-bezoekers uit regio had virus al' title_detail: type: text/plain language: null base: https://www.nu.nl/rss/Algemeen value: >- GGD Utrecht: Derde van besmette Verknipt-bezoekers uit regio had virus al links:
    • rel: alternate type: text/html href: >- https://www.nu.nl/muziek/6148408/ggd-utrecht-derde-van-besmette-verknipt-bezoekers-uit-regio-had-virus-al.html
    • length: '0' type: image/jpeg href: >- https://media.nu.nl/m/herxmqdaehck_sqr256.jpg/ggd-utrecht-derde-van-besmette-verknipt-bezoekers-uit-regio-had-virus-al.jpg rel: enclosure

joeydaal avatar Jul 29 '21 09:07 joeydaal

Looking for the exact same answer.

rpitera avatar Nov 16 '21 15:11 rpitera

It does not sound possible according to the code but I'm not a js developer. For this it would require the use of something similar to jsonpath, xpath but for objects (??), this way we could select any field inside a nested array of object with the following syntax (for @joeydaal use-case): $.links[type="image/jpeg"].url.

arthurgustin avatar Dec 27 '21 09:12 arthurgustin

I also would love this!

deam0n avatar Jan 25 '22 01:01 deam0n

See #43 for an solution (made by deam0n)

Dynamix72 avatar Apr 06 '22 14:04 Dynamix72

@Dynamix72 That solution seems to only work that very particular scenario, where the image link is under the href object instead of the hard-coded url object. It wouldn't work for any subfields.

I can see how the feature can be added, but it's significant work and I will look into that later.

Madelena avatar Apr 29 '22 05:04 Madelena