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.
[Discovery] TLC.com subtitle download returns HTTP error 503 #20722
Comments
|
Hello friend, even though you can't see it in common players, the subtitles are already embedded on the video. To extract the subtitle to a separate file, .srt for example, you'll need to download and install ccextractor in this link:
After installing you'll be able to use it on the command line. Assuming you don't properly know how to do this, follow the instructions: 1 - create a new text file called
and save it. where there's the ".mp4" you change for the extension of the video you are intending to extract the subtitles, and where there's the "-out=srt" you change for the desired format of subtitle file to create. 2 - now, you have a file called 3 - now, you have an executable that will extract all the subtitles of the files with the .mp4 extension on the folder. 4 - for this to work put all the videos you want to extract subtitles in a folder, then put the file ps: the subtitle file will be the name of the video file + .srt Hope that helps you. |
|
don't forget to close the issue! |
|
Thanks very much for the info. Issue should remain open (unless it's duplicated; I can't find it on a search but I may be missing it), because ytdl returns an error instead of something like a message indicating ssa/ass embedded subtitles. In fact, I believe ytdl should be able to extract them using |
|
Alright then, well there are many ways of extracting the subtitles from the video file, like a said the ccextractor one is the easiest and fastest I found. The YOUTUBE_DL developers are amazing people, and they provide as much support as they considering that's open-source project and they don't profit over it. So, save then the trouble.. |
|
Excatly same problem on any discovery sites. Issue happen at latest video above feb 2019. Old videos still work |
|
I'm using SVP4 too. It's very neat to use to watch without downloading I used CCextractor GUI and it worked but big disadvange is you need to download whole file which takes 1 and a half hour (1h 30m), excatly like you are watching the video. If you download just 1 min and cancel it, you will only get subtitle up to 1 min. Problem is the file "https://dsc-dp-encoding.s3.amazonaws.com/longform/2019-06/05/187627.001.01.001-275017.scc" is access denied I think only behind the browser have access to it somewhat Could youtube-dl be improved to emulate to try to access scc file? And are there workaround without downloading entire file like extracting subtitle from cache or memory? |
|
TL;DR - Video embedded subs: it's a confusing warning that that "--list-subs" shows an available entry that "--write-sub" can't promptly fetch. Someone might consider change the youtube-dl error: "Unable to download subtitle HTTP Error 403" to maybe: "Unable to fetch independent subtitle file; check to see if subtitles are already embedded within the video". Hi all. Minor update per above on a TLC video. The Youtube-dl program fetches the video just fine -- I didn't realize (or forgot) that it'd do more than just YT, too! Playing said video with my local programs (VLC, PotPlayer, and (UGH) WMP) all work fine.) But! None of these seem to display the embedded subtitles, although I see and use these programs on EVERYthing, sometimes with only internal, and sometimes external subtitles (SRT usually.) Installing ccextractor mentioned above successfully extracts the subtitles to an external file, and suddenly all of the video players suddenly show the subtitles as well. If the subs are interleaved with the video, then you'll HAVE to get the video, of course. I'm only slightly confused why my display programs that always seem to work won't seem to display the known-existing pre-embedded subs, while for years they've handled ever other case just fine. |
|
See #19184 (comment) for the structure that Discovery is returning for video stream info. Besides returning the obvious stream URL, it also includes an array of subs. The Changing the 403 message to something else would be a red herring. The message as-is is indicative of the error that's actually occurring. Rather the logic should be updated to skip the |
|
Same issue with FoodNetwork, which I believe is part of the same company. |
|
@bobbintb The Food Network is indeed part of Discovery but the previous post about having subs embedded still stands. |
Video is downloading OK using cookies.txt export. Subtitle .scc download however returns HTTP error 503.
Before submitting an issue make sure you have:
What is the purpose of 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 ```):