If you mean based on your subscriptions, I personally didn't subscribe to any youtuber to be able to test how the corresponding webpage source of YouTube looks like, if the desired data is displayed on the page, if it can be retrieved from it, or on which regex pattern it is based. You'd need to provide some example, e.g. a screenshot, the contents of the webpage source (right click and View Page Source, in Chrome), etc. in order to have an accurate assessment of that...
It is currently October 18th, 2024, 9:16 am
Problem with YouTube Subs Counter
-
- Rainmeter Sage
- Posts: 8485
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Problem with YouTube Subs Counter
-
- Posts: 377
- Joined: December 28th, 2022, 9:30 pm
- Location: México
Re: Problem with YouTube Subs Counter
There's no part on youtube (that I know of) that says if a channel has uploaded a new video. Although what I think could work, is to parse the videos section of a channel, and extract the title of the latest video, then use a measure to compare it to the latest title each time it parsed it, and do something if that titile changed. Could work
I haven't inspected the site since i'm on my phone, but this is the page I'm talking about: https://m.youtube.com/@MrBeast/videos
It even displays the latest video's "date".
Edit.
Looks like "publishedTimeText":{"simpleText":"hace 7 días"} could help (mine is in Spanish tho, but it says "7 days ago.").
I haven't inspected the site since i'm on my phone, but this is the page I'm talking about: https://m.youtube.com/@MrBeast/videos
It even displays the latest video's "date".
Edit.
Looks like "publishedTimeText":{"simpleText":"hace 7 días"} could help (mine is in Spanish tho, but it says "7 days ago.").
-
- Posts: 69
- Joined: September 21st, 2024, 4:57 pm
- Location: Germany, in the stone cave
Re: Problem with YouTube Subs Counter
Hello,
i have an issue with the Grid of the icons. Tried to show a single icon of the Icon Grid, but it does not showing up. Tryed with [!ShowMeter YT1_ICO][!Redraw] or [!ShowMeter MeterShapes]. Nope, it will not work too. The question is now how can i display one icon from the Icon grid
i have an issue with the Grid of the icons. Tried to show a single icon of the Icon Grid, but it does not showing up. Tryed with [!ShowMeter YT1_ICO][!Redraw] or [!ShowMeter MeterShapes]. Nope, it will not work too. The question is now how can i display one icon from the Icon grid
Last edited by Rooky_89 on October 7th, 2024, 5:06 pm, edited 2 times in total.
-
- Rainmeter Sage
- Posts: 8485
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Problem with YouTube Subs Counter
I have no idea about your actual scenario, but on your posted code (to which I added some of my own variable values and some solid color / background mode in [Rainmeter] to be able to test it - feel free to use your own), if you hide the container via Hidden=1, no meter will be visible, since they're all masked to its non transparent (but hidden, as per your setting) pixels:
https://docs.rainmeter.net/manual/meters/general-options/container/
Instead, you should let the container visible and use Hidden=1 in the IconGroup_YT style used for those image meters, if by any chance you want them to initially be invisible. Then, your [!ShowMeter YT1_ICO][!Redraw] bangs will work (I added them to the [Rainmeter]'s OnRefreshAction simply because I had no visible meter to add them to, in this scenario):
Code: Select all
[Variables]
YT1_ICO=#@#1.png
YT2_ICO=#@#2.png
YT3_ICO=#@#3.png
YT4_ICO=#@#4.png
YT5_ICO=#@#5.png
IconSize=50
PosY=0
posx1=0
posx2=100
posx3=200
posx4=300
posx5=400
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
OnRefreshAction=[!ShowMeter YT1_ICO][!Redraw]
;==========================================================
; #GRID-ICONS #GRID-ICONS #GRID-ICONS #GRID-ICONS
;==========================================================
;
[MeterShapes]
Meter=Shape
Shape=Rectangle #posx1#,#PosY#,#IconSize#,#IconSize#,#IconSize# | Fill Color 255,255,255,255 | StrokeWidth 1 | Stroke Color 0,0,0,1
Shape2=Rectangle #posx2#,#PosY#,#IconSize#,#IconSize#,#IconSize# | Fill Color 255,255,255,255 | StrokeWidth 1 | Stroke Color 0,0,0,1
Shape3=Rectangle #posx3#,#PosY#,#IconSize#,#IconSize#,#IconSize# | Fill Color 255,255,255,255 | StrokeWidth 1 | Stroke Color 0,0,0,1
Shape4=Rectangle #posx4#,#PosY#,#IconSize#,#IconSize#,#IconSize# | Fill Color 255,255,255,255 | StrokeWidth 1 | Stroke Color 0,0,0,1
Shape5=Rectangle #posx5#,#PosY#,#IconSize#,#IconSize#,#IconSize# | Fill Color 255,255,255,255 | StrokeWidth 1 | Stroke Color 0,0,0,1
Hidden=0
[IconGroup_YT]
Container=MeterShapes
Group=Large
Hidden=1
H=#IconSize#
W=#IconSize#
DynamicVariables=1
[YT1_ICO]
Meter=Image
MeterStyle=IconGroup_YT
X=#posx1#
Y=#PosY#
ImageName=#YT1_ICO#
LeftMouseUpAction=!Execute [#YT1_URL#][!SetVariable YT1_Video [Calc_YT1]][!WriteKeyValue Variables YT1_Video [Calc_YT1]][!HideMeter Message_YT1][!Redraw]
[YT2_ICO]
Meter=Image
MeterStyle=IconGroup_YT
X=#posx2#
Y=#PosY#
ImageName=#YT2_ICO#
LeftMouseUpAction=!Execute [#YT2_URL#][!SetVariable YT2_Video [Calc_YT2]][!WriteKeyValue Variables YT2_Video [Calc_YT2]][!HideMeter Message_YT2][!Redraw]
[YT3_ICO]
Meter=Image
MeterStyle=IconGroup_YT
X=#posx3#
Y=#PosY#
ImageName=#YT3_ICO#
LeftMouseUpAction=!Execute [#YT3_URL#][!SetVariable YT3_Video [Calc_YT3]][!WriteKeyValue Variables YT3_Video [Calc_YT3]][!HideMeter Message_YT3][!Redraw]
[YT4_ICO]
Meter=Image
MeterStyle=IconGroup_YT
X=#posx4#
Y=#PosY#
ImageName=#YT4_ICO#
LeftMouseUpAction=!Execute [#YT4_URL#][!SetVariable YT4_Video [Calc_YT4]][!WriteKeyValue Variables YT4_Video [Calc_YT4]][!HideMeter Message_YT4][!Redraw]
[YT5_ICO]
Meter=Image
MeterStyle=IconGroup_YT
X=#posx5#
Y=#PosY#
ImageName=#YT5_ICO#
LeftMouseUpAction=!Execute [#YT5_URL#][!SetVariable YT5_Video [Calc_YT5]][!WriteKeyValue Variables YT5_Video [Calc_YT5]][!HideMeter Message_YT5][!Redraw]
P.S. Also, you could rename IconGroup_YT to IconStyle_YT, to avoid confusion, since it's technically a meter style section and not a group option (the group is called Large here, but it can obviously be renamed too, for better clarity).
-
- Posts: 69
- Joined: September 21st, 2024, 4:57 pm
- Location: Germany, in the stone cave
Re: Problem with YouTube Subs Counter
Thank you for your Time, description and Work. It helps me a lot. I Inserted in the [MeterShapes] the Hidden=1... and tried to get the Ico with [!ShowMeter YT1_ICO] to show.. That was the reason... That was the mistake.Yincognito wrote: ↑October 6th, 2024, 5:52 pm
I have no idea about your actual scenario ( if so, then you are the next Houdini )
One Problem solved, another comes... String "Youtube" does not disappear
Last edited by Rooky_89 on October 7th, 2024, 4:50 pm, edited 2 times in total.
-
- Posts: 377
- Joined: December 28th, 2022, 9:30 pm
- Location: México
Re: Problem with YouTube Subs Counter
Just wondering, did you use what I suggested here?
Did it work?
-
- Posts: 69
- Joined: September 21st, 2024, 4:57 pm
- Location: Germany, in the stone cave
-
- Rainmeter Sage
- Posts: 8485
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Problem with YouTube Subs Counter
This is based on your earlier post, might be what you wanted (though the approach could be even better):
-
- Posts: 69
- Joined: September 21st, 2024, 4:57 pm
- Location: Germany, in the stone cave
Re: Problem with YouTube Subs Counter
Yincognito wrote: ↑October 6th, 2024, 8:04 pm
(though the approach could be even better) [!SetOption Message_YT4 Hidden ([Calc_YT4]>#YT4_Video#?0:0)]
I have a few small problems... The MouseOver Calc is not correct. It always shows +1, even if the number of videos has been updated. I tryed just for Youtuber 4
Skin-Youtube: New-Code:
You do not have the required permissions to view the files attached to this post.
Last edited by Rooky_89 on October 9th, 2024, 5:16 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 8485
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Problem with YouTube Subs Counter
Didn't check the code, but just from the top of my head, by looking at your post, [!SetOption Message_YT4 Hidden ([Calc_YT4]>#YT4_Video#?0:0)] will always keep the message shown, because it will set that Hidden option to 0 in either case:
https://docs.rainmeter.net/manual/formulas/#Conditional
What you'd need is something like [!SetOption Message_YT4 Hidden ([Calc_YT4]>#YT4_Video#?0:1)] or viceversa, depending on what you need.
Basically, in the part after the ? symbol, what's before : is the value if the conditional is true, and what's after : is the value if the conditional is false.