yt-dlp/youtube_dl/extractor
Jaime Marquínez Ferrándiz a504ced097 Improve subtitles support
For each language the extractor builds a list with the available formats sorted (like for video formats), then YoutubeDL selects one of them using the '--sub-format' option which now allows giving the format preferences (for example 'ass/srt/best').
For each format the 'url' field can be set so that we only download the contents if needed, or if the contents needs to be processed (like in crunchyroll) the 'data' field can be used.

The reasons for this change are:
* We weren't checking that the format given with '--sub-format' was available, checking it in each extractor would be repetitive.
* It allows to easily support giving a format preference.
* The subtitles were automatically downloaded in the extractor, but I think that if you use for example the '--dump-json' option you want to finish as fast as possible.

Currently only the ted extractor has been updated, but the old system still works.
2015-02-16 21:51:03 +01:00
..
__init__.py [history] Add extractor (Closes #4934) 2015-02-15 04:57:52 +06:00
abc.py
abc7news.py
academicearth.py
addanime.py
adobetv.py
adultswim.py
aftenposten.py
aftonbladet.py
aljazeera.py
allocine.py
alphaporno.py
anitube.py
anysex.py
aol.py
aparat.py
appletrailers.py
archiveorg.py
ard.py
arte.py
atresplayer.py
atttechchannel.py
audiomack.py
azubu.py
bambuser.py [bambuser] Fix 'uploader_id' extraction (fixes #4944) 2015-02-13 11:36:33 +01:00
bandcamp.py
bbccouk.py [bbccouk] Fix fallback to legacy playlist 2015-02-15 16:32:38 +06:00
beeg.py [beeg] fix test 2015-02-14 13:42:42 +01:00
behindkink.py
bet.py
bild.py
bilibili.py
blinkx.py
bliptv.py
bloomberg.py
bpb.py
br.py
breakcom.py
brightcove.py
buzzfeed.py
byutv.py
c56.py
camdemy.py [camdemy] Fix _VALID_URL 2015-02-13 20:10:42 +06:00
canal13cl.py
canalc2.py
canalplus.py [canalplus] Add support for itele.fr URLs (Closes #4931) 2015-02-11 16:21:52 +02:00
cbs.py
cbsnews.py
ccc.py
ceskatelevize.py
channel9.py
chilloutzone.py
cinchcast.py
clipfish.py
cliphunter.py
clipsyndicate.py
cloudy.py
clubic.py
cmt.py
cnet.py
cnn.py
collegehumor.py
collegerama.py
comcarcoff.py
comedycentral.py
common.py Improve subtitles support 2015-02-16 21:51:03 +01:00
commonmistakes.py
condenast.py
cracked.py
criterion.py
crunchyroll.py
cspan.py
ctsnews.py
dailymotion.py
daum.py
dbtv.py
dctp.py [dctptv] Skip rtmp download 2015-02-11 22:10:33 +06:00
deezer.py
defense.py
dfb.py
discovery.py
divxstage.py
dotsub.py [dotsub] Fix extraction and modernize 2015-02-11 22:33:03 +06:00
drbonanza.py
dreisat.py
dropbox.py
drtuber.py [drtuber] Add one more title regex 2015-02-14 18:50:13 +06:00
drtv.py
dump.py
dvtv.py
ebaumsworld.py
echomsk.py
ehow.py
eighttracks.py
einthusan.py
eitb.py
ellentv.py
elpais.py
empflix.py
engadget.py
eporner.py
eroprofile.py
escapist.py
everyonesmixtape.py
exfm.py
expotv.py
extremetube.py
facebook.py
faz.py
fc2.py
firedrive.py
firstpost.py
firsttv.py Remove unused imports 2015-02-14 22:19:58 +01:00
fivemin.py
fktv.py
flickr.py
folketinget.py
fourtube.py
foxgay.py
foxnews.py
franceculture.py
franceinter.py
francetv.py
freesound.py
freespeech.py
freevideo.py
funnyordie.py
gamekings.py
gameone.py
gamespot.py
gamestar.py
gametrailers.py
gdcvault.py
generic.py
giantbomb.py
giga.py
glide.py
globo.py
godtube.py
goldenmoustache.py
golem.py
googleplus.py
googlesearch.py
gorillavid.py
goshgay.py
grooveshark.py
groupon.py
hark.py
hearthisat.py
heise.py
hellporno.py
helsinki.py
hentaistigma.py
historicfilms.py
history.py [history] Add extractor (Closes #4934) 2015-02-15 04:57:52 +06:00
hitbox.py
hornbunny.py
hostingbulk.py
hotnewhiphop.py
howcast.py
howstuffworks.py
huffpost.py
hypem.py
iconosquare.py
ign.py
imdb.py
ina.py
infoq.py
instagram.py
internetvideoarchive.py
iprima.py
ivi.py
izlesene.py
jadorecettepub.py
jeuxvideo.py
jove.py
jpopsukitv.py
jukebox.py
kankan.py
karaoketv.py
keek.py
keezmovies.py
khanacademy.py
kickstarter.py
kontrtube.py
krasview.py
ku6.py
la7.py
laola1tv.py
lifenews.py
liveleak.py
livestream.py
lnkgo.py
lrt.py
lynda.py
m6.py
macgamestore.py
mailru.py
malemotion.py
mdr.py
metacafe.py
metacritic.py
mgoon.py
minhateca.py
ministrygrid.py
mit.py
mitele.py
mixcloud.py
mlb.py
moevideo.py
mofosex.py
mojvideo.py
moniker.py
mooshare.py
morningstar.py
motherless.py
motorsport.py
movieclips.py
moviezine.py
movshare.py
mpora.py
mtv.py
muenchentv.py
musicplayon.py
musicvault.py
muzu.py
myspace.py
myspass.py
myvideo.py
myvidster.py
naver.py
nba.py
nbc.py Remove unused imports 2015-02-14 22:19:58 +01:00
ndr.py
ndtv.py
nerdcubed.py
nerdist.py
netzkino.py
newgrounds.py
newstube.py
nextmedia.py
nfb.py
nfl.py
nhl.py
niconico.py
ninegag.py
noco.py
normalboots.py
nosvideo.py
novamov.py
nowness.py
nowvideo.py
npo.py [npo:radio] Move to extractor to common npo place and add extractor for fragments 2015-02-13 01:36:54 +06:00
nrk.py
ntvde.py
ntvru.py [ntvru] Adapt to new direct delivery and modernize (Closes #4918) 2015-02-10 21:35:34 +06:00
nuvid.py
nytimes.py
oktoberfesttv.py
ooyala.py
openfilm.py
orf.py
parliamentliveuk.py
patreon.py
pbs.py
phoenix.py
photobucket.py
planetaplay.py
played.py
playfm.py
playvid.py
podomatic.py
pornhd.py
pornhub.py
pornotube.py
pornoxo.py
promptfile.py
prosiebensat1.py
pyvideo.py
quickvid.py
radiobremen.py
radiode.py
radiofrance.py
rai.py
rbmaradio.py
redtube.py
restudy.py
reverbnation.py
ringtv.py
ro220.py
rottentomatoes.py
roxwel.py
rtbf.py
rte.py
rtl2.py
rtlnl.py
rtlnow.py
rtp.py
rts.py
rtve.py
ruhd.py
rutube.py
rutv.py
sapo.py
savefrom.py
sbs.py
scivee.py
screencast.py
screencastomatic.py
screenwavemedia.py
servingsys.py
sexu.py
sexykarma.py
shared.py
sharesix.py
sina.py
slideshare.py
slutload.py
smotri.py
snotr.py
sockshare.py
sohu.py
soundcloud.py
soundgasm.py
southpark.py
space.py
spankwire.py
spiegel.py
spiegeltv.py
spike.py
sport5.py
sportbox.py
sportdeutschland.py
srmediathek.py
stanfordoc.py
steam.py
streamcloud.py
streamcz.py [streamcz] Fix extraction (Closes #4940) 2015-02-14 17:48:04 +02:00
streetvoice.py
subtitles.py
sunporno.py [sunporno] Keep old video regex just in case 2015-02-14 18:33:52 +06:00
svtplay.py
swrmediathek.py
syfy.py
sztvhu.py
tagesschau.py
tapely.py
tass.py
teachertube.py
teachingchannel.py
teamcoco.py [teamcoco] Fix video id extraction 2015-02-11 15:47:19 +02:00
techtalks.py
ted.py Improve subtitles support 2015-02-16 21:51:03 +01:00
telebruxelles.py
telecinco.py
telemb.py
teletask.py
tenplay.py
testtube.py
testurl.py
tf1.py
theonion.py
theplatform.py [theplatform] Add URL sign capability 2015-02-15 04:56:12 +06:00
thesixtyone.py
thisav.py
thvideo.py
tinypic.py
tlc.py
tmz.py
tnaflix.py
toutv.py
toypics.py
traileraddict.py
trilulilu.py
trutube.py
tube8.py
tudou.py
tumblr.py
tunein.py
turbo.py
tutv.py
tvigle.py
tvp.py
tvplay.py
tweakers.py
twentyfourvideo.py
twitch.py
ubu.py
udemy.py
unistra.py
urort.py
ustream.py
vbox7.py
veehd.py
veoh.py
vesti.py
vevo.py
vgtv.py
vh1.py
vice.py
viddler.py
videobam.py
videodetective.py
videofyme.py
videolecturesnet.py
videomega.py
videopremium.py
videott.py
videoweed.py
vidme.py
vidzi.py
vier.py
viki.py
vimeo.py
vimple.py
vine.py
vk.py
vodlocker.py
vporn.py
vrt.py
vube.py
vuclip.py
vulture.py
walla.py
washingtonpost.py
wat.py
wayofthemaster.py
wdr.py
webofstories.py
weibo.py
wimp.py
wistia.py
worldstarhiphop.py
wrzuta.py
wsj.py
xbef.py
xboxclips.py
xhamster.py
xminus.py
xnxx.py
xtube.py
xuite.py
xvideos.py
xxxymovies.py
yahoo.py
yesjapan.py
ynet.py
youjizz.py
youku.py
youporn.py
yourupload.py
youtube.py [youtube] Extract average rating (closes #2362) 2015-02-11 18:39:31 +01:00
zdf.py
zingmp3.py