radioslibres.py 283 B

123456789101112
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. from subprocess import call
  4. import configparser
  5. config = configparser.RawConfigParser()
  6. config.read("config.conf")
  7. player = config['player']['player']
  8. entrada = input("Introduce una radio: ")
  9. call ([player, (config['url'][entrada])])