Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ITV BTCC videos support? #16139
ITV BTCC videos support? #16139
Comments
|
Hi @WolfganP Thanks. |
|
@Tony-il-Capo I couldn't find any way to download the individual files other than going to the weekend page sources, and then manually craft a tester page for a single race file as I did above. I was hoping there was a way to parse the weekend page and get at least a playlist that may individually be fed to youtube-dl for individual download, but this issue was closed and I couldn't find any parser around as a semi-automated workaround. |
|
@Tony-il-Capo it works with https://github.com/rg3/youtube-dl/releases/tag/2018.05.09, with a simple cmd line: @dstftw you're a legend. Thx a lot for implementing the workaround so promptly. Related question: what's the best way to parse the page and just produce a playlist file and not download the files? (so I later can instruct yt-dl it to download just certain items) --flat-playlist (no media filenames listed, just "X of Y" items)
-- get-filename (list the filenames, but not the item # so it's difficult to DL specific items later)
--dump-single-json (it puts lot of detailed info on screen but can't redirect it with -o, and std unix redirect ">" produces a mixed file of info lines + json)
|
|
Unfortunately, I can't get past the geo restriction (even using --geo-bypass , --geo-bypass-county uk) |
|
I'm not UK based either, but I'm using an smartdns service, that may be the difference. Interestingly, @dstftw implemented a new functionality (--geo-bypass-ip-block) that's harcoded in the ITV extractor https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/itv.py
|
|
Didn't test that, but it's interesting. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.09. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
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
-vflag 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 ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
ITV separated the BTCC race videos from the hub (which also seems to be having issues as per #15925)
Lately the video are hosted at http://www.itv.com/btcc/races (ie for a particular weekend all videos are posted at individual pages like: http://www.itv.com/btcc/races/btcc-2018-all-the-action-from-brands-hatch)
Skimming the source code of this sample weekend page, I extracted the vid params and built a test page:
Question 1: is the log error above pointing just to a geo restriction error or is there anything else involved that I missed? (ie: like writing some header to force the ITV scrapper to act instead of a generic one)
Question 2: is there any way to generate a playlist of downloadable items based on pages like http://www.itv.com/btcc/races/btcc-2018-all-the-action-from-brands-hatch with youtube-dl?