Check-in [388ef679b7]
Overview
Comment: | Fix row[`url`] reference. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
388ef679b7d00582d80336713cd6eb34 |
User & Date: | mario on 2015-05-26 00:42:25 |
Other Links: | manifest | tags |
Context
2015-05-26
| ||
00:43 | Disable window tilte updating per default again. check-in: b9a667bbe7 user: mario tags: trunk | |
00:42 | Fix row[`url`] reference. check-in: 388ef679b7 user: mario tags: trunk | |
00:41 | Update for new action.play() signature, scale down banner images. check-in: 3717a70b32 user: mario tags: trunk | |
Changes
Modified contrib/url_soundcloud.py from [82dc99789f] to [e898244f76].
1 2 3 | # api: streamtuner2 # title: Soundcloud streams # description: Convert soundcloud links from reddit to streamable tracks | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # api: streamtuner2 # title: Soundcloud streams # description: Convert soundcloud links from reddit to streamable tracks # version: 0.2 # type: filter # category: audio # depends: python:soundcloud, action >= 1.1, reddit >= 0.8 # priority: rare # # Overrides action.play() function to convert soundcloud URLs # to track/streaming address. Disables the reddit filter for # walled gardens, and overrides any custom player configured # for "audio/soundcloud" in settings. |
︙ | ︙ | |||
33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # Capture play events for faux MIME type def sndcl_convert(row={}, audioformat="audio/mpeg", source="pls", assoc={}): if audioformat==fmt or rx_url.match(url): # find streaming address try: log.DATA_CONVERT_SOUNDCLOUD(url) track = client().get('/resolve', url=url) track_str = "/tracks/{}/stream".format(track.id) url = client().get(track_str, allow_redirects=False).location # override attributes row["url"] = url | > | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # Capture play events for faux MIME type def sndcl_convert(row={}, audioformat="audio/mpeg", source="pls", assoc={}): if audioformat==fmt or rx_url.match(url): # find streaming address try: url = row["url"] log.DATA_CONVERT_SOUNDCLOUD(url) track = client().get('/resolve', url=url) track_str = "/tracks/{}/stream".format(track.id) url = client().get(track_str, allow_redirects=False).location # override attributes row["url"] = url |
︙ | ︙ |