Create Smart Naming Rule based on topURL

573 views
Skip to first unread message

Gabriel Schanuel

unread,
Apr 12, 2021, 9:31:44 PM4/12/21
to Video DownloadHelper Q&A
Hello
I need to create a Smart Naming Rule based on topURL.

Looking at the details from VDH, topURL is the only place the video name is correctly shown.
It should be a simple regex ([a-zA-Z0-9\-]*)$

How can I do that?

Thanks in advance

jcv...@gmail.com

unread,
Apr 13, 2021, 3:41:57 AM4/13/21
to Video DownloadHelper Q&A
can you share an example of URL and what you want to do ?
jerome

Gabriel Schanuel

unread,
Apr 13, 2021, 3:51:11 AM4/13/21
to Video DownloadHelper Q&A
Sharing the URL is no much use since it requires username and password
Is this Details page enough?
Hit Details.pdf

Gabriel Schanuel

unread,
Apr 13, 2021, 3:53:51 AM4/13/21
to Video DownloadHelper Q&A
In this example, I want the downloaded file to be named "01-introducao-ao-prana-meditacao.mp4"

Gabriel Schanuel

unread,
Apr 13, 2021, 11:10:52 AM4/13/21
to Video DownloadHelper Q&A
This is the relevant part from the hit details, in case one don't want to open the pdf
When I tried that regex on "Get name from document header/URL" the suggested name was "video"

masterManifest https://videodelivery.net/24ac3cf1f03d2ebe38303c7449d24742/manifest
/video.m3u8?20213122
mediaManifest https://videodelivery.net/24ac3cf1f03d2ebe38303c7449d24742/manifest
/stream_t5905bc2843a6ba969573f058ecaee882_r22197403.m3u8
originalId network-probe:670bd67a
pageUrl https://webapp.autoridadefitness.com/#/player/program/prana-meditacao/01-
introducao-ao-prana-meditacao
quality und
referrer https://webapp.autoridadefitness.com/#/player/program/prana-meditacao/01-
introducao-ao-prana-meditacao
running 0
size 598x1080
status inactive
tabId 2
thumbnail
data:image/png;base64,iVBORw0KGgoAAA .....
title video
topUrl https://webapp.autoridadefitness.com/#/player/program/prana-meditacao/01-
introducao-ao-prana-meditacao
https://videodelivery.net/24ac3cf1f03d2ebe38303c7449d24742

jcv...@gmail.com

unread,
Apr 14, 2021, 4:08:51 AM4/14/21
to Video DownloadHelper Q&A
I think it should be doable with the pageUrl, I'll ask the dev
jerome

mig

unread,
Apr 14, 2021, 4:37:26 AM4/14/21
to Video DownloadHelper Q&A

Unfortunately, there is no smartnaming option to pick the name from the topUrl parameter.

Using the smartnamer, the video file name can be extracted from various sources with the following options:
- header-url: uses the content-disposition HTTP header if present otherwise the URL of the video (not the page)
- page-title: uses the /HTML/HEAD/TITLE element text
- page-content: uses the whole content of the HTML page
- obfuscated: from a digital signature of the page URL

topUrl is the URL of the top level HTML frame that contains the video.

Is there any chance you can find your desired label in the content of the page ?

Gabriel Schanuel

unread,
Apr 14, 2021, 7:42:08 AM4/14/21
to Video DownloadHelper Q&A
Hello Michel
The page displaying the video has just a few javascript codes and no filename
<!DOCTYPE html>
<html>
<head>
<title>
Autoridade</title>
<meta charset=utf-8>
<meta name=description content="App da Autoridade">
<meta name=format-detection content="telephone=no">
<meta name=msapplication-tap-highlight content=no>
<meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
<link rel=icon href=statics/favicon-black.png type=image/x-icon>
<link rel=icon type=image/png sizes=32x32 href=statics/favicon-black.png>
<link rel=icon type=image/png sizes=16x16 href=statics/favicon-black.png>
<link as=style href=css/app.aec05f18.css rel=preload>
<link as=script href=js/app.2b61fa44.js rel=preload>
<link as=script href=js/runtime.56c3054d.js rel=preload>
<link as=script href=js/vendor.a78722b7.js rel=preload>
<link href=css/app.aec05f18.css rel=stylesheet>
</head>
<body>
<div id=q-app>
</div>
<script type=text/javascript src=js/app.2b61fa44.js>
</script>
<script type=text/javascript src=js/runtime.56c3054d.js>
</script>
<script type=text/javascript src=js/vendor.a78722b7.js>
</script>
</body>
</html>

Any suggestion?

mig

unread,
Apr 14, 2021, 8:54:54 AM4/14/21
to Video DownloadHelper Q&A
The "file name" as defined in "content-disposition" only appears in the HTTP transaction, not in the final HTML document.

Can you find a name in the HTML content that would be good as a title so you can use it in your smartname rule ? Can you share a screenshot of the page containing the video ?

Gabriel Schanuel

unread,
Apr 14, 2021, 11:51:49 AM4/14/21
to Video DownloadHelper Q&A
Here is a screenshot
image.png

Unfortunately, the page has no content other than the js video player


--
You received this message because you are subscribed to a topic in the Google Groups "Video DownloadHelper Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/video-downloadhelper-q-and-a/hZysWsmGtTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to video-downloadhelper...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/video-downloadhelper-q-and-a/0c1b05fd-c96e-4f87-83c0-ca1223b62d89n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages