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

Add support for Telewebion.com #5135

Closed
lfl2 opened this issue Mar 5, 2015 · 6 comments
Closed

Add support for Telewebion.com #5135

lfl2 opened this issue Mar 5, 2015 · 6 comments
Labels
site-support-request Add extractor(s) for a new domain

Comments

@lfl2
Copy link

lfl2 commented Mar 5, 2015

Telewebion.com is a TV archive. For downloding, it is just enough to get URL and then use rtmpdump, but currently youtube-dl only outputs a useless SMIL file.

This is an example URL:

http://www.telewebion.com/fa/1263668/%D9%82%D8%B1%D8%B9%D9%87%E2%80%8C%DA%A9%D8%B4%DB%8C-%D9%84%DB%8C%DA%AF-%D9%82%D9%87%D8%B1%D9%85%D8%A7%D9%86%D8%A7%D9%86-%D8%A7%D8%B1%D9%88%D9%BE%D8%A7/%2B-%D9%81%D9%88%D8%AA%D8%A8%D8%A7%D9%84.html

using youtube-dl, we get SMIL file downloaded that looks like this:

<smil>
<head>
<meta base="rtmpe://s4.telewebion.com:1935/vod"/>
</head>
<body>
<switch>

<video title="500K" system-bitrate="512000" src="mp4:/media/telewebion/tv3/2015-03-05/normalProgram/0057/file.mp4"/>

<video title="256K" system-bitrate="262144" src="mp4:/media/telewebion/tv3/2015-03-05/normalProgram/0057/file_224_32.mp4"/>

<video title="132K" system-bitrate="135168" src="mp4:/media/telewebion/tv3/2015-03-05/normalProgram/0057/file_100_32.mp4"/>

</switch>
</body>
</smil>

Bitrates can be selected and downloaded by concatenating base URL and appropriate video URL. For example, URL for 500k video is:

rtmpe://s4.telewebion.com:1935/vod/mp4:/media/telewebion/tv3/2015-03-05/normalProgram/0057/file.mp4

that can be downloaded using:

rtmpdump -r rtmpe://s4.telewebion.com:1935/vod/mp4:/media/telewebion/tv3/2015-03-05/normalProgram/0057/file.mp4 -o out.mp4
@naglis naglis added the site-support-request Add extractor(s) for a new domain label Mar 5, 2015
@lfl2
Copy link
Author

lfl2 commented May 21, 2015

Thanks, but the site specific request still isn't adressed. I'm using the latest youtube-dl version, and it doesn't work.

$ youtube-dl --version
2015.05.20

I don't know how to implement a site-specific script, but it seems to be straightforward. Get the smil file from the html, and get the content from it.
If generic method can find the .smil files, it will be ok. If not, for this site, .smil URL is located in window.vod_smil. Right now, the token, etc. is not needed, it is sufficient to include the URL until the first &.
From this:
http://www.telewebion.com/fa/1263668/%D9%82%D8%B1%D8%B9%D9%87%E2%80%8C%DA%A9%D8%B4%DB%8C-%D9%84%DB%8C%DA%AF-%D9%82%D9%87%D8%B1%D9%85%D8%A7%D9%86%D8%A7%D9%86-%D8%A7%D8%B1%D9%88%D9%BE%D8%A7/%2B-%D9%81%D9%88%D8%AA%D8%A8%D8%A7%D9%84.html
you get this:
http://smilserver.telewebion.com/smil/1263668.smil?filepath=/media/telewebion/tv3/2015-03-05/normalProgram/0057/file.mp4
and which is the .smil file.
Then you can find the mp4 URL and get it using rtmpdump as shown above. If the new version extracts videos from SMIL manifests, that would make it easier.

@dstftw
Copy link
Collaborator

dstftw commented May 21, 2015

It's handled perfectly with generic extractor. Post the full output of youtube-dl when run with --verbose option.

@lfl2
Copy link
Author

lfl2 commented May 21, 2015

Thanks, it works fine for the above URL.
But not for this URL:
http://www.telewebion.com/fa/1291102/%D8%B1%DB%8C%D8%A7%D8%B6%DB%8C-%D9%88-%D9%BE%DB%8C%D8%AF%D8%A7%DB%8C%D8%B4-%D8%AA%D9%85%D8%AF%D9%86/%D9%85%D8%B3%D8%AA%D9%86%D8%AF-4.html
and this URL:
http://www.telewebion.com/fa/1290295/%D8%B1%DB%8C%D8%A7%D8%B6%DB%8C-%D9%88-%D9%BE%DB%8C%D8%AF%D8%A7%DB%8C%D8%B4-%D8%AA%D9%85%D8%AF%D9%86/%D9%85%D8%B3%D8%AA%D9%86%D8%AF-4.html
and many others at the front page of the site, as far as I have tested.

@dstftw dstftw reopened this May 21, 2015
@lfl2
Copy link
Author

lfl2 commented May 28, 2015

Should you also re-open #5145?

@yan12125
Copy link
Collaborator

Telewebion support will be complete in the next version.

@marvintkl
Copy link

ERROR: Unsupported URL: https://www.telewebion.com/episode/xxxxxx

It's not supported anymore?

@dirkf dirkf mentioned this issue Dec 2, 2023
11 tasks
dirkf added a commit that referenced this issue Dec 2, 2023
* [telewebion] fix extraction

Resolves #5135 (comment)

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
dirkf added a commit to ytdl-org/ytdl-nightly that referenced this issue Dec 3, 2023
* [telewebion] fix extraction

Resolves ytdl-org/youtube-dl#5135 (comment)

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-support-request Add extractor(s) for a new domain
Projects
None yet
Development

No branches or pull requests

5 participants