VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. Hello,
    I am trying to download from hotmart.
    Up to about 20 days ago, HLS Downloader was working wonders and doing a great job:Chrome extension page for HLS downloader

    Then something changed in hotmart and now their m3u8 playlist look like they give you always access denied. No extension or program is really working to download their video directly. I tried a lot of them including the ultra celebrated Video DownloadHelper, ffmpeg. No luck.

    The usual video link looks like:
    https://player.hotmart.com/embed/VIDEO_ID?signature=VIDEO_SIGNATURE

    but since people will need public link to help me, here's 3 of them that have the same problem:
    https://player.hotmart.com/embed/Yq2jK1o5qa

    https://player.hotmart.com/embed/nRvJ0kkYRQ

    https://player.hotmart.com/embed/Pq9rbvnDLO

    I tried from chrome dev tools too to figure out what is going on in the js code but coulnd't come up with anything.


    The only way I found to do it is use
    CocoCut Chrome Extension
    which has a convenient recording stream function.
    The problem though, is that it requires me to watch the whole video or skim through it for the whole length because it has to record every chunk of it.

    Really annoying.

    Does anyone know how to beat this one?
    Quote Quote  
  2. I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.
    Quote Quote  
  3. Originally Posted by Obo View Post
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.
    Thank you,
    What about this:
    https://www.calimove.com/courses/1467532/lectures/33641283

    I can't do it with the referral thing
    Quote Quote  
  4. Originally Posted by Obo View Post
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.

    Thank you I tried with some of this:
    https://www.calimove.com/courses/1467532/lectures/33641283

    But adding the header didn't work.
    Did I miss something?

    DO you mange to get them?
    Quote Quote  
  5. Yes, exactly the same, even the Referrer is identical.
    Quote Quote  
  6. https://www.calimove.com/courses/1467532/lectures/33641283

    Code:
    hlsdl -b -c -u "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" -h "Referer:https://player.hotmart.com/" -o "master-t-1658736450001.ts" "https://vod-akm.play.hotmart.com/video/5Z3yd138qa/hls/master-t-1658736450001.m3u8?hdnts=st%3D1699723786%7Eexp%3D1699724286%7Ehmac%3D9c3f6e93809fd3fe71ad342730e143b70bc50c762f92ed496870c9e07abc1105&app=aa2d356b-e2f0-45e8-9725-e0efc7b5d29c"
    Quote Quote  
  7. Originally Posted by Obo View Post
    Yes, exactly the same, even the Referrer is identical.
    Dang, I feel like an idiot, but hey, it worked... I tried lot of stuff and it was simple as that...
    Shame on me
    Quote Quote  
  8. Originally Posted by Obo View Post
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.
    I'm in a DRM protection situation. I got the .MPD video link but yt-dlp doesn't work because of protection.

    Code:
    [generic] Extracting URL: https://vod-akm.play.hotmart.com/video/7Lypzy9kqA/drm/dash/stream-t-1698692362001.mpd?hdnts=st%3D...d0-9c59-cfe00909f280
    [generic] stream-t-1698692362001: Downloading webpage
    WARNING: [generic] Falling back on generic information extractor
    [generic] stream-t-1698692362001: Extracting information
    ERROR: [generic] stream-t-1698692362001: This video is DRM protected


    Any suggestion?
    Quote Quote  
  9. Originally Posted by Mino Cosmik View Post
    I'm in a DRM protection situation. I got the .MPD video link but yt-dlp doesn't work because of protection. Any suggestion?
    Any video link ?

    wtf, how can you hope that we can help you without video link ?
    Quote Quote  
  10. Originally Posted by lomero View Post
    Originally Posted by Mino Cosmik View Post
    I'm in a DRM protection situation. I got the .MPD video link but yt-dlp doesn't work because of protection. Any suggestion?
    Any video link ?

    wtf, how can you hope that we can help you without video link ?
    I believe that only I who have access to the Hotmart account credentials will get permission to access the video manifesto link. You would only be able to access it if I provided my credentials.
    So I believe the most I can do is send the corresponding error messages. I am researching alternatives and willing to find a solution.
    Quote Quote  
  11. Originally Posted by Mino Cosmik View Post
    Originally Posted by Obo View Post
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.
    I'm in a DRM protection situation. I got the .MPD video link but yt-dlp doesn't work because of protection.

    Code:
    [generic] Extracting URL: https://vod-akm.play.hotmart.com/video/7Lypzy9kqA/drm/dash/stream-t-1698692362001.mpd?hdnts=st%3D...d0-9c59-cfe00909f280
    [generic] stream-t-1698692362001: Downloading webpage
    WARNING: [generic] Falling back on generic information extractor
    [generic] stream-t-1698692362001: Extracting information
    ERROR: [generic] stream-t-1698692362001: This video is DRM protected


    Any suggestion?
    Hey the videos that I'm actually able to successfully download thatnks to Obo precious suggestions, are actually a paid course behind a login.

    What I did is:
    1)install some extensions to catch m3u8 file
    2 I tried are
    • FetchV
    • M3U8 Finder and HLS Player

    Why 2? Because Yesterday I fetched a lot of playlists to download with FetchV, and today it misteriously stopped working, so I had to find another one.

    Now the extension will tell you the m3u8 url, which in my login walled videos page looks like this (i replaced tokens with brackets):
    https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}
    2) Follow Obo advice and set command like this:
    yt-dlp -o "VIDEO_NAME.mp4" --add-headers Referer:https://player.hotmart.com/ https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}
    And to my disbelief it's actually working.
    I tried countless tricks and it was that easy, at least for me and I'm downloading from a page locked behind a login from teachable courses.

    What else can I say?
    Thanks Obo, you saved me this time!
    Quote Quote  
  12. Originally Posted by Porkone View Post
    Originally Posted by Mino Cosmik View Post
    Originally Posted by Obo View Post
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.
    I'm in a DRM protection situation. I got the .MPD video link but yt-dlp doesn't work because of protection.

    Code:
    [generic] Extracting URL: https://vod-akm.play.hotmart.com/video/7Lypzy9kqA/drm/dash/stream-t-1698692362001.mpd?hdnts=st%3D...d0-9c59-cfe00909f280
    [generic] stream-t-1698692362001: Downloading webpage
    WARNING: [generic] Falling back on generic information extractor
    [generic] stream-t-1698692362001: Extracting information
    ERROR: [generic] stream-t-1698692362001: This video is DRM protected


    Any suggestion?
    Hey the videos that I'm actually able to successfully download thatnks to Obo precious suggestions, are actually a paid course behind a login.

    What I did is:
    1)install some extensions to catch m3u8 file
    2 I tried are
    • FetchV
    • M3U8 Finder and HLS Player

    Why 2? Because Yesterday I fetched a lot of playlists to download with FetchV, and today it misteriously stopped working, so I had to find another one.

    Now the extension will tell you the m3u8 url, which in my login walled videos page looks like this (i replaced tokens with brackets):
    https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}
    2) Follow Obo advice and set command like this:
    yt-dlp -o "VIDEO_NAME.mp4" --add-headers Referer:https://player.hotmart.com/ https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}
    And to my disbelief it's actually working.
    I tried countless tricks and it was that easy, at least for me and I'm downloading from a page locked behind a login from teachable courses.

    What else can I say?
    Thanks Obo, you saved me this time!
    So, the video manifest does not refer to a .m3u8 playlist, when it comes to that I have no problems. Now the problem is when the video manifest refers to a .mpd

    See I use the following command and in yl-dlp to download playlist .m3u8

    yt-dlp --add-header "Referer: https://player.hotmart.com/" --format best[height=360] "URL"

    the problem is that the .mpd URL has DRM protection and yl-dlp cannot handle it:

    Ex of a DRM protected URL:

    Code:
    yt-dlp --add-header "Referer: https://player.hotmart.com/" --format best[height=360] "https://vod-akm.play.hotmart.com/video/7Lypzy9kqA/ drm/dash/stream-t-1698692362001.mpd?hdnts=st%3D1699765373%7Eexp%3D1699765873%7Ehmac%3Dcaf91000fb5ef6b9500103e2893d0337d75771780e155d8ee8abe39d2 5fe4d0f&app=f57b1bb2-30e3-4fd0-9c59-cfe00909f280"

    Note that unlike m3u8 which uses HLS, mpd uses Dash.
    Quote Quote  
  13. Nope, the mpd url itself is not DRM protected (and that doesn't even make sense); it's missing some kind of authorization - you get a 403 - forbidden response.
    Quote Quote  
  14. Originally Posted by Obo View Post
    Nope, the mpd url itself is not DRM protected (and that doesn't even make sense); it's missing some kind of authorization - you get a 403 - forbidden response.
    What I'm trying to say is that I found that a video on the platform was via HLS/M3U8 and I was able to download it normally via Yt-dlp. While the other video was protected by DRM and the Dash/MDP process and in this case yt-dlp was unable to download the video reporting the message " ERROR: [generic] stream-t-1698692362001: This video is protected by DRM "

    So the differentiation I made between both methods was based on my observation of these two cases used on the Hotmart platform. I'm not saying that this is the case in all cases.

    I will even leave here the two examples of URL manifests with the two methods I mentioned:

    Code:
    1: I was able to download via Yt-dlp:
    yt-dlp --add-header "Referer: https://player.hotmart.com/" --format best[height=360] "https://vod-akm.play.hotmart.com/video/gL6aOAWmqG/ hls/master-t-1698690261001.m3u8?hdnts=st%3D1689813085%7Eexp%3D1699813585%7Ehmac%3Db1dfd4386e4389bfcdba0561111863b06e1164d1e4d51ccdad77e42 3211ab5bf&app=f57b1bb2-30e3-4fd0-9c59-cfe00909f280"
    2- I was unable to download via yt-Dlp:

    Code:
    yt-dlp --add-header "Referer: https://player.hotmart.com/" --format best[height=360] "https://vod-akm.play.hotmart.com/video/7Lypzy9kqA/ drm/dash/stream-t-1698692362001.mpd?hdnts=st%3D1699765373%7Eexp%3D1699765873%7Ehmac%3Dcaf91000fb5ef6b9600103e2893d0337d75771780e155d8ee8abe39d2 5fe4d0f&app=f57b1bb2-30e3-4fd0-9c59-cfe00909f280"
    Quote Quote  
  15. Hi Everyone:

    The answers seem kind of cryptic vs the initial question, which was easy to understand and my issue and question as well.

    Can someone briefly summarize the final correct code to use. I tried to deconstruct, but still didn't make sense in the end.

    Here is the summary of the code given:
    yt-dlp -o "VIDEO_NAME.mp4" --add-headers Referer:https://player.hotmart.com/ https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}


    In a prior posts, an answer was given with the following:
    I tried only the third video: it is not protected at all. yt-dlp will download it if you add the referrer as header field: "yt-dlp --add-headers 'Referer:https://player.hotmart.com/' 'https://vod-akm.play.hotmart.com/video/Pq9rbvnDLO/hls/master-t-1654025595001.m3u8?...'" - I guess the others aren't protected as well.

    You can find the full url of the m3u8 link with your browsers dev tools, but your browser extension should find it as well.


    If we can get an answer on what finally worked so I and future questioners can understand it will be appreciated.

    What I don't understand is the headers part.

    I found this documentation:
    "--add-headers FIELD:VALUE
    Specify a custom HTTP header and its value, separated by a colon ":". You can use this option multiple times:"


    I just don't know if I am suppose to replace with actual headers or leave as a literal "--add-headers"

    when I tried with a literal "--add-headers" I got the following error:
    Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: Forbidden>);


    so, leaving out some of the code above to make it simpler:

    yt-dlp --add-headers Referer:https://player.hotmart.com/ https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}



    Thanks in advance!
    Quote Quote  
  16. Originally Posted by mikehayden View Post
    so, leaving out some of the code above to make it simpler:

    yt-dlp --add-headers Referer:https://player.hotmart.com/ https://vod-akm.play.hotmart.com/video/{VIDEO_ID}/hls/master-t-{PLAYLIST_ID}.m3u8?hdnts=st%SOME_TOKEN%7Eexp%{EPIR ATION}%7Ehmac%{SOME_TOKEN%}



    Thanks in advance!
    Just use The Stream Detector browser extension, it will let you copy the full yt-dlp command without a fuss. In my case:

    Code:
    yt-dlp --no-part --restrict-filenames -N 4 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0" --cookies-from-browser firefox --referer "https://player.hotmart.com/" "https://vod-akm.play.hotmart.com/video/Yq2jK1o5qa/hls/master-t-1647616645001.m3u8?otherparameters..."
    Quote Quote  
  17. Thanks for that addon. It's a great help, but I was unfortunately not able to download the videos. I got a 403 error. I didn't pay for the course, so I was trying to download anyways. Interesting though that I wasn't even able to download the 3 free videos.

    Anyways, other than maybe some --header that I could add to my command, which I don't know much how to use anyways, I think I probably cant download.

    Thanks again for the firefox addon though!
    Quote Quote  
  18. Member
    Join Date
    Mar 2023
    Location
    Romania
    Search Comp PM
    I have the same problem.
    Referer change will not work.
    Does anyone have a solution?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!