yt-dlp, fereko ea youtube-dlc e nang le lintlafatso tse 'maloa

Matsatsi a mang a fetileng ho phatlalalitsoe tokollo ea mofuta o mocha oa yt-dlp, E leng sesebelisoa sa ho jarolla molumo le video ho tsoa lits'ebeletso tse kang YouTube. Sesebelisoa ke fereko ea youtube-dl e ipapisitse le projeke ea youtube-dlc, e seng e ntse e ntlafatsoa.

Ho tloha hajoale Re ka hlokomela ho ema ha nts'etsopele ea projeke ea pele ea youtube-dl, esale e lokolloa ka lekhetlo la ho qetela ka la 5 Phuptjane 2021 mme ho tloha ka nako eo ha ho so be le litokollo tse ncha, leha ho bile le letoto la netefatso e ncha lekaleng le hloahloa.

Ka nako e ts'oanang, likokoana-hloko tse ling tse mpe (mohlala, mathata a ho jarolla livideo tsa YouTube ka lithibelo tsa lilemo) li lula li sa lokisoa, tseo, hammoho le ho se sebetse ho tsebahalang, ho hlahisang lipotso tse fapaneng ho tsoa ho basebelisi.

Mabapi le yt-dlp

Sepheo sa mantlha sa nts'etsopele ea yt-dlp ke ho eketsa lintlha le litokiso tse ncha, Hape le ho boloka likarolo tsohle tse loketseng tsa projeke ea mantlha, joalo ka tlhophiso ea fomate: likhetho tsa sebopeho sa sebopeho sa mantlha li fetotsoe hore liqeto tse phahameng le li-codec tse ntlafetseng li se li khethoa ho fapana le ho sebelisa bitrate e phahameng. Hape, joale u ka hlakisa mofuta oa odara u sebelisa -S. Sena se lumella khetho e bonolo haholo ho feta kamoo ho ka khonehang ka ho sebelisa -format.

Ka mokhoa o ts'oanang seo boholo ba likarolo tsa lifereko tse ling tsa youtube-dl li tlisitsoe kantle ho naha, ka ho khetheha khetho «-ngola-litlhaloso» (ho kenya litlhaloso tsa video ho infojson), ho kenella liponong tsa pele ho mp4 / ogg / opus le tse ling.

Har'a likarolo tse ncha tsa yt-dlp tse sieo ho tsa mantlha ke:

  • Sebelisa SponsorBlock API ho tlosa / tšoaea melaetsa e tšehelitsoeng ho livideo tsa YouTube.
  • Matla a ho jarolla lialbamo tsa YouTube Music.
  • Bokhoni ba ho kenya li-cookies habonolo ho sebatli.
  • Arola video ka likhaolo.
  • Khoasolla mefuta e mengata ea livideo tsa video.
  • Monyetla oa ho sebelisa aria2c ho jarolla DASH (mpd) le HLS (m3u8).
  • Lits'oants'o tse ncha tsa video
  • Liphepelo tsohle (: ytfav ,: ytwatchlater ,: ytsubs ,: ythistory ,: ytrec) le ho tšehetsa manane a poraefete a jarollotsoeng maqepheng a mangata a litaba
  • Batla (ytsearch:, ytsearchdate :), batla li-urls le mosebetsi oa ho batla li-channel
  • Mefuta e kopanya ho jarolla maqephe a mangata a litaba
  • Tharollo ea karoloana bakeng sa bothata ba moeli
  • Lebisa url / channel ka kotloloho ho boloka boitšoaro ba khale
  • Tlhaloso ea Subtitle e tsoang ho batho ba hlahang
  • Lipampiri le Litsela tse ngata tsa khumo - O ka fana ka litempele tse fapaneng tsa tlhahiso le ho jarolla litsela tsa mefuta e fapaneng ea lifaele.
  • U ka ipehela tsela ea nakoana moo lifaele tsa lipakeng li ka jarolloang u sebelisa -paths (-P)
  • Tlhophiso e nkehang habonolo - Lifaele tsa phetolo li jarisoa ka boiketsetso ho tsoa litsing tsa motso le tsa lapeng.
  • Lintlafatso tsa template ea khumo: Litempele tsa khumo joale li ka hlophisoa bakeng sa letsatsi le nako, linomoro tsa linomoro, ho haola hoa ntho, le tse ling.
  • Likhetho tse ling tse ncha: –print, –ho kopa-boroko, -ho fetola-li-thumbnaile, -write-link, –force-download-archive, –force-overwrites, –break-on-rejectetc.
  • Lintlafatso: Regex e potlakileng le li-opareitara tse ling ho -match-filter, li-file tse ngata tse hlahlobang –postprocessor-argsy –downloader-args, likhetho tse ling tsa khetho ea sebopeho, le tse ling.

Litaba tse kholo tsa yt-dlp 2021.09.02

Phetolelong ena e ncha ho hlakisoa hore ho kengoa tšebetsong tšebelisano 'moho le SponsorBlock API ho kenyelelitsoe, ho tloha pejana, SponSkrub e ne e sebelisetsoa morero ona.

Hape e kentse likhetho tse ncha tsa ho hlakola kapa ho kenya likhaolo tsa video le ts'ehetso ea liteko tsa DASH e bonts'a (o hloka ffmpeg ka setsiba sena).

Ha e le ea ho boleloa hore ho entsoe litokiso tse ngata ho balateli ba seng ba ntse ba le teng, ntle le tse ncha li ile tsa eketsoa, tse kang: BannedVideo, bilibili, Epicon, filmmodu, GabTV, Hungama, ManotoTV, Niconico, Patreon, peloton, ProjectVeritas, radiko, StarTV, tiktok, Tokentube, TV2Hu, voicy.

Qetellong haeba u rata ho tseba haholoanyane ka eona ea projeke ena, o ka sheba lintlha Ka sehokela se latelang.

Fumana yt-dlp

Bakeng sa ba nang le tjantjello ea ho kenya ts'ebeliso ena, ba ka e etsa ka pip:

python3 -m pip install --upgrade yt-dlp

Kapa mokhoa o mong o na le:

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp


Litaba tsa sengoloa sena li latela melao-motheo ea rona ea melao ea boitšoaro ea bongoli. Ho tlaleha phoso tlanya mona.

E-ba oa pele ho fana ka maikutlo

Siea maikutlo a hau

aterese ya hao ya imeile ke ke ho phatlalatswa. masimo a hlokahala a tšoailoe ka *

*

*

  1. E ikarabella bakeng sa data: Miguel Ángel Gatón
  2. Morero oa data: Laola SPAM, tsamaiso ea maikutlo.
  3. Molao: Tumello ea hau
  4. Puisano ea data: Lintlha li ke ke tsa tsebisoa batho ba boraro ntle le ka tlamo ea molao.
  5. Polokelo ea data: Database e hapiloeng ke Occentus Networks (EU)
  6. Litokelo: Nako efe kapa efe o ka fokotsa, oa hlaphoheloa mme oa hlakola tlhaiso-leseling ea hau.