You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlc/youtube_dl/extractor
phi 097eba019d bug fix for extractor xiami.py
Before applying this patch, when downloading resources from xiami.com, it crashes with these:
Traceback (most recent call last):
  File "/home/phi/.local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 433, in main
    _real_main(argv)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 423, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1786, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 691, in extract_info
    ie_result = ie.extract(url)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 347, in extract
    return self._real_extract(url)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/xiami.py", line 116, in _real_extract
    return self._extract_tracks(self._match_id(url))[0]
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/xiami.py", line 43, in _extract_tracks
    '%s/%s%s' % (self._API_BASE_URL, item_id, '/type/%s' % typ if typ else ''), item_id)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 562, in _download_json
    json_string, video_id, transform_source=transform_source, fatal=fatal)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 568, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'NoneType'

This patch solves exactly this problem.
8 years ago
..
__init__.py
abc.py
abc7news.py
abcnews.py
academicearth.py
acast.py
addanime.py
adobetv.py
adultswim.py [adultswim] Remove superfluous md5 from test 8 years ago
aenetworks.py
afreecatv.py
aftonbladet.py
airmozilla.py
aljazeera.py
allocine.py
alphaporno.py
amp.py
animeondemand.py
anitube.py
anvato.py
anysex.py
aol.py [features.aol.com] Fix _TESTS 8 years ago
aparat.py [aparat] Fix extraction 8 years ago
appleconnect.py
appletrailers.py
archiveorg.py [archiveorg] PEP 8 8 years ago
ard.py [ard:mediathek] Skip unavailable test 8 years ago
arkena.py [arkena] Enable dash formats 8 years ago
arte.py
atresplayer.py
atttechchannel.py
audimedia.py
audioboom.py
audiomack.py
azubu.py
baidu.py
bambuser.py
bandcamp.py
bbc.py [bbc] Add proper default to _search_json_ld call 8 years ago
beatportpro.py
beeg.py
behindkink.py
bet.py
bigflix.py [bigflix] Remove an invalid test 8 years ago
bild.py
bilibili.py [bilibili] Update _TESTS 8 years ago
biobiochiletv.py
biqle.py [biqle] Skip an invalid test 8 years ago
bleacherreport.py
blinkx.py
bloomberg.py [bloomberg] Support BPlayer() players (closes #10187) 8 years ago
bokecc.py
bpb.py
br.py
bravotv.py
breakcom.py
brightcove.py
buzzfeed.py
byutv.py
c56.py
camdemy.py [camdemy] Extract duration properly 8 years ago
camwithher.py
canalc2.py
canalplus.py
canvas.py
carambatv.py
cbc.py [cbc] PEP 8 8 years ago
cbs.py
cbsinteractive.py
cbslocal.py [cbslocal] Fix timestamp parsing (closes #10213) 8 years ago
cbsnews.py
cbssports.py
ccc.py
cda.py
ceskatelevize.py
channel9.py
chaturbate.py [chaturbate] Skip the invalid test 8 years ago
chilloutzone.py
chirbit.py [chirbit] Fix extraction (Closes #10296) 8 years ago
cinchcast.py
clipfish.py
cliphunter.py
cliprs.py
clipsyndicate.py
closertotruth.py
cloudy.py
clubic.py
clyp.py
cmt.py [cmt] Detect unavailable videos and update _TESTS 8 years ago
cnbc.py
cnn.py
collegerama.py
comcarcoff.py
comedycentral.py [comedycentral] Re-add shortnames 8 years ago
common.py [extractor/common] Respect default in _search_json_ld 8 years ago
commonmistakes.py
commonprotocols.py
condenast.py [condenast] Make _search_json_ld call non fatal 8 years ago
coub.py
cracked.py
crackle.py
criterion.py
crooksandliars.py
crunchyroll.py [crunchyroll] Add support for HLS (Closes #10301) 8 years ago
cspan.py
ctsnews.py [ctsnews] Fix extraction 8 years ago
ctv.py
ctvnews.py
cultureunplugged.py
cwtv.py [cwtv] extract http formats 8 years ago
dailymail.py [DailyMail] Improve title and description extraction 8 years ago
dailymotion.py [dailymotion:playlist] Carry long line 8 years ago
daum.py
dbtv.py
dcn.py [dcn] Enable dash formats 8 years ago
dctp.py
deezer.py
defense.py
democracynow.py
dfb.py
dhm.py
digiteka.py
discovery.py
discoverygo.py [discoverygo] Add extractor (Closes #10245) 8 years ago
dispeak.py
dotsub.py
douyutv.py
dplay.py
dramafever.py
drbonanza.py
dreisat.py
dropbox.py
drtuber.py [drtuber] Improve title extraction 8 years ago
drtv.py
dumpert.py
dvtv.py
dw.py
eagleplatform.py
ebaumsworld.py
echomsk.py
ehow.py
eighttracks.py
einthusan.py
eitb.py
ellentv.py
elpais.py
embedly.py
engadget.py [engadget] Relax _VALID_URL 8 years ago
eporner.py [eporner] Fix extraction (Closes #10139) 8 years ago
eroprofile.py
escapist.py
espn.py
esri.py
europa.py
everyonesmixtape.py
exfm.py
expotv.py [expotv] Improve extraction and update test 8 years ago
extractors.py [franceculture] Fix extraction (Closes #10324) 8 years ago
extremetube.py
eyedotv.py
facebook.py [facebook] Relax _VALID_URL (Closes #10151) 8 years ago
faz.py
fc2.py
fczenit.py
firstpost.py
firsttv.py
fivemin.py [5min] fix _VALID_URL(closes #10228) 8 years ago
fivetv.py
fktv.py
flickr.py
flipagram.py [flipagram] Add proper default to _search_json_ld call 8 years ago
folketinget.py
footyroom.py
formula1.py [formula1] Relax _VALID_URL (Closes #10283) 8 years ago
fourtube.py [4tube] Fix metadata extraction (Closes #10321) 8 years ago
fox.py [fox] fix theplatform release url query 8 years ago
foxgay.py
foxnews.py
foxsports.py
franceculture.py [franceculture] Fix extraction (Closes #10324) 8 years ago
franceinter.py
francetv.py [francetvinfo] Relax _VALID_URL 8 years ago
freesound.py
freespeech.py
freevideo.py
funimation.py
funnyordie.py
fusion.py
gameinformer.py
gameone.py
gamersyde.py
gamespot.py
gamestar.py
gazeta.py
gdcvault.py
generic.py [extractor/generic] Add proper default to _search_json_ld call 8 years ago
gfycat.py
giantbomb.py
giga.py
glide.py
globo.py
godtube.py
godtv.py
golem.py
googledrive.py
googleplus.py
googlesearch.py
goshgay.py
gputechconf.py
groupon.py
hark.py
hbo.py
hearthisat.py
heise.py
hellporno.py
helsinki.py
hentaistigma.py
hgtv.py [hgtv] Add new extractor(closes #3999) 8 years ago
historicfilms.py
hitbox.py
hornbunny.py
hotnewhiphop.py
hotstar.py
howcast.py
howstuffworks.py
hrti.py
huffpost.py
hypem.py
iconosquare.py
ign.py
imdb.py
imgur.py [imgur] Fix width and height extraction (Closes #10325) 8 years ago
ina.py
indavideo.py
infoq.py
instagram.py [instagram] Remove duplicate field in test 8 years ago
internetvideoarchive.py
iprima.py
iqiyi.py
ir90tv.py
ivi.py
ivideon.py
izlesene.py
jeuxvideo.py
jove.py
jpopsukitv.py
jwplatform.py [jwplatform] add support for playlist extraction and relative urls and improve audio detection 8 years ago
kaltura.py [kaltura] remove debugging line 8 years ago
kamcord.py
kanalplay.py
kankan.py
karaoketv.py
karrierevideos.py
keek.py
keezmovies.py
khanacademy.py
kickstarter.py
konserthusetplay.py
kontrtube.py
krasview.py
ku6.py
kusi.py
kuwo.py [kuwo:singer] Fix extraction 8 years ago
la7.py
laola1tv.py
lcp.py [lcp] Improve extraction 8 years ago
learnr.py
lecture2go.py
leeco.py
lemonde.py
libraryofcongress.py
libsyn.py
lifenews.py
limelight.py [limelight] extract http formats 8 years ago
litv.py
liveleak.py
livestream.py
lnkgo.py
localnews8.py
lovehomeporn.py
lrt.py
lynda.py
m6.py
macgamestore.py
mailru.py
makerschannel.py
makertv.py
matchtv.py
mdr.py
meta.py
metacafe.py
metacritic.py
mgoon.py
mgtv.py [mgtv] Fix typo 8 years ago
microsoftvirtualacademy.py
minhateca.py
ministrygrid.py
minoto.py
miomio.py
mit.py
mitele.py
mixcloud.py
mlb.py
mnet.py
moevideo.py
mofosex.py
mojvideo.py
moniker.py
morningstar.py
motherless.py
motorsport.py
movieclips.py
moviezine.py
mpora.py
msn.py
mtv.py [mtv.de] Skip 2 geo-restricted tests 8 years ago
muenchentv.py [muenchentv] Fix extraction (Closes #10313) 8 years ago
musicplayon.py
mwave.py
myspace.py
myspass.py
myvi.py
myvideo.py
myvidster.py
nationalgeographic.py [natgeo] fix tests(closes #10229) 8 years ago
naver.py [naver] extract upload date 8 years ago
nba.py
nbc.py
ndr.py
ndtv.py
nerdcubed.py
neteasemusic.py
netzkino.py
newgrounds.py
newstube.py
nextmedia.py
nfb.py
nfl.py
nhl.py
nick.py Update _TESTS for MTV sites 8 years ago
niconico.py
ninecninemedia.py
ninegag.py
ninenow.py
nintendo.py
noco.py
normalboots.py
nosvideo.py
nova.py
novamov.py
nowness.py
nowtv.py
noz.py
npo.py
npr.py
nrk.py
ntvde.py
ntvru.py [ntvru] Fix extraction 8 years ago
nuevo.py
nuvid.py
nytimes.py
odatv.py
odnoklassniki.py
oktoberfesttv.py
once.py
onet.py [onet] Enable dash formats 8 years ago
onionstudios.py
ooyala.py
openload.py [openload] Fix extraction (closes #9706) 8 years ago
ora.py
orf.py [orf:oe1] Relax _VALID_URL 8 years ago
pandoratv.py
parliamentliveuk.py
patreon.py
pbs.py [pbs] Clarify comment on http formats 8 years ago
people.py
periscope.py
philharmoniedeparis.py
phoenix.py
photobucket.py
pinkbike.py
pladform.py
played.py
playfm.py
plays.py
playtvak.py
playvid.py
playwire.py
pluralsight.py
podomatic.py
pokemon.py [pokemon] improve _VALID_URL 8 years ago
polskieradio.py
porn91.py
pornhd.py
pornhub.py [pornhub] Make error regex less ambiguous (Closes #10138) 8 years ago
pornotube.py [pornotube] Fix extraction (Closes #10322) 8 years ago
pornovoisines.py
pornoxo.py
presstv.py
primesharetv.py
promptfile.py
prosiebensat1.py
puls4.py
pyvideo.py
qqmusic.py
r7.py
radiobremen.py
radiocanada.py
radiode.py
radiofrance.py
radiojavan.py
rai.py
rbmaradio.py [rbmaradio] Improve, simplify and extract all formats (Closes #10242) 8 years ago
rds.py
redtube.py
regiotv.py
restudy.py
reuters.py
reverbnation.py
revision3.py
rice.py
ringtv.py
ro220.py
rockstargames.py
roosterteeth.py
rottentomatoes.py
roxwel.py
rozhlas.py [rozhlas] Fix regexes and improve extraction (Closes #10253) 8 years ago
rtbf.py
rte.py
rtl2.py
rtlnl.py [rtlnl] Relax _VALID_URL (Closes #10282) 8 years ago
rtp.py
rts.py
rtve.py [rtve] Fix extraction for some videos 8 years ago
rtvnh.py
rudo.py
ruhd.py
ruleporn.py
rutube.py
rutv.py
ruutu.py
safari.py [safari] Relax url regexes (Closes #10202) 8 years ago
sandia.py
sapo.py
savefrom.py
sbs.py
scivee.py
screencast.py
screencastomatic.py
screenjunkies.py
screenwavemedia.py
seeker.py
senateisvp.py
sendtonews.py
servingsys.py
sexu.py
shahid.py
shared.py [shared] Modernize and make more robust 8 years ago
sharesix.py
sina.py
sixplay.py
skynewsarabia.py
skysports.py
slideshare.py
slutload.py
smotri.py [smotri] Modernize, make more robust and fix tests 8 years ago
snotr.py
sohu.py [sohu] Update _TESTS (closes #10260) 8 years ago
sonyliv.py [sonyliv] Improve (Closes #10258) 8 years ago
soundcloud.py [soundcloud] Add _extract_urls (#10179) 8 years ago
soundgasm.py
southpark.py Update _TESTS for MTV sites 8 years ago
spankbang.py
spankwire.py
spiegel.py
spiegeltv.py
spike.py Update _TESTS for MTV sites 8 years ago
sport5.py
sportbox.py
sportdeutschland.py
sportschau.py
srgssr.py
srmediathek.py
ssa.py
stanfordoc.py
steam.py
stitcher.py
streamable.py
streamcloud.py
streamcz.py
streetvoice.py
sunporno.py [sunporno] Add support for embed URLs 8 years ago
svt.py
swrmediathek.py
syfy.py
sztvhu.py
tagesschau.py
tass.py
tdslifeway.py
teachertube.py
teachingchannel.py
teamcoco.py
techtalks.py
ted.py
tele13.py
telebruxelles.py
telecinco.py
telegraaf.py [telegraaf] Make hls non fatal 8 years ago
telemb.py
teletask.py
telewebion.py
testurl.py
tf1.py
theintercept.py
theplatform.py
thescene.py
thesixtyone.py
thestar.py
thisamericanlife.py
thisav.py
threeqsdn.py
thvideo.py
tinypic.py
tlc.py
tmz.py
tnaflix.py [tnaflixnetworkbase] Improve title extraction 8 years ago
toggle.py
toutv.py
toypics.py
traileraddict.py
trilulilu.py
trollvids.py
trutube.py
tube8.py
tubitv.py
tudou.py
tumblr.py
tunein.py
turbo.py
tutv.py
tv2.py [tv2] Improve extraction 8 years ago
tv3.py
tv4.py
tvc.py
tvigle.py
tvland.py Update _TESTS for MTV sites 8 years ago
tvp.py [tvp] extract video id from the webpage(fixes #7799) 8 years ago
tvplay.py [tvplay] Capture and output native error message 8 years ago
tweakers.py
twentyfourvideo.py [24video] Add support for me and xxx TLDs 8 years ago
twentymin.py
twentytwotracks.py
twitch.py [twitch:clips] Sort formats 8 years ago
twitter.py
udemy.py
udn.py
unistra.py
uol.py [uol] remove unused import 8 years ago
urort.py
urplay.py
usatoday.py
ustream.py
ustudio.py
varzesh3.py
vbox7.py [vbox7] Remove unused imports 8 years ago
veehd.py
veoh.py
vessel.py
vesti.py
vevo.py
vgtv.py
vh1.py
vice.py
vidbit.py
viddler.py
videodetective.py
videofyme.py
videomega.py
videomore.py
videopremium.py
videott.py
vidio.py
vidme.py
vidzi.py
vier.py
viewlift.py
viewster.py
viidea.py
viki.py
vimeo.py
vimple.py
vine.py
vk.py
vlive.py
vodlocker.py
vodplatform.py [vodplatform] Add new extractor 8 years ago
voicerepublic.py
voxmedia.py
vporn.py
vrt.py
vube.py
vuclip.py
walla.py
washingtonpost.py
wat.py [wat] improve extraction(#10281) 8 years ago
watchindianporn.py
wdr.py
webofstories.py
weiqitv.py
wimp.py
wistia.py
worldstarhiphop.py
wrzuta.py
wsj.py
xbef.py
xboxclips.py
xfileshare.py
xhamster.py
xiami.py bug fix for extractor xiami.py 8 years ago
xminus.py
xnxx.py
xstream.py
xtube.py
xuite.py
xvideos.py
xxxymovies.py
yahoo.py
yam.py
yandexmusic.py [yandexmusic:track] Fix extraction (Closes #10193) 8 years ago
yesjapan.py
yinyuetai.py
ynet.py
youjizz.py
youku.py
youporn.py
yourupload.py
youtube.py [youtube] Fix authentication (Closes #10140) 8 years ago
zapiks.py
zdf.py
zingmp3.py
zippcast.py