Sfoglia il codice sorgente

:Merge branch 'master' of git.notice.at:redplanet/discobert

master
Andreas Demmelbauer 4 anni fa
parent
commit
08b0f5be8c
3 ha cambiato i file con 1167 aggiunte e 4 eliminazioni
  1. +10
    -2
      discobert.py
  2. +1
    -2
      lircrc
  3. +1156
    -0
      remotes/Sony-RM-V33E-mapping.svg

+ 10
- 2
discobert.py Vedi File

@@ -156,6 +156,13 @@ def startMusic(playlist, single=False, shuffle=True, repeat=True):
client.setvol(80)# set volume
client.play() # play

def getNewestPodcastUrl(xml):
podcast = xml
podcast_string = requests.get(podcast).text
tree = ET.fromstring(podcast_string)
return tree.find('.//enclosure').get('url')


def playMusic():
try:
client.play()
@@ -517,8 +524,9 @@ while True:
if(code == "mode_record"):
say("I'm sorry, I'm afraid I can't do that!")
if(code == "mode_help"):
tour()
if(code == "mode_news"):
oejournalUrl = getNewestPodcastUrl('https://files.orf.at/podcast/oe1/oe1_journale.xml')
startMusic(oejournalUrl)


if(inUseBefore != inUse):


+ 1
- 2
lircrc Vedi File

@@ -66,8 +66,7 @@ end
begin
button = KEY_CD
prog = disco
config = mode_help
repeat = 20
config = mode_news
end




+ 1156
- 0
remotes/Sony-RM-V33E-mapping.svg
File diff soppresso perché troppo grande
Vedi File


Caricamento…
Annulla
Salva