chandler-stimson / live-stream-downloader

Download M3U8 live streams to the local disk
https://webextension.org/listing/hls-downloader.html
201 stars 70 forks source link

[Feature request] Grab file name from the page title #31

Closed snwefly closed 1 month ago

snwefly commented 1 year ago

Option to Grab file name from the page title instead of server file name.

Thanks

LiveNetworxHost commented 1 year ago

ad.method()feature:shows.request

27

cocoloco111 commented 9 months ago

شكرا

kubalav commented 1 month ago

For me, the better choice of file name is from "og:title". It would be possible to add such an option? @chandler-stimson

chandler-stimson commented 1 month ago

From the next release, you can extract content from the page and use that content as a filename mask with the following keyword:

[q:query|method|default-value]

For your case, you can use:

[q:meta[property="og:title"]|content|no title]

which is equivalent to:

document.querySelector(meta[property="og:title"]).getAttribute('content')