Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotstar URL redirection #17637

Closed
theincognito-inc opened this issue Sep 23, 2018 · 5 comments
Closed

Hotstar URL redirection #17637

theincognito-inc opened this issue Sep 23, 2018 · 5 comments
Labels

Comments

@theincognito-inc
Copy link

@theincognito-inc theincognito-inc commented Sep 23, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.09.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

python -m youtube_dl -f best -v https://www.hotstar.com/tv/kasthooriman/s-1347/kavya-reconciles-with-jeeva/1100009804 --no-geo-bypass
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', '-v', 'https://www.hotstar.com/tv/kasthooriman/s-1347/kavya-reconciles-with-jeeva/1100009804', '--no-geo-bypass']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.09.18
[debug] Git HEAD: 4ac73fc17
[debug] Python version 3.7.0 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg N-91930-g0caa33c60b, ffprobe N-91930-g0caa33c60b
[debug] Proxy map: {}
[HotStar] 1100009804: Downloading JSON metadata
[HotStar] 1100009804: Downloading JIO JSON metadata
[HotStar] 1100009804: Downloading m3u8 information
[debug] Invoking downloader on 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8.m3u8'
[download] Destination: Update your app-1100009804.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
" -i "https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8.m3u8" -c copy -f mp4 "-bsf:a" aac_adtstoasc "file:Update your app-1100009804.mp4.part"
ffmpeg version N-91930-g0caa33c60b Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20180813
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 30.100 / 58. 30.100
  libavformat    58. 18.100 / 58. 18.100
  libavdevice    58.  4.103 / 58.  4.103
  libavfilter     7. 29.100 /  7. 29.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[tcp @ 000001f71718df00] Starting connection attempt to 184.26.162.10 port 443
[tcp @ 000001f71718df00] Successfully connected to 184.26.162.10 port 443
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00001.ts', offset 0, playlist 0
[hls,applehttp @ 000001f71718ab40] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00001.ts' for reading
[tcp @ 000001f717699140] Starting connection attempt to 184.26.162.10 port 443
[tcp @ 000001f717699140] Successfully connected to 184.26.162.10 port 443
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00002.ts', offset 0, playlist 0
[hls,applehttp @ 000001f71718ab40] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00002.ts' for reading
[tcp @ 000001f7176eb400] Starting connection attempt to 184.26.162.10 port 443
[tcp @ 000001f7176eb400] Successfully connected to 184.26.162.10 port 443
[h264 @ 000001f7177987c0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, hls,applehttp, from 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8.m3u8':
  Duration: 00:00:59.96, start: 2.160222, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:Update your app-1100009804.mp4.part':
  Metadata:
    encoder         : Lavf58.18.100
    Stream #0:0: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00003.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00003.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00004.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00004.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00005.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00005.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00006.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00006.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00007.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00007.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00008.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00008.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00009.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00009.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00010.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00010.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00011.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00011.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00012.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00012.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00013.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00013.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00014.ts', offset 0, playlist 0
[https @ 000001f717790f00] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00014.ts' for reading
[hls,applehttp @ 000001f71718ab40] HLS request for url 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00015.ts', offset 0, playlist 0
[https @ 000001f717697840] Opening 'https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8_00015.ts' for reading
No more output streams to write to, finishing.e=00:00:58.63 bitrate=4363.6kbits/s speed=12.3x
frame= 1499 fps=303 q=-1.0 Lsize=   33311kB time=00:00:59.95 bitrate=4551.6kbits/s speed=12.1x
video:32827kB audio:450kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.103386%
Input file #0 (https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8.m3u8):
  Input stream #0:0 (video): 1499 packets read (33614765 bytes);
  Input stream #0:1 (audio): 2810 packets read (480056 bytes);
  Total: 4309 packets (34094821 bytes) demuxed
Output file #0 (file:Update your app-1100009804.mp4.part):
  Output stream #0:0 (video): 1499 packets muxed (33614765 bytes);
  Output stream #0:1 (audio): 2810 packets muxed (460386 bytes);
  Total: 4309 packets (34075151 bytes) muxed
[AVIOContext @ 000001f717646d00] Statistics: 2 seeks, 133 writeouts
[AVIOContext @ 000001f717738d40] Statistics: 18653360 bytes read, 0 seeks
[AVIOContext @ 000001f7178715c0] Statistics: 16442480 bytes read, 0 seeks
[AVIOContext @ 000001f717256540] Statistics: 683 bytes read, 0 seeks
[ffmpeg] Downloaded 34110380 bytes
[download] 100% of 32.53MiB in 00:06


Description of your issue, suggested solution and other information

Any video trying to download via hotstar.com, seems to be redirecting to a particular URL, which results in downloading an "Update your app.mp4" file. The videos are playable via browser.

The sample video url: https://www.hotstar.com/tv/kasthooriman/s-1347/kavya-reconciles-with-jeeva/1100009804

For the above video, instead of picking up this m3u8 (https://hsdesinova.akamaized.net/video/asianet_hd/kasthooriman/240/master_Layer5_.m3u8), it is picking up (https://hssportsprepack.akamaized.net/videos/cricket/asiacup2018/18_09_2018/2001618252/master_Layer8.m3u8)

@theincognito-inc
Copy link
Author

@theincognito-inc theincognito-inc commented Sep 23, 2018

@vinaykapadia
Copy link

@vinaykapadia vinaykapadia commented Sep 25, 2018

I can repro this. It's downloading an "update your app" video instead of the requested video.

@jakop345
Copy link

@jakop345 jakop345 commented Sep 26, 2018

problem seems to persist.

@theincognito-inc
Copy link
Author

@theincognito-inc theincognito-inc commented Sep 26, 2018

@jakop345 Nope. Working fine now, mate.

@remitamine Thanks 👍

@kutekrish
Copy link

@kutekrish kutekrish commented Sep 26, 2018

@ytdl-org ytdl-org locked as resolved and limited conversation to collaborators Sep 27, 2018
@dstftw dstftw added the fixed label Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
@kutekrish @dstftw @jakop345 @theincognito-inc @vinaykapadia and others
You can’t perform that action at this time.