Check-in [a3e879ebcb]
Overview
| Comment: | magnatune: radios are gone? |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a3e879ebcb9432ba6c9ecc2acd80eb9f |
| User & Date: | mario on 2020-05-16 10:09:11 |
| Other Links: | manifest | tags |
Context
|
2020-05-16
| ||
| 10:23 | publicradiofan: strip `/cgibin/wrap.pl…` from some listings check-in: 2ffe534a47 user: mario tags: trunk | |
| 10:09 | magnatune: radios are gone? check-in: a3e879ebcb user: mario tags: trunk | |
| 10:08 | peertube use correct /search/videos api for searches check-in: 652576b7b3 user: mario tags: trunk | |
Changes
Modified contrib/magnatune.py from [b928142549] to [63b6360983].
| ︙ | ︙ | |||
48 49 50 51 52 53 54 |
class magnatune (ChannelPlugin):
# control flags
has_search = False
listformat = "srv"
audioformat = "audio/mpeg"
titles = dict(listeners=False, bitrate=False, playing=False)
| | | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
class magnatune (ChannelPlugin):
# control flags
has_search = False
listformat = "srv"
audioformat = "audio/mpeg"
titles = dict(listeners=False, bitrate=False, playing=False)
categories = ["albums"] #"radios" are gone?
# static
def update_categories(self):
pass
# Just one list to fetch
def update_streams(self, cat, search=None):
# Radios are just rotating playlists
if cat == "radios":
return [ #http://my.magnatune.com/search?w=radios
{ "genre": "classical", "title": "Classical: renaissance and baroque", "url": "http://sc2.magnatune.com:8000/listen.pls", "listformat": "pls" },
{ "genre": "electronic", "title": "Electronica: downtempo, techno & trance", "url": "http://sc2.magnatune.com:8002/listen.pls", "listformat": "pls" },
{ "genre": "metal", "title": "Metal and Punk", "url": "http://sc2.magnatune.com:8004/listen.pls", "listformat": "pls" },
{ "genre": "new age", "title": "New Age", "url": "http://sc2.magnatune.com:8006/listen.pls", "listformat": "pls" },
{ "genre": "rock", "title": "Rock", "url": "http://sc2.magnatune.com:8008/listen.pls", "listformat": "pls" },
{ "genre": "world", "title": "World Music: Indian, Celtic, Arabic, Baltic...", "url": "http://sc2.magnatune.com:8010/listen.pls", "listformat": "pls" },
{ "genre": "./.", "title": "Free song download of the day", "url": "none:", "homepage": "http://magnatune.com/today/", "listformat": "href" },
|
| ︙ | ︙ |