Commit Graph

786 Commits (4c47858c0584f5e38904871f8543f7271d703cc2)

Author SHA1 Message Date
xarantolus 4c47858c05 Fix regex for other variable declaration type
This now supports declarations like `window["ytInitialData"] = ...` and `var ytInitialData = ...`
4 years ago
xarantolus 94255fa0b1 [youtube] More general title extraction
Seems like this attribute is moved every few weeks, so we just extract both and use the one that is present.
5 years ago
xarantolus 7d743516b5 [youtube] Make `ytcfg.set` config extraction non-fatal
If the markup of the page changes in the future, it might be possible that _FEED_DATA still works, but the other regex does not. SInce it is not necessary for the first page of videos, we make sure the program doesn't exit before extracting them.

TL;DR: Extract the first video page even if there are problems
5 years ago
xarantolus a5e386d9fe Fix python2 compatibility and title extraction 5 years ago
xarantolus 4f37c60bf5 Run formatter 5 years ago
xarantolus c449f70965 [youtube] Fix feed extraction
In order to extract videos from further pages, we need to get various variables that are in an argument to the `ytcfg.set` call in a script on the feed page.
5 years ago
Sergey M․ 49004a6b59 [youtube] Fix sigfunc name extraction (closes #26134, closes #26135, closes #26136, closes #26137) 5 years ago
MRWITEK 54ffcbb8eb [youtube] Improve description extraction (closes #25937) (#25980) 5 years ago
Glenn Slayden bb2c950b8e [youtube] Prevent excess HTTP 301 (#25786) 5 years ago
Sergey M․ 255f31b5cb [youtube:playlists] Extend _VALID_URL (closes #25810) 5 years ago
xarantolus 7fa0a67cc1 Remove unused variable 5 years ago
xarantolus c37ca4732b [youtube] Remote download limit 5 years ago
xarantolus 5cbe7563be [youtube] Return to old feed extraction code as it *seems* like that change was reverted
The old code now works again, but it downloads without limit. This is why a limit of 1000 videos is added, it can be overwritten with the `--max-downloads` option - that way, only so many ids will be extracted as videos downloaded
5 years ago
xarantolus 6a3cc89394 [youtube] Make search extraction less dependent on json schema.
If an object looks like a video (it has a `videoId` key), assume that it is.
5 years ago
xarantolus b3fd4b155e run flake8 5 years ago
xarantolus 57f72370c5 [youtube] Fix feed extraction
This moves feed extraction from using html content to json metadata. However, loading additional pages no longer works.

The _extract_video_info function also returns a continuation object that contains some metadata that - together with an API key that is in the page source - might be used to request the next page.
5 years ago
xarantolus 6dad89289c [youtube] Move search URL extraction to appropriate extractor 5 years ago
xarantolus 7a74feda78 [youtube] Fix extraction of search urls (closes ytdl-org/youtube-dl#25696) 5 years ago
Sergey M․ ee0b726cd7
[youtube] Force old layout (closes #25682, closes #25683, closes #25680, closes #25686) 5 years ago
Sergey M․ dbeafce5d5
[youtube] Fix categories and improve tags extraction 5 years ago
Sergey M․ a6211d237b
[youtube] Fix uploader id and uploader URL extraction 5 years ago
Sergey M․ 7b16239a49
[youtube] Improve view count extraction 5 years ago
Sergey M․ 37357d21a9
[youtube] Fix upload date extraction 5 years ago
Sergey M․ b477fc1314
[youtube] Fix thumbnails extraction and remove uploader id extraction warning (closes #25676) 5 years ago
Sergey M․ d84b21b427
[youtube] Fix playlist and feed extraction (closes #25675) 5 years ago
Sergey M․ 84213ea8d4
[youtube] Extract chapters from JSON (closes #24819) 5 years ago
striker.sh 1db5ab6b34
[youtube] Add support for more invidious instances (#25417) 5 years ago
Juan Francisco Cantero Hurtado 384bf91f88
[youtube] Add support for yewtu.be (#25226) 5 years ago
Sergey M․ fa3db38333
[youtube] Improve signature cipher extraction (closes #25188) 5 years ago
Sergey M․ e40c758c2a
[youtube] Improve player id extraction and add tests 5 years ago
Sergey M․ 011e75e641
[youtube] Use redirected video id if any (closes #25063) 5 years ago
Sergey M․ 00eb865b3c
[youtube] Fix DRM videos detection (refs #24736) 5 years ago
Sergey M․ 6b09401b0b
[youtube] Skip broken multifeed videos (closes #24711) 5 years ago
Sergey M․ 43ebf77df3
[youtube] Remove outdated code
Additional get_video_info requests don't seem to provide any extra itags any longer
5 years ago
Sergey M․ d332ec725d
[youtube] Improve age-gated videos extraction in 429 error conditions (refs #24283) 5 years ago
Sergey M․ f93abcf1da
[youtube] Improve extraction in 429 error conditions (closes #24283) 5 years ago
Sergey M․ 5429d6a9cb
[youtube] Fix tests 5 years ago
Sergey M․ dc879c5a37
[youtube] Fix age-gated videos support without login (closes #24248) 5 years ago
jxu 0e30a7b973
[youtube:playlist] Fix tests (closes #23872) (#23885) 5 years ago
Sergey M․ c3cfea9068
[youtube] Fix sigfunc name extraction (closes #23819) 5 years ago
Remita Amine 66b4872747 [youtube] add support youtubekids.com(closes #23272) 5 years ago
sofutru 76e510b92c [youtube] Remove support for invidious.enkirton.net (#22543) 5 years ago
sofutru 894b3826f5 [youtube] Add support for yt.lelux.fi (#22597) 5 years ago
sofutru 33c1c7d80f [youtube] Add support for owxfohz4kjyv25fvlqilyxast7inivgiktls3th44jhk3ej3i7ya.b32.i2p (#22292) 5 years ago
sofutru 666d808e70 [youtube] Add support for invidious.drycat.fr (#22451) 5 years ago
Sergey M․ 4e3f1f0469
[youtube:playlist] Unescape playlist uploader (closes #22483) 5 years ago
Sergey M․ 4878759f3b
[youtube] Remove quality and tbr for itag 43 (closes #22372) 5 years ago
Sergey M․ bf1317d257
[youtube] Quick extraction tempfix (closes #22367, closes #22163) 5 years ago
sofutru bff90fc518 [youtube] Add support for invidious tor instances (#22268) 5 years ago
sofutru 494d664e67 [youtube] Add support for invidious.nixnet.xyz and yt.elukerio.org (#22223) 6 years ago