travisjupp / reddit-client

Reddit client
2 stars 0 forks source link

Media crashes page "r/LiveStreamfail" #16

Closed travisjupp closed 1 month ago

travisjupp commented 1 month ago

Crashes on mobile, possibly desktop version as well.

travisjupp commented 1 month ago

Errors:

Use .data.children[].data.preview.images to load a preview image that links/opens a modal for the actual video source

https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?width=640&crop=smart&auto=webp&s=9de1ff03fdd6cc9633997a8462695adbaccdfc8e

Use .data.children[].data.url for the modal source

reddits video thumbnail:

<a target="_blank" href="https://clips.twitch.tv/OddKindStorkDancingBanana-AX6xy-NdNGJTagH_" rel="nofollow noopener ugc" aria-label="Big streamers might be taking money from Saudi Arabia without disclosing it">

<img alt="" role="presentation" class="absolute top-1/2 -translate-y-1/2 left-0 w-full opacity-30 object-cover scale-[1.2] post-background-image-filter" loading="lazy" fetchpriority="auto" src="https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?width=640&amp;crop=smart&amp;auto=webp&amp;s=9de1ff03fdd6cc9633997a8462695adbaccdfc8e" srcset="https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?width=320&amp;crop=smart&amp;auto=webp&amp;s=57903c57f7c896f73be4ecb6747a1306f431431b 320w, https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?width=640&amp;crop=smart&amp;auto=webp&amp;s=9de1ff03fdd6cc9633997a8462695adbaccdfc8e 640w, https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?width=1080&amp;crop=smart&amp;auto=webp&amp;s=5c0a418804702a4fc2bafded1bf76380a276d40b 1080w, https://external-preview.redd.it/big-streamers-might-be-taking-money-from-saudi-arabia-v0-8Ejy0QTu936rdCWLBWG-kfs4Zpw4CWP8cJIugxU-VtQ.jpg?auto=webp&amp;s=60b9e59105fafd2dcb7d8b12bdcdfdb14585b8cc 1920w" sizes="(min-width: 1415px) 750px, (min-width: 768px) 50vw, 100vw">

</a>