Check-in [23bbd97989]
Overview
Comment: | Introduce action.handler{} callbacks to convert custom streaming URL types such as "audio/soundcloud". Unify backend code for .play/record/browser() calls. Reddit module just splits out domain name now, then checks for walledgarden links (filter option renamed). Introduce url_soundcloud plugin in favour of `soundcli` cmdline client setting. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
23bbd979893d140c1d5cdbd7e3f0ad46 |
User & Date: | mario on 2015-05-24 14:19:06 |
Other Links: | manifest | tags |
Context
2015-05-24
| ||
16:57 | Fix audioformat to audio/mpeg. check-in: fa5df72f08 user: mario tags: trunk | |
14:19 | Introduce action.handler{} callbacks to convert custom streaming URL types such as "audio/soundcloud". Unify backend code for .play/record/browser() calls. Reddit module just splits out domain name now, then checks for walledgarden links (filter option renamed). Introduce url_soundcloud plugin in favour of `soundcli` cmdline client setting. check-in: 23bbd97989 user: mario tags: trunk | |
10:02 | Move channel.save() after column updating. check-in: 3072c80d83 user: mario tags: trunk | |
Changes
Modified action.py from [005725eacf] to [0cb40c6df9].
︙ | |||
116 117 118 119 120 121 122 123 124 125 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | + + + + + - - - - - - - - - - - - - + - - - - - + + + + + + + + + + + + - - + + + + + - + - - | ] # Preferred probing order of known formats playlist_fmt_prio = [ "pls", "xspf", "asx", "smil", "jamj", "json", "m3u", "asf", "raw" ] # custom stream domain handlers handler = { # "soundcloud": callback(), } # Exec wrapper |
︙ |
Deleted contrib/cfg_soundcloud.py version [1301f5ed6f].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|
Modified contrib/reddit.py from [74725ffeda] to [46f1758ac3].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - + | # encoding: UTF-8 # api: streamtuner2 # title: redditβ± # description: Music recommendations from reddit /r/music and associated subreddits. # version: 0.8 # type: channel # url: http://reddit.com/r/Music # category: playlist # config: # { name: reddit_pages, type: int, value: 2, description: Number of pages to fetch. } |
︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | + | # is not very enticing. import json import re from config import * from channels import * import action import ahttp # reddit.com # # Uses old API requests such as: # β http://www.reddit.com/r/music/new.json?sort=new |
︙ | |||
275 276 277 278 279 280 281 | 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | + + - + - - - - - - - - - - + + + + + + + + + - | elif text_urls: row["url"] = text_urls[0] format = "video/youtube" # check for specific web links (Soundcloud etc.) else: listformat = "srv" format = None # look for walled gardens urltype = re.findall("([\w-]+)\.\w+/", row["url"] + "/x-unknown.com/")[0] |
︙ |
Added contrib/url_soundcloud.py version [18282e867b].
|