ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.73k stars 10.07k forks source link

Feature Request: Adding Hallmark Channel #30973

Open rebublican opened 2 years ago

rebublican commented 2 years ago

Movies can be viewed via URLS:

https://www.watchhallmarktv.com/#/movies/Romance+to+the+Rescue

dirkf commented 2 years ago

The programme metadata can be found by implementing this JS (uses jQuery):

var ns_appid = "P36B92355-598D-4D11-A37C-76836D8938C6";
var spad = ns_appid.length;
var spadd;

function getSpad() {
    var d = new Date();
    spadd = d.getMonth() + 1 + spad;
    if (spadd.length == 1) {
        spadd = "0" + spadd;
    }
    return spadd;
}

function getNewestJSON() {
        var newest = "/datarnd/JSONnewest" + getSpad() + ".json?nocache=" + (new Date()).getDay();
        return $.getJSON(newest);
}

So that's all doable, giving https://www.watchhallmarktv.com/datarnd/JSONnewest42.json?nocache=1 today. However the listed video manifest URL

 "videoUrl": "//crownstreaming.akamaized.net/C3_HD_VOD_MVTV5085/C3_HD_VOD_MVTV5085.m3u8?hdnts=exp=1654298477~acl=/*~hmac=782e2d03a105580e89ff85940fd6c8dda83474280302f50922cfa0d0716c42ff"

gives 403 for me. Presumably it needs additional headers or query parameters that would be revealed by playing the movie with the browser's development tools active. Or maybe Akamai's just being unpleasant again.

dirkf commented 2 years ago

I fetched the manifest URL in the same browser that delivered the JSON.

dirkf commented 2 years ago

@rebublican, are you playing the content in a browser logged in to a US cable provider?

rebublican commented 2 years ago

Yes, I have YouTube TV and logged in with that.

On Thu, May 26, 2022 at 7:52 AM dirkf @.***> wrote:

@rebublican https://github.com/rebublican, are you playing the content in a browser logged in to a US cable provider?

— Reply to this email directly, view it on GitHub https://github.com/ytdl-org/youtube-dl/issues/30973#issuecomment-1138455707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZJEDGNTRNO5CKHZ7P5IQNTVL5QWDANCNFSM5WUTI3LQ . You are receiving this because you were mentioned.Message ID: @.***>