object2music / o2m

O2M is an experimentation using daily objects to control and mix music individually or collectivilly... and auto-build data-driven playlists. Open-source project, based on mopidy + iris runing on raspberry-pi. More info aivailable here : https://vimeo.com/629384713
GNU General Public License v3.0
2 stars 1 forks source link

[iris:playlist] Bug lecture chaines podcasts dans playlist:iris #26

Closed pvincent4 closed 4 years ago

pvincent4 commented 4 years ago

Tag : TAG UID : 04CFB9193E2580 | TYPE : iris:playlist | MEDIA : m3u:Podcast2listen.m3u8 | DESCRIPTION : Carte - Piano | READ COUNT : 17 podcast+http://radiofrance-podcast.net/podcast09/rss_13904.xml Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/home/pi/.local/lib/python3.7/site-packages/smartcard/CardMonitoring.py", line 180, in run (addedcards, removedcards)) File "/home/pi/.local/lib/python3.7/site-packages/smartcard/Observer.py", line 62, in notifyObservers observer.update(self, arg) File "/home/pi/o2m/src/nfcreader.py", line 63, in update self.events.on_change(addedcards, removedcards, self.active_cards) # Launch the event File "/home/pi/.local/lib/python3.7/site-packages/events/events.py", line 95, in call f(*a, **kw) File "/home/pi/o2m/src/nfcreader.py", line 172, in update_change self.o2m.get_new_cards(addedCards, removedCards, activeCards) File "main.py", line 80, in get_new_cards self.one_tag_changed(tag) File "main.py", line 199, in one_tag_changed shows = self.get_podcast_from_url(feedurl) File "main.py", line 224, in get_podcast_from_url f = Extension.get_url_opener(self.config).open(url, timeout=10) File "/usr/lib/python3/dist-packages/mopidy_podcast/init.py", line 48, in get_url_opener proxy = httpclient.format_proxy(config["proxy"]) File "/usr/lib/python3.7/configparser.py", line 958, in getitem raise KeyError(key) KeyError: 'proxy'

^Cpi@pi:~/o2m $ cd /home/pi/o2m/ && python3 main.py NFCReader initializing... Insert or remove a smartcard in the system.

Tag : TAG UID : 045340D2204B80 | TYPE : radio | MEDIA : tunein:station:s24875 | DESCRIPTION : France Inter | READ COUNT : 238 Adding 1 tracks stopped no current track : Playing first track Active tags count: 1

pvincent4 commented 4 years ago

m3u Podcast2listen.zip

pvincent4 commented 4 years ago

@akago-dev patch temporaire dans dernier commit main.py:238 f = Extension.get_url_opener({"proxy":{}}).open(url, timeout=10)