Check-in [a6e914a9fd]
Overview
| Comment: | Fix old module names. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a6e914a9fdb3e4300427884493e920ff |
| User & Date: | mario on 2017-01-02 20:46:51 |
| Other Links: | manifest | tags |
Context
|
2017-01-02
| ||
| 20:47 | Guard empty streams["common"] dict. check-in: 4cbc0911f6 user: mario tags: trunk | |
| 20:46 | Fix old module names. check-in: a6e914a9fd user: mario tags: trunk | |
|
2017-01-01
| ||
| 15:54 | Fix alternative checking with individual .cmp() ordering check-in: b43240711e user: mario tags: trunk | |
Changes
Modified contrib/podspider.py from [6724c28afd] to [d6adeb653d].
| ︙ | ︙ | |||
25 26 27 28 29 30 31 | # The current implementation is very inefficient. It reads the XML on every # start. Caching it as JSON wouldn't be very wise, as it'd still be 20 MB. # # Untested. import action | | | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# The current implementation is very inefficient. It reads the XML on every
# start. Caching it as JSON wouldn't be very wise, as it'd still be 20 MB.
#
# Untested.
import action
import ahttp
from config import conf
from channels import *
import os, os.path
from pq import pq
import lxml.etree
import uikit
# return text entry from etree list
def get(item, tag, hint=None):
if hint != None:
if len(item) > hint: # hint tells us the usual position of the element
|
| ︙ | ︙ | |||
82 83 84 85 86 87 88 |
else:
self.warn()
ChannelPlugin.__init__(self,parent)
# gtk.messagebox
def warn(self):
| | | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
else:
self.warn()
ChannelPlugin.__init__(self,parent)
# gtk.messagebox
def warn(self):
uikit.msg("Podspiderpdb.xml.tmp_ couldn't be found anywhere. Install Radiograbber via Wine to create it.")
# prevent cache file creation, as it would contain sublists and ends up being unreadable by json module
def save(self, *a):
pass
|
| ︙ | ︙ | |||
145 146 147 148 149 150 151 |
return r
# loads RSS and gets first entry url
def play(self, row):
audio = "audio/mp3"
r = []
| | | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
return r
# loads RSS and gets first entry url
def play(self, row):
audio = "audio/mp3"
r = []
for e in pq(ahttp.get(row["homepage"])).find("enclosure"):
r.append(e.get("url"))
audio = e.get("type")
if r:
action.action.play(r[0], audioformat=audio, listformat="url/direct")
|
| ︙ | ︙ |
Modified dev/install_python_gtk.bat from [16ede4a8e9] to [5d033bed4d].
| ︙ | ︙ | |||
9 10 11 12 13 14 15 | echo ^| _________\////\\\_________\/\\\___________/\\\//________ ^| echo ^| __/\\\______\//\\\________\/\\\_________/\\\/___________ ^| echo ^| _\///\\\\\\\\\\\/_________\/\\\________/\\\\\\\\\\\\\\\_ ^| echo ^| ___\///////////___________\///________\///////////////__ ^| echo ^| ^| echo ^| Streamtuner2 for Windows Version 2.2.0 ^| echo ^| ^| | | | 9 10 11 12 13 14 15 16 17 18 19 20 |
echo ^| _________\////\\\_________\/\\\___________/\\\//________ ^|
echo ^| __/\\\______\//\\\________\/\\\_________/\\\/___________ ^|
echo ^| _\///\\\\\\\\\\\/_________\/\\\________/\\\\\\\\\\\\\\\_ ^|
echo ^| ___\///////////___________\///________\///////////////__ ^|
echo ^| ^|
echo ^| Streamtuner2 for Windows Version 2.2.0 ^|
echo ^| ^|
echo ^| Installer for Python 2.7.13 ^& Gtk 2.24.2 ^|
echo -----------------------------------------------------------------------------
echo.
echo PowerShell "install_python_gtk.ps1"...
PowerShell.exe -Command "& {Start-Process Powershell.exe -ArgumentList '-ExecutionPolicy ByPass -File ""%~dpn0.ps1""' -Verb RunAs}"
|