<commit_before>#!/bin/bash

PLAYER="mplayer"
RTMPDUMP="rtmpdump"

TITLES=(
  "Antena1"
  "Antena2"
  "Antena3"
  "Cidade FM"
  "Comercial"
  "Kiss FM"
  "M80"
  "Mega Hits"
  "Renascenca"
  "RFM"
  "RUC"
  "Smooth"
  "Sudoeste"
  "TSF"
  "Vodafone"
  "Radio Zero"
)

STREAMS=(
  "$PLAYER http://172.16.31.10/antena1"
  "$RTMPDUMP -r rtmp://ec24.rtp.pt/liveradio -y antena280a | $PLAYER -"
  "$RTMPDUMP -r rtmp://ec21.rtp.pt/liveradio -y antena380a | $PLAYER -"
  "$RTMPDUMP -r rtmp://mcrwowza5.mcr.iol.pt/cidadefmlc -y cidadefmlc.sdp | $PLAYER -" 
  "$RTMPDUMP -r rtmp://mcrwowza5.mcr.iol.pt/comerciallc -y comerciallc.sdp | $PLAYER -"
  "$PLAYER http://cp5.serverse.com:7104/"
  "$RTMPDUMP -r rtmp://mcrwowza3.mcr.iol.pt/m80lc -y m80lc.sdp | $PLAYER -"
  "$PLAYER http://7719.live.streamtheworld.com/MEGA_HITSAAC"
  "$PLAYER http://7719.live.streamtheworld.com/RADIO_RENASCENCAAAC"
  "$PLAYER http://7719.live.streamtheworld.com/RFMAAC"
  "$PLAYER http://ruc.midi-club.net:8000/"
  "$RTMPDUMP -r rtmp://mcrwowza6.mcr.iol.pt/smoothlc -y smoothlc.sdp | $PLAYER -"
  "$RTMPDUMP -r rtmp://live.livextend.com/liveswtmn -y swtmns1 | $PLAYER -"
  "$PLAYER http://tsfdirecto.tsf.pt/tsfdirecto.aac"
  "$PLAYER -user-agent 'Mozilla/5.0 (X11; Linux x86_64)' http://mcrscast.mcr.iol.pt/vodafone"
  "$PLAYER http://stream.radiozero.pt:8000/zero128.mp3"
)

PS3="Which radio do you want to listen? "
select radio in "${TITLES[@]}";
do
  if [[ -n $radio ]]; then
    for i in ${!TITLES[@]}
    do
      if [ "${TITLES[i]}" = "$radio" ]; then
        eval ${STREAMS[i]}
        break
      fi
    done<commit_msg>Fix streaming URLs for Antena 1 and Antena 3<commit_after>#!/bin/bash

PLAYER="mplayer"
RTMPDUMP="rtmpdump"

TITLES=(
  "Antena1"
  "Antena2"
  "Antena3"
  "Cidade FM"
  "Comercial"
  "Kiss FM"
  "M80"
  "Mega Hits"
  "Renascenca"
  "RFM"
  "RUC"
  "Smooth"
  "Sudoeste"
  "TSF"
  "Vodafone"
  "Radio Zero"
)

STREAMS=(
  "$RTMPDUMP -r rtmp://ec24.rtp.pt/liveradio -y antena180a | $PLAYER -"
  "$RTMPDUMP -r rtmp://ec24.rtp.pt/liveradio -y antena280a | $PLAYER -"
  "$RTMPDUMP -r rtmp://ec24.rtp.pt/liveradio -y antena380a | $PLAYER -"
  "$RTMPDUMP -r rtmp://mcrwowza5.mcr.iol.pt/cidadefmlc -y cidadefmlc.sdp | $PLAYER -" 
  "$RTMPDUMP -r rtmp://mcrwowza5.mcr.iol.pt/comerciallc -y comerciallc.sdp | $PLAYER -"
  "$PLAYER http://cp5.serverse.com:7104/"
  "$RTMPDUMP -r rtmp://mcrwowza3.mcr.iol.pt/m80lc -y m80lc.sdp | $PLAYER -"
  "$PLAYER http://7719.live.streamtheworld.com/MEGA_HITSAAC"
  "$PLAYER http://7719.live.streamtheworld.com/RADIO_RENASCENCAAAC"
  "$PLAYER http://7719.live.streamtheworld.com/RFMAAC"
  "$PLAYER http://ruc.midi-club.net:8000/"
  "$RTMPDUMP -r rtmp://mcrwowza6.mcr.iol.pt/smoothlc -y smoothlc.sdp | $PLAYER -"
  "$RTMPDUMP -r rtmp://live.livextend.com/liveswtmn -y swtmns1 | $PLAYER -"
  "$PLAYER http://tsfdirecto.tsf.pt/tsfdirecto.aac"
  "$PLAYER -user-agent 'Mozilla/5.0 (X11; Linux x86_64)' http://mcrscast.mcr.iol.pt/vodafone"
  "$PLAYER http://stream.radiozero.pt:8000/zero128.mp3"
)

PS3="Which radio do you want to listen? "
select radio in "${TITLES[@]}";
do
  if [[ -n $radio ]]; then
    for i in ${!TITLES[@]}
    do
      if [ "${TITLES[i]}" = "$radio" ]; then
        eval ${STREAMS[i]}
        break
      fi
    done
{'fraction_non_alphanumeric': 0.1879029782007983, 'fraction_numerical': 0.04329137242861529, 'mean_word_length': 3.2366710013003903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2506766', 'n_tokens_mistral': 1617, 'n_tokens_neox': 1572, 'n_words': 251}