Smart Naming: Extracting Metadata from HTML Attributes (content=, data-*)? #2165
Unanswered
UserYX999
asked this question in
Help and Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
Hello,
I'm using the Smart Naming feature in Video DownloadHelper to automatically generate structured filenames for downloaded videos. While CSS selectors work well for extracting visible text (e.g. titles), I'm encountering a limitation when trying to access metadata stored in HTML attributes such as:
<meta
itemprop="seasonNumber" content="1"/>
<meta
itemprop="episode" content="2"/>
<div
data-season="1"data-episode="2">...</div>
Currently, it seems the Smart Naming engine only supports extraction of inner text via selectors (e.g. %selector), but not attribute values like content= or data-*.
Question:
Is there a way to access these HTML attribute values directly in the Smart Naming template (e.g. %selectorAttr or similar)?
If not, is this feature on the roadmap—or could it be considered for future development?
Use Case:
Many modern websites use structured data (e.g. schema.org markup or data-* attributes) to store episode numbers, seasons, or other metadata in the DOM. Supporting attribute-based extraction would significantly increase the flexibility and automation potential of Smart Naming, especially for use cases involving episodic content or structured naming conventions.
Thanks in advance for any insights or recommendations.
Addon & CoApp version and details
version: 9.5.0.1
target: google
channel: stable
lang: de
coapp: {"found":true,"new_version":false,"path":"C:\Program Files\DownloadHelper CoApp\vdhcoapp.exe","version":"2.0.19"}
license: {"accepted":true,"email":"","key":"5ca004d0650f49f7"}
platform: x86-64 win
UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
{
"valid_license_message_has_been_displayed": true,
"download_directory": "Z:\NEU",
"last_download_directory": {
"__serializer_tag": "option_some",
"__serializer_value": {
"__serializer_tag": "primitive",
"__serializer_value": "X:\Young Sheldon"
}
},
"never_show_no_incognito_msg_again": true,
"view_options": {
"all_tabs": false,
"hide_downloaded": false,
"low_quality": false,
"show_button_clean": true,
"show_button_clean_all": false,
"show_button_convert_local": false,
"sort_by_status": true,
"sort_reverse": false
},
"default_action": "download_as",
"use_sidebar": true,
"open_count_store": 151,
"successfull_dl": 20,
"never_show_successfull_dl_message": true,
"history_limit_in_days": 7
}
Beta Was this translation helpful? Give feedback.
All reactions