Last active
December 28, 2019 13:16
-
-
Save ntkog/a336a1dbaded3be1ad87afbc8b67a822 to your computer and use it in GitHub Desktop.
One-Liner para bajarse todos los episodios del podcast "Más platón y menos whatsapp"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parallel --dry-run --colsep '#' curl "{1}" -o {2}.mp3 :::: <(curl -sS "https://fapi-top.prisasd.com/podcast/playser/1_playser/itunes/la_ventana_mas_platon_y_menos_whatsapp/audios.xml" | xml2js | fx '.rss.channel.item.map(({title,enclosure,...rest}) => ({ title : /[|-]/.test(title) ? title.split(/[|-]/)[1].trim() : title, url : enclosure["@_url"]})).map(({title,url}) => ({ title : title.replace(/('|"|")/g, ""), url : url}))' | jq -r '.[] | (.url) + "#" + (.title)') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
La versión anterior tenía un bug, por tener un separador inadecuado . Poniendo "#" como separador , ahora si se baja los 45 episodios (hasta la fecha).