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

Generic Extractor downloads HTML file #26429

Open
RingoTheDog opened this issue Aug 24, 2020 · 1 comment
Open

Generic Extractor downloads HTML file #26429

RingoTheDog opened this issue Aug 24, 2020 · 1 comment

Comments

@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented Aug 24, 2020

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

C:>youtube-dl.py -v "https://www.pgatour.com/video/2020/08/23/robby-shelton-mak
es-birdie-on-no--18-in-round-4-at-the-northern-.html"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.pgatour.com/video/2020/08/23/robb
y-shelton-makes-birdie-on-no--18-in-round-4-at-the-northern-.html']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.6.3 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71727-g46778ab, rtmpdump 2.4
[debug] Proxy map: {}
[generic] robby-shelton-makes-birdie-on-no--18-in-round-4-at-the-northern-: Requ
esting header
WARNING: Falling back on generic information extractor.
[generic] robby-shelton-makes-birdie-on-no--18-in-round-4-at-the-northern-: Down
loading webpage
[generic] robby-shelton-makes-birdie-on-no--18-in-round-4-at-the-northern-: Extr
acting information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://www.pgatour.co.kr/bin/pgatour/video-play
er/iframe.html?ec=6183834779001'
[download] Destination: Robby Shelton makes birdie on No. 18 in Round 4 at THE N
ORTHERN TRUST - PGA TOUR Video-iframe.html
[download] 100% of 1.48KiB in 00:01

Results in an HTML file that looks like this:

Robby Shelton makes birdie on No. 18 in Round 4 at THE NORTHERN TRUST - PGA TOUR Video-iframe.html

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no" />
    <link rel="stylesheet" href="/etc/designs/pgatour-libs/clientlibs/player-embedded.min.css" type="text/css">
<script type="text/javascript" src="/etc/designs/pgatour-libs/clientlibs/player-embedded.min.js"></script>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700|Roboto:400,500,300,700|Crimson+Text:400,600,700|Material+Icons' rel='stylesheet' type='text/css'>
</head>

<body>
<script>
    pgatour.playerOptions = {
        accountId: '6082840763001',
        playerId: 'SrU7Z2W8U',
        playsinline: true,
        autoplay: false,
        endCards: true,
        disablePreroll: false,
        embedCodeTemplate: "<iframe width='640' height='360' frameborder='0' allowfullscreen src='{domain}'></iframe>",
        controls: true,
        videoDetailsUrl: '/bin/data/feeds/video-details.json/videoIds={videoIds}&path=/content',
        relatedVideosUrl: '/bin/data/feeds/endcards.videos.json/path=/content',
    };

    pgatour.cloudinaryConfig = {"cloud_name":"omnigon-testing"};
    pgatour.initCloudinary(pgatour.cloudinaryConfig);
    pgatour.cloudinaryFetchURLs = [
        'pgaondemand-a.akamaihd.net',
        'cf-images.us-east-1.prod.boltdns.net',
        'cdninstagram.com',
        'twitter.com',
        'twimg.com',
        'fbcdn.net',
        'facebook.com',
        'lpga.com'
    ];
</script>

<script 


Description

When trying to download video from:
https://www.pgatour.com/video/2020/08/23/robby-shelton-makes-birdie-on-no--18-in-round-4-at-the-northern-.html

The Generic Extractor downloads a 2kb HTML file that I believe is the iFrame that video plays in.

JFYI...I was able to download the TS files individually from akamai:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:10
#EXTINF:10.010,
https://pgatourvod-a.akamaihd.net/media/v1/hls/v4/clear/6082840763001/c1fa6d07-04ef-4923-a75c-819db522e81c/e5f98ea3-4b66-4fe5-97a8-5d0311b54cdb/5x/segment0.ts
#EXTINF:10.010,
https://pgatourvod-a.akamaihd.net/media/v1/hls/v4/clear/6082840763001/c1fa6d07-04ef-4923-a75c-819db522e81c/e5f98ea3-4b66-4fe5-97a8-5d0311b54cdb/5x/segment1.ts
#EXTINF:9.443,
https://pgatourvod-a.akamaihd.net/media/v1/hls/v4/clear/6082840763001/c1fa6d07-04ef-4923-a75c-819db522e81c/e5f98ea3-4b66-4fe5-97a8-5d0311b54cdb/5x/segment2.ts
#EXT-X-ENDLIST

Thanks
Ringo

@ahmedtds
Copy link

@ahmedtds ahmedtds commented Aug 25, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.