Updates for Storytel.se

Hi, Storytel recently changed their code, so I had to modify my script.. I ran into trouble concerning genres.

My code looks like this right now:

# Genre
	OutputTo "Genre"
	FindLine "tag svelte-gcs0u0"
	FindInLine "click-tag"
	MoveChar 2
	SayUntil "</a>"
	MoveLine 1

# Genre 2
	if "</li><li class="
    	say "; "
		findinline "click-tag" 
		MoveChar 2
		SayUntil "</a>"
		OutputTo "Genre"
	else
		say ""
	endif
	MoveLine 1

It works great until there is a book without any genres. Can somebody help me with a functioning If/else command to solve this?

The code looks like this with many genres: (view-source:Dråpslaget - Ljudbok - Björn Hellberg - Storytel)

<div class="expander svelte-1mh0rbh  hasOverflow" style="--maxHeight: 700px;--initialHeight: 110px; --initialHeightMobile: 110px;--bgColor: #fff;"><ul class="tag-list svelte-gcs0u0"><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/11-Sverige" class="link svelte-gcs0u0" data-collectid="click-tag">Sverige</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/16-Underhaallande" class="link svelte-gcs0u0" data-collectid="click-tag">Underhållande</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/21-Vardagsliv" class="link svelte-gcs0u0" data-collectid="click-tag">Vardagsliv</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/25-Nutid" class="link svelte-gcs0u0" data-collectid="click-tag">Nutid</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/33-Spaennande" class="link svelte-gcs0u0" data-collectid="click-tag">Spännande</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/56-Sommar" class="link svelte-gcs0u0" data-collectid="click-tag">Sommar</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/75-Fartfylld" class="link svelte-gcs0u0" data-collectid="click-tag">Fartfylld</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/270-Vuxna" class="link svelte-gcs0u0" data-collectid="click-tag">Vuxna</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/419-Mord" class="link svelte-gcs0u0" data-collectid="click-tag">Mord</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/885-Boecker-paa-tv" class="link svelte-gcs0u0" data-collectid="click-tag">Böcker på tv</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/900-Kriminalroman" class="link svelte-gcs0u0" data-collectid="click-tag">Kriminalroman</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/903-Svenska-deckare" class="link svelte-gcs0u0" data-collectid="click-tag">Svenska deckare</a>
</li><li class="tag svelte-gcs0u0"><a href="/se/sv/tags/948-Isande-deckare" class="link svelte-gcs0u0" data-collectid="click-tag">Isande deckare</a>
</li></ul></div>

And without any gengres like this: (view-source:Födde: En dotter - Ljudbok & E-bok - Björn Hellberg - Storytel)

<section class="list-wrapper svelte-rvoizr"><h2 class="title svelte-rvoizr">Andra gillade också ...</h2>
<aside class="scroll-indicator svelte-rvoizr"><div class="scroll-bar svelte-rvoizr"></div></aside>
<ul class="list svelte-rvoizr"></ul>
</section></div>
<section class="banner bg-pink c-purple svelte-mu5w5h"><div class="image-container svelte-mu5w5h"><svg class="gfx-splash svelte-mu5w5h" width="261" height="259" viewBox="0 0 261 259" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M252.906 153.731C272.954 97.7257 250.803 56.3682 203.336 33.3311C181.395 22.6784 169.02 2.17763 136.369 0.187556C98.4362 -2.12445 81.1563 17.5081 63.2955 27.7072C36.7019 42.8767 17.899 50.8467 8.47308 67.7965C-7.68417 96.8477 12.549 118.246 3.86997 152.18C-4.80906 186.113 1.16083 207.619 21.2671 224.057C42.4863 241.401 69.485 241.402 98.4167 247.186C130.946 253.688 151.052 259 172.516 259C201.726 259 229.588 239.489 236.383 211.609C243.31 183.133 242.519 182.831 252.921 153.731" fill="#FFCCC2"></path></svg><svg class="gfx-logo-large svelte-mu5w5h" width="64" height="73" viewBox="0 0 63 73" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M63.5184 34.9393C66.2407 19.7263 57.1585 6.11591 42.9393 1.59791C17.6889 -6.42737 -0.203413 17.1854 0.00174628 40.9794C0.171398 60.2071 4.20753 72.9919 4.20753 73C4.02999 72.4282 8.97751 69.7786 9.54959 69.4645C11.4959 68.4589 13.5153 67.6081 15.5899 66.9196C19.847 65.4781 24.2698 64.564 28.6097 63.5452C42.2765 60.3601 56.9612 54.3482 62.1848 39.872C62.7685 38.2703 63.2146 36.6198 63.5184 34.9393Z" fill="#FE5C29"></path></svg><svg class="gfx-logo-small svelte-mu5w5h" width="47" height="39" viewBox="0 0 47 39" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M43.793 30.0584C49.1065 21.9747 47.1787 11.812 40.035 5.58376C27.3544 -5.47727 11.1911 3.58212 5.46416 17.3638C0.839816 28.4998 0.0478754 36.898 0.0488349 36.9014C0.0822735 36.5189 3.61041 36.2587 4.01621 36.2251C5.3917 36.1407 6.77163 36.1649 8.14361 36.2975C10.9683 36.5475 13.7501 37.1455 16.533 37.6685C25.2445 39.3131 35.2391 39.5848 41.8222 32.5675C42.549 31.7903 43.2084 30.9508 43.793 30.0584Z" fill="#FFCCC2"></path></svg>
 <div class="device-cover svelte-mu5w5h"><img src="https://static.storytel.net/images/se/ocG4CZKiaWIhHvRZ/image.png" alt="Lyssna och läs gratis i 14 dagar" class="svelte-mu5w5h">
<div class="coverImagePlacement svelte-mu5w5h"><img src="https://www.storytel.com/images/200x200/0000084688.jpg" alt="Födde: En dotter" class="svelte-mu5w5h rounded"></div></div></div>
<div class="info-container svelte-mu5w5h"><h2 class="svelte-mu5w5h">Lyssna och läs gratis i 14 dagar</h2>
<p class="info-subtitle svelte-mu5w5h">Få obegränsad tillgång till en oändlig värld av stories.</p>
<div class="bullets-container svelte-mu5w5h"><div class="bullets-container svelte-srx7ee orange-icons"><div class="flex-container align- justify- text-align-
    flex-container--custom svelte-9k61cu" style="\n    --marginBottomMobileUp: 0.8rem;\n    --marginTopMobileUp: 0rem;\n    --marginBottomTabletUp: 0.8rem;\n    --marginTopTabletUp: 0rem;\n    --marginBottomDesktopUp: 0.8rem;\n    --marginTopDesktopUp: 0rem;\n    "><div class="flex-container align- justify-center text-align- svelte-9k61cu"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="" role="img" aria-label="check" class="svelte-eclg0a    inlineEnd"><path d="M19.025 5.26L8.75 15.536 4.974 11.76a.469.469 0 00-.663 0l-1.104 1.105a.469.469 0 000 .663l5.211 5.212c.183.183.48.183.663 0L20.793 7.028a.469.469 0 000-.663L19.688 5.26a.469.469 0 00-.663 0z" /></svg>
</div>
<span class="bullet-text svelte-srx7ee compact">Obegränsad lyssning</span>
</div><div class="flex-container align- justify- text-align-

I really appreciate your help! :pray:

Did you see my storytel.com Web source, i think there is some lines that can help you. but i cannot test it right now.

Hi!

You are my inspiration, but they changed the code so i need to update it - to get it to work.
You seems to have a good understandning about the MP3-docs. Can you help me with a few tips?