Please fill in this template when posting!
XMBC Version: 2.20.5
Installed or Portable version: Installed
Windows Version: 11 pro
Mouse Information (brand/model): Nulea M501 Wireless Trackball Mouse
Relevant Computer Information (CPU, RAM etc):
Device name MARS
Processor AMD Ryzen 7 5800X 8-Core Processor (3.80 GHz)
Installed RAM 64.0 GB
Device ID 7F57B261-87BA-4D86-8227-4C41F5E22C09
Product ID 00330-80000-00000-AA946
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Did the problem occur after an upgrade of XMBC? (If so, from what version?): No
Did the problem occur after a Windows update/upgrade? (If so, from what version?): No
How long have you used XMBC?: 6 months
What language and keyboard layout do you use in Windows?: English
Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).: I am trying to determine if my browser (just plain Chrome) is on a YouTube Videos page or a YouTube TV page or another generic web page. I know the document title ends with YouTube or YouTube TV for those special pages, but I cannot make the regex anchor to the end-of-line. I put the regex in the Window Details section in Caption. I have used the regex "^.* - YouTube$" (sans dquotes) for YouTube videos for a while now, but it seems the "$" doesn't work so "YouTube TV" also picks up as well even though it ends with "YouTube TV" as well as any generic page with YouTube in the document.title. So, it trips on pages that are not even videos but about YouTube or just have YouTube in the title anywhere. I place the regex in the Windows Detail section under Caption and make sure the "Enable Regular Expression Matching" is enabled. I do not know which reg ex engine is being used (or even the language the X Mouse is programmed in for perhaps a clue about special needs).
Is there a way to anchor on the end-of-line? Is there another way to do this? I am trying to make multiple profiles, in the correct order to use order to spell out "YouTube TV" explicitly to catch this, but using regex will give me more options and fewer profiles, i.e., I may just turn off the YouTube profile while on YouTube Premium. I am open to other approaches as well.
Differentiatingx between YouTube sites and YouTube TV sites
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
-
Jeffrey
- New User
- Posts: 2
- Joined: Fri Nov 14, 2025 11:02 pm
-
phil
- Site Admin
- Posts: 8036
- Joined: Sun Apr 06, 2003 11:12 pm
Re: Differentiatingx between YouTube sites and YouTube TV sites
I'm not sure to be honest, and I don't really have time right now to delve into the code and look (issues at work taking all my time!)
XMBC is written in C++ (MFC & Win32) although no MFC in the DLL, only the GUI (the regex parsing is done in the DLL).
I would expect it to work with the "usual" tags, and I would expect ^ and $ to be pretty usual! though its not something I have tried (at least not recently).
XMBC is written in C++ (MFC & Win32) although no MFC in the DLL, only the GUI (the regex parsing is done in the DLL).
I would expect it to work with the "usual" tags, and I would expect ^ and $ to be pretty usual! though its not something I have tried (at least not recently).
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR5,
nVidia RTX 5070TI
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR5,
nVidia RTX 5070TI
-
Jeffrey
- New User
- Posts: 2
- Joined: Fri Nov 14, 2025 11:02 pm
Re: Differentiatingx between YouTube sites and YouTube TV sites
That's what I thought too. Thanks for the info. I will try profile order catch this case.
Highrez Forums