Youtubeexplode: Get how long until stream link expires

Created on 6 Apr 2018  路  13Comments  路  Source: Tyrrrz/YoutubeExplode

In my efforts, before discovering this superb library, I noticed a parameter in the video page source 'expires=47764674' or similar.

Wondering if that relates to when the access denied page will appear, and if it could be utilized to get an actual timespan.

It would be very useful to me, maybe others.

enhancement

Most helpful comment

Be aware when posting stream URLs that it contains your IP address

All 13 comments

Yeah I can see why it could be useful. Can you verify the format?

Here is a sample of source directly from page.

https%3A%2F%2Fr8---sn-uigxx03-auol.googlevideo.com%2Fvideoplayback%3Fkey%3Dyt6%26pcm2cms%3Dyes%26mime%3Dvideo%252Fwebm%26gir%3Dyes%26itag%3D43%26clen%3D13328463%26expire%3D1523027725%26ratebypass%3Dyes%26dur%3D0.000%26fvip%3D4%26ipbits%3D0%26ms%3Dau%252Crdu%26sparams%3Dclen%252Cdur%252Cei%252Cgir%252Cid%252Cinitcwndbps%252Cip%252Cipbits%252Citag%252Clmt%252Cmime%252Cmm%252Cmn%252Cms%252Cmv%252Cpcm2cms%252Cpl%252Cratebypass%252Crequiressl%252Csource%252Cexpire%26mv%3Dm%26mt%3D1523005960%26requiressl%3Dyes%26ip%3Dxx.xxx.xx.xx%26pl%3D17%26id%3Do-AOBTSwYgS0HqavBgWv4ZCZT2VtuNjmHXIxqWiABXY041%26mn%3Dsn-uigxx03-auol%252Csn-aiglln6l%26mm%3D31%252C29%26source%3Dyoutube%26lmt%3D1518111709501058%26ei%3DrTrHWpfYEMPuWN_xopgN%26c%3DWEB%26initcwndbps%3D497500\u0026itag=43\u0026quality=medium\u0026s=F0CF0C7A4CC51F8D340BF0FCEFDCD3962C8CA69A5002.366160F22F242BC8A5CE32D3F52A48A2B073F2BBBBBBB\u0026sp=signature,type=video%2Fmp4%3B+codecs%3D%22avc1.42001E%2C+mp4a.40.2%22\u002

In it we have %26expire%3D1523027725
and %252Cexpire%26mv

Perhaps '1523027725' == 26 minutes

1523027725 is Timestamp when it will expire. To get exact time for it you can use https://www.epochconverter.com/

Sorry that's not what you meant is it.

According to https://www.epochconverter.com/

1523027725 converts as a unix timestamp

Although I'm unsure how it would work, since the time is an hour before I got it, in uk

https://www.epochconverter.com/clock should be in sync with that time i guess?

So in uk it gas offset of +3600 (1 hour) but it still must just be the time from when it will expire.
No indication of expire time. :(

Actually we have this expire%26mv%3Dm%26mt%3D1523005960

Friday, April 6, 2018 9:12:40 AM

And this expire%3D1523027725

Friday, April 6, 2018 3:15:25 PM

Be aware when posting stream URLs that it contains your IP address

I got a link and kept trying it every hour or so, it played 6 times after the first, so at least 6 hours, access denied after that.

So did it match the expiry date?

It did.
In retrospect I should have tested more at the same time, I wil tomorrow.

Tested another 10 links, all were dead after timespan between the 2 timestamps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SlowLogicBoy picture SlowLogicBoy  路  7Comments

Tyrrrz picture Tyrrrz  路  4Comments

dev45 picture dev45  路  5Comments

spoikbr picture spoikbr  路  5Comments

Luke1998x picture Luke1998x  路  5Comments