{"id":219,"date":"2009-02-24T13:18:00","date_gmt":"2009-02-24T13:18:00","guid":{"rendered":"http:\/\/aldarias.es\/wordpress\/?p=219"},"modified":"2009-02-24T13:18:00","modified_gmt":"2009-02-24T13:18:00","slug":"script-para-poner-tag-etiquetas-a-ficheros-mp3","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/?p=219","title":{"rendered":"SCRIPT PARA PONER TAG\/ETIQUETAS A FICHEROS MP3"},"content":{"rendered":"<h2>INTRODUCCION<\/h2>\n<p>Me he comprado un mp3 , el cual organiza la m\u00fasica por tags, y me he hecho un script para poner tags a aquellos<\/p>\n<p>ficheros que no lo tienen.<\/p>\n<p>El mp3 es un <a title=\"Creative Zen Mosaic\" href=\"http:\/\/es.europe.creative.com\/products\/product.asp?category=213&amp;subcategory=214&amp;product=17897\" target=\"_blank\" rel=\"noopener\">Creative Zen Mosaic<\/a>. El cual funciona con el protocolo MTP con linux lliurex.<\/p>\n<p><a name='more'><\/a><\/p>\n<h2>EL SCRIPTS<\/h2>\n<p>cat tag.sh<\/p>\n<pre><br \/>!#\/bin\/bash<br \/># Script para poner tags a los ficheros mp3<br \/># Por Paco Aldarias<br \/># Fecha: 24.21.09<br \/><br \/><br \/>QUITARBLANCOS=0 # 1=QUITA BLANCOS<br \/>QUITAR<br \/>ARTIST=\"Miguel Blanco\"<br \/>ALBUM=RNE<br \/>YEAR=2008<br \/>GENRE=Other<br \/>COMMENT=\"Paco Aldarias.\"<br \/>TRACK=1<br \/>IFS=$'n'<br \/>for i in $(ls *.mp3)<br \/>do<br \/>TITLE=\"$i\"<br \/>if [ $QUITARBLANCOS = 1 ];then<br \/>  TITLE=$(echo \"$TITLE\" | sed 's\/ \/-\/g' )<br \/>fi<br \/>echo \"$TITLE\"<br \/># DELETE ALL TAGS<br \/>id3v2 -d \"$i\"<br \/># UPDATE ALL TAGS<br \/>id3v2 -t \"$TITLE\" -a \"$ARTIST\" -A \"$ALBUM\" -y \"$YEAR\"  -g \"$GENRE\" -c \"$COMMENT\"  -T  \"$TRACK\" \"$i\"<br \/>let TRACK=TRACK+1<br \/>done<br \/><\/pre>\n<p>[print_link]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>INTRODUCCION Me he comprado un mp3 , el cual organiza la m\u00fasica por tags, y me he hecho un script para poner tags a aquellos ficheros que no lo tienen. El mp3 es un Creative Zen Mosaic. El cual funciona &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/?p=219\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[254,22,253],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","hentry","category-id3","category-mp3","category-tag"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=219"}],"version-history":[{"count":0,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/219\/revisions"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}