Last active
October 5, 2025 19:01
-
-
Save uahim/dc82bbedd3b5e6c999af39ab5d45c643 to your computer and use it in GitHub Desktop.
get stream url - 0.1.8.2 updated April 2025, dirty but working fix; now with concert support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name arte stream url | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1.8.2 | |
| // @description get arte m3u8 stream url | |
| // @author You | |
| // @match https://www.arte.tv/de/videos/* | |
| // @match https://www.arte.tv/fr/videos/* | |
| // ==/UserScript== | |
| // this UserJavaScript provides a simple way to get the m3u8 to feed into VLC or any other player capable of playing streams. | |
| // though it's probably best to get the url or download videos via yt-dlp or addons such as The Stream Detector for Firefox | |
| // https://addons.mozilla.org/en-US/firefox/addon/hls-stream-detector/ | |
| var loc = window.location.pathname.split('/'); | |
| var lang = loc[1]; | |
| var id = loc[3]; | |
| var name = loc[4]; | |
| var url = ""; | |
| var api_base = " https://api.arte.tv/api/player/v2/config/" + lang + "/"; | |
| var download_url = api_base + id; | |
| var filmtitle = document.querySelector('meta[property="og:title"]').content; | |
| [" | ARTE Concert"," | ARTE"," - Komplette Sendung"," - Programm in voller Länge"," - Film in voller Länge"," - Regarder le film complet"," - Regarder l’émission complète"].forEach((item) => { filmtitle = filmtitle.replace(item, "") }); | |
| filmtitle = filmtitle.replace(/ /g, "_").replace(/[^a-z0-9 \.,_-]/gim, "").replace("_-_","-"); | |
| document.getElementsByTagName("body")[0].onclick = function () { | |
| var para = document.createElement("a"); | |
| para.setAttribute('id', 'dwnl'); | |
| para.setAttribute('style', 'font-weight: bold'); | |
| para.setAttribute('style', 'color: white'); | |
| para.setAttribute('class', ' ds-tgzo04'); | |
| var node = document.createElement("span"); | |
| node.setAttribute('class', ' ds-eul86b'); | |
| node.innerText = "Stream URL"; | |
| para.appendChild(node); | |
| if (document.getElementsByClassName(' ds-rymcfw')[0]) { | |
| document.getElementsByClassName(' ds-rymcfw')[0].insertBefore(para, null); | |
| } else if (document.getElementsByClassName(' ds-2aqyii')[0]) { | |
| document.getElementsByClassName(' ds-2aqyii')[0].insertBefore(para, null); | |
| } | |
| var getJSON = function(url, callback) { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open('GET', url, true); | |
| xhr.responseType = 'json'; | |
| xhr.onload = function() { | |
| var status = xhr.status; | |
| if (status == 200) { | |
| callback(null, xhr.response); | |
| } else { | |
| callback(status); | |
| } | |
| }; | |
| xhr.send(); | |
| }; | |
| getJSON(download_url, function(err, data) { | |
| if (err != null) { | |
| console.error(err); | |
| } else { | |
| url = data.data.attributes.streams[0].url; | |
| } | |
| }); | |
| document.getElementById('dwnl').addEventListener("click", function(){ | |
| var test = prompt("stream URL (OK for ffmpeg command or cancel)", url); | |
| if (test !== null) { | |
| prompt("ffmpeg command", 'ffmpeg -referer "' + location.href + '" -user_agent "' + window.navigator.userAgent + '" -i "' + url + '" -c copy -bsf:a aac_adtstoasc "' + filmtitle + '.mp4"'); | |
| } | |
| }); | |
| document.getElementsByTagName("body")[0].onclick = function () {} | |
| }; | |
| setTimeout('document.getElementsByTagName("body")[0].click()', 2500); |
Author
@jeanpierrebertola ok thanks for checking
for now, it's best to downgrade to the previous version:
https://greasyfork.org/en/scripts/533451-arte-stream-url?version=1647882
Author
@jeanpierrebertola please test version 1.1, I think it should be working for you now :)
Thank You great !
Le dim. 28 sept. 2025 à 21:09, mihau ***@***.***> a écrit :
… ***@***.**** commented on this gist.
------------------------------
@jeanpierrebertola <https://github.com/jeanpierrebertola> please test
version 1.1, I think it should be working for you now :)
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/uahim/dc82bbedd3b5e6c999af39ab5d45c643#gistcomment-5778276>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZYO6LSAR3SARYKPYMJZSQT3VAW7RBFHORZGSZ3HMVZKMY3SMVQXIZNMON2WE2TFMN2F65DZOBS2WR3JON2EG33NNVSW45FGORXXA2LDOOIYFJDUPFYGLJDHNFZXJJLWMFWHKZNJGEYTMMJUGQYTEOFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJZWHA3DMNZZGSSG4YLNMWUGCY3UN5ZF62LEQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZQKSXMYLMOVS2IZ3JON2KI3TBNVS2W5DIOJSWCZC7OR4XAZI>
.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
it's work perfect
Le dim. 28 sept. 2025 à 21:09, mihau ***@***.***> a écrit :
… ***@***.**** commented on this gist.
------------------------------
@jeanpierrebertola <https://github.com/jeanpierrebertola> please test
version 1.1, I think it should be working for you now :)
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/uahim/dc82bbedd3b5e6c999af39ab5d45c643#gistcomment-5778276>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZYO6LSAR3SARYKPYMJZSQT3VAW7RBFHORZGSZ3HMVZKMY3SMVQXIZNMON2WE2TFMN2F65DZOBS2WR3JON2EG33NNVSW45FGORXXA2LDOOIYFJDUPFYGLJDHNFZXJJLWMFWHKZNJGEYTMMJUGQYTEOFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJZWHA3DMNZZGSSG4YLNMWUGCY3UN5ZF62LEQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZQKSXMYLMOVS2IZ3JON2KI3TBNVS2W5DIOJSWCZC7OR4XAZI>
.
You are receiving this email because you were mentioned.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Hello, I work no more ! Arte change one more time
regards
Le dim. 28 sept. 2025 à 23:06, Jean-Pierre Bertola ***@***.***> a
écrit :
… Thank You great !
Le dim. 28 sept. 2025 à 21:09, mihau ***@***.***> a écrit :
> ***@***.**** commented on this gist.
> ------------------------------
>
> @jeanpierrebertola <https://github.com/jeanpierrebertola> please test
> version 1.1, I think it should be working for you now :)
>
> —
> Reply to this email directly, view it on GitHub
> <https://gist.github.com/uahim/dc82bbedd3b5e6c999af39ab5d45c643#gistcomment-5778276>
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AZYO6LSAR3SARYKPYMJZSQT3VAW7RBFHORZGSZ3HMVZKMY3SMVQXIZNMON2WE2TFMN2F65DZOBS2WR3JON2EG33NNVSW45FGORXXA2LDOOIYFJDUPFYGLJDHNFZXJJLWMFWHKZNJGEYTMMJUGQYTEOFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJZWHA3DMNZZGSSG4YLNMWUGCY3UN5ZF62LEQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZQKSXMYLMOVS2IZ3JON2KI3TBNVS2W5DIOJSWCZC7OR4XAZI>
> .
> You are receiving this email because you were mentioned.
>
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
> .
>
>
you are right it's necessary to downgrade thank you
Author
@jeanpierrebertola have you tried multiple videos or was it just one?
it can always be a temporary problem, in this case, try reloading the page.
I checked the latest version in Firefox and Chrome via Violentmoney and don't see any changes so far.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello There is the URL Field but it contain no URL adress when you clic on
Thank you