PDA

View Full Version : Getting mp4 from history.com


pipo18
06-18-2016, 04:49 PM
Hello,
I'm trying to download episodes from History.com. I was able to download the free-for-everyone episodes with youtube-dl.
Now I want to download the ones for cable-users. For these, youtube-dl oviously states "ERROR: This content requires a valid, unexpired auth token."
I do have a login and I'm able to watch all the episodes in the browser. But I'm having difficulties to extract the m3u8 or mp4 link.

To understand how it works, I sniffed the http link when I downloaded a free-for-everyone episode with youtube-dl.
This is the original history URL: http://www.history.com/shows/pawn-stars/season-1/episode-5

And this is the direct video URL (highest quality): http://aepdaks3.aetndigital.com/AETN-History_VMS/BRAND_THC_PAWN_50582_CRS_2398_030_20140403_V1_S3_1 800.mp4?__gda__=1466298593_02219f138b8f3073103de9d 15896f55a

How did youtube-dl extract the direct video URL from the page? I was not able to find anything remotely like this in the source code or the video element.

I did find something with mp4/m3u8 via httpfox, but I wouldnt know how I would get the link out of it like youtube-dl did:
http://b.scorecardresearch.com/p?c1=2&c2=3005002&ns_ap_pn=js&ns_ap_pfm=html&ns_type=hidden&ns_st_sv=4.1505.18&ns_st_pv=2.1.6&ns_st_it=s&ns_st_id=1466289772356_1&ns_st_ec=1&ns_st_sp=1&ns_st_sq=1&ns_st_cn=2&ns_st_ev=play&ns_st_po=241&ns_st_cl=534000&ns_st_el=1277000&ns_st_pb=1&ns_st_mp=thePlatform&ns_st_mv=5.6.12&ns_st_pn=1&ns_st_tp=3&ns_st_ci=247066179542&ns_ts=1466289776990&ns_st_bt=0&ns_st_bp=0&ns_st_br=1926000&ns_st_ub=0&ns_st_ws=norm&ns_st_pl=Gangsters%20and%20Guitars&ns_st_pr=Pawn%20Stars&ns_st_ep=Gangsters%20


If anyone could help me how to get to the direct video URL from this free for all episode, I might be able to do the same for the cable-sub episodes.
I just saw this show for the first time and I'd like to watch it on my next trip.


TL,DR: How to get this: http://aepdaks3.aetndigital.com/AETN-History_VMS/BRAND_THC_PAWN_50582_CRS_2398_030_20140403_V1_S3_1 800.mp4?__gda__=1466298593_02219f138b8f3073103de9d 15896f55a from this: http://www.history.com/shows/pawn-stars/season-1/episode-5

Thanks !

ngocdiem911x
06-19-2016, 01:07 AM
thanks you 4 share ^^ i liked

Terenz
06-21-2016, 02:00 AM
Using network devtool of Chrome-Firefox search for a part of this string:

https://link.theplatform.com/s/xc6n8B/media/N1sBG40oLjF7?mbr=true&sig=NUMBERS&assetTypes=medium_video_ak&formats=m3u,mpeg4&format=SMIL&embedded=true&tracking=true

Replace some part, in this way

https://link.theplatform.com/s/xc6n8B/media/N1sBG40oLjF7?mbr=true&sig=NUMBERS&assetTypes=medium_video_s3&format=SMIL&embedded=true&tracking=true

Then you have a file to download with all MP4 resolutions like this:

<smil xmlns="http://www.w3.org/2005/SMIL21/Language">
<head>
<meta name="refreshToken" content="NUMBERS"/>
<meta name="startingBitrate" content="2500000"/>
</head>
<body>
<seq>
<ref src="http://ads.freewheel.tv" type="application/smil+xml" no-skip="true" tags="preroll">
</ref>
<par>
<switch>
<video src="http://aepdaks3.aetndigital.com/AETN-History_VMS/History_Pawn-Stars_101_Knights-in-Fake-Armor_LF_S3_1800.mp4?__gda__=1466506592_ec4c2550a2 eda48049a8349b7527b2bb" system-bitrate="1920000" height="540" width="960"/>
<video

Good Luck