ytfzf: tsvaga YouTube kubva kumugumo uye tarisa mavhidhiyo neMPV kana kuadhawunirodha neyt-dlp

 

 

ytfzf inoratidza mavhidhiyo nezveLinux

Munyika umo zvinenge zvese zvinoitika pawebhu, kutsvaga zvishandiso zvisingaenderane nebrowser kuri kuramba kuchioma. Hongu, zvakanaka, ndiri kuwedzera zvishoma, asi nguva yakawanda yatinopedza tiri pamberi pekombuta inopedzerwa muwebhu browser. Asi kana paine chimwe chinhu chinodiwa nevashandisi veLinux, ndiko kuomesera zvinhu kuita zvese kubva kune terminal. Kuomesa kana kurerutsa, zvichienderana nekuti unozviona sei, uye ytfzf ndechimwe chezvishandiso izvo avo vanosarudza yakaderera sosi yekushandisa zvikumbiro uye CLI-senge maturusi vachada.

ytfzf i "POSIX Script inokubatsira kutsvaga mavhidhiyo eYouTube (pasina API) uye kuvhura / kuadhawunirodha uchishandisa mpv/youtube-dl", kunyangwe ivo vachifanira kugadzirisa chikamu chekupedzisira chetagline yavo sezvavanoshandisa ikozvino. yt-dlp. Zvese zvaanoita zvinoitwa kubva kuterminal, kana zvese zvese, kubva pakuona mavhidhiyo MPV chikamu. Kushandiswa kwayo kuri nyore, uye chimiro chayo chinonakidza, zvirinani kana tiri muX11 kana kushandisa chimwe chezvishandiso zvinowirirana kuratidza zvigunwe zviri pasi peWayland.

Isa uye shandisa ytfzf

ytfzf Inowanzo kuwanikwa mune zvepamutemo repositories yeLinux kugovera, saka kuisirwa kwayo kuri nyore sekuenda kune terminal uye kutaipa sudo apt install jq curl mpv fzf yeUbuntu based systems. Inogona zvakare kutsvakwa mune zvimwe zvitoro zvesoftware. Nezve kutsamira, zvinokurudzirwa kuisa yt-dlp uye ueberzugpp, iyo inoratidza zvigunwe sezvakaratidzwa mumusoro skrini.

Kana yangoiswa, sekunge chero chishandiso cheCLI, unofanirwa kuvhura script kubva kune terminal. Inogona kuitwa nekunyora ytfzf uye kutsvaga, asi nenzira iyoyo tichaona zvese zviri nyore. Izvo zvakakosha kana kushandisa iyo mureza -t pamberi pekutsvaga. Kuti "t" ndeye "zvigunwe", kureva kuti, saka ratidza zvigunwe. Nekusagadzikana, neueberzugpp tinovaona chete kana tiri muX11. Kuti uzvione pasi peWayland, unofanirwa kunge uine imwe yesarudzo inoenderana yakaiswa, senge kitty, iterm2, sixel (izvi zvitatu zvinoda ueberzugpp), chafa, catimg, iv, mpv (kunyangwe izvi zvisati zvashanda kwandiri) uye swayimg ye Wayland kana hyprland.

mireza nemienzaniso

Kune maviri flags ne "t": iyo yakaderera kesi uye kutsvaga kunoratidza zvigunwe nekukasira; ne -T ticharatidza chiratidziro chekushandisa, semuenzaniso ytfzf -T kytty Linux ichatsvaga mavhidhiyo eLinux anoratidza zvigunwe uchishandisa kitty. Mireza inonyanyozivikanwa ndeiyi:

  • -d: ichadhawunirodha panzvimbo yekuipfuudza kuMPV kuti ionekwe. Kuti izvi zvishande unofanirwa kuve neyt-dlp yakaiswa.
  • -m: inongoridza odhiyo pane terminal.
  • -l (idiki L): ichatidzosera kune iyo rondedzero mushure mekupedza kutamba.
  • -L: icharatidza chinongedzo chemavhidhiyo akasarudzwa.
  • -a: ichasarudza otomatiki vhidhiyo yekutanga mune rondedzero.
  • -r: Ichasarudza otomatiki vhidhiyo kubva pane iyo rondedzero.
  • -co: Tsvaga Oddysee panzvimbo yeYouTube.
  • -s: mushure mekutamba vhidhiyo, ichatidzosera kuhwindo kuti tiite kutsvaga. Neizvi isu tinodzivirira kuvhura ytzf zvakare kana wapedza vhidhiyo / odhiyo.

Semuenzaniso, kana isu tichida kutsvaga mavhidhiyo nezve Linux, kuti inotamba yekutanga mune iyo runyorwa uye kuti pakupera kweodhiyo inoridza inotevera, isu taizonyora.

ytfzf -lam Linux

Izvo zviri pamusoro zvimwe hazvisi izvo zvakanakisa muenzaniso, sezvo Linux iri generic musoro uye inogona kuisa chero chinhu kwatiri. Asi zvinhu zvose zvinoshanduka kana tichida chimwe chinhu chekongiri. Kana tichida kunzwa rwiyo rune mukurumbira, handizive, "Nothine Else Matters", ytfzf -sam hapana chimwe chinhu chine basa chinoridza mhedzisiro yekutanga, pamwe rwiyo rweMetallica, muodhiyo chete uye, kana rwapera, runofanira kutidzosera. kune menyu kuti uwane imwe sarudzo.

Kunyangwe chiri chokwadi kuti chishandiso ichi chinoshanda nemazvo, ichokwadi zvakare kuti kutsvagisa hakuna kunyatsoita sezvatingaite pane yepamutemo YouTube webhusaiti, iyo inoshandisawo Google yekutsvaga injini. Asi sarudzo iripo, uye yakakosha nekuda kwezvikonzero zvakawanda.

Mamwe ruzivo, in chirongwa GitHub peji.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Claudia Segovia akadaro

    Ndinoisa sei yt-dlp uye ueberzugpp?

    1.    pablinux akadaro

      Zvinoenderana nehurongwa hwauri kushandisa. Semuenzaniso, Ubuntu inoiisa nekukasira (isina iyo "pp"). Nezve yt-dlp, Ubuntu inoiisawo pamwe chete neytfzf. Mune kumwe kugoverwa, muchinyorwa chino wabatanidza chinyorwa nezve yt-dlp, asi zvakanyanya zvinokurudzirwa kushandisa pip install yt-dlp nekuti ichagara iri kusvika parizvino. Semuenzaniso, kana iwe ukashandisa Manjaro kana Arch ine Pamac, Pamac inokupa iwe zvinoenderana nekuisa, uye kubva ipapo unogona kuisa ueberzug.

      Kana iwe uri muWayland, hapana chandakaedza kuona zvigunwe zvakandiitira (ndakangoedza mpv uye iv sarudzo).