Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1284

Help: Rainmeter Skins • Re: Problem with YouTube Subs Counter, Part2

$
0
0
Image
Screenshot 2025-04-17 222010.png

Code:

[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1[YoutubeChannel]Measure=WebParserURL=https://www.youtube.com/@BBCNews;URL=file://#CURRENTPATH#WebParserDump.txtUserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36Flags=ForceReload | NoCookiesRegExp=(?siU).*?"contentMetadataViewModel":(?:.*"metadataParts"){2}.*"text":.*"content":.*"(.*)".*"text":.*"content":.*"(.*)"UpdateRate=1800FinishAction=[!UpdateMeter Result][!Redraw]Debug=2[SubsCount]Measure=WebParserURL=[YouTubeChannel]StringIndex=1[VideoCount]Measure=WebParserURL=[YoutubeChannel]StringIndex=2[Result]Meter=StringStringAlign=LeftY=0X=0SolidColor=0,0,0,255FontColor=255,255,255,255FontSize=37AntiAlias=1MeasureName=SubsCountMeasureName2=VideoCountText=Subs Count: %1#CRLF#Video Count: %2
Thanks [Yincognito], that works perfectly, the channel details are also retrieved correctly for the other YouTube channels. Perfect, thanks. :bow: :rosegift: :givelove: :cheers:

But I have a small last question. How can I append the RegExp of YT channel cover to your RegExp. So that I have a RegExp with 3 String Indexes. :???:

This is your RexExp:
RegExp=(?siU).*?"contentMetadataViewModel":(?:.*"metadataParts"){2}.*"text":.*"content":.*"(.*)".*"text":.*"content":.*"(.*)"

How can I append this RexExp to yours?
RegExp=(?siU)<meta property="og:image" content="(.*)"

Statistics: Posted by Rooky_89 — 35 minutes ago



Viewing all articles
Browse latest Browse all 1284

Trending Articles