Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Check-in [8cd49580a4]

Overview
Comment:Rename 8tracks module to have a legal Python identifier (rather than the globals()/module rename workaround).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8cd49580a42715d8da774e7820225d53dbffbc8c
User & Date: mario on 2015-05-01 23:10:23
Other Links: manifest | tags
Context
2015-05-01
23:30
Prepare row() and play() wrappers. No genre requests yet. (Still just a planned channel pugin.) check-in: 34f8a3d27b user: mario tags: trunk
23:10
Rename 8tracks module to have a legal Python identifier (rather than the globals()/module rename workaround). check-in: 8cd49580a4 user: mario tags: trunk
22:53
Tag with priority:never, as it's not meant to be bundled really. check-in: 7df4f3284f user: mario tags: trunk
Changes

Modified contrib/eighttracks.py from [8dc7ba54d9] to [d541531c5f].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# encoding: UTF-8
# api: streamtuner2
# title: 8tracks
# description: radio created by people, not algorithms
# version: 0.1
# type: channel
# category: collection
# config:
#   { name: 8tracks_api_key,  value: "",  type: text,  description: Custom API access key. }
# priority: optional
# url: http://8tracks.com/
# documentation: https://8tracks.com/developers
#
# Requires a pingback on playing, which is near impossible to implement
# without also controlling the player. Automatic/implied notifications
# could work, or checking via dbus/mpris even.
#

import re
import json
from config import *
from channels import *
import ahttp as http


# Surfmusik sharing site
class _8tracks (ChannelPlugin):

    # description
    title = "8tracks"
    module = "8tracks"
    homepage = "http://8tracks.com/"
    has_search = False
    listformat = "audio/x-scpls"
    titles = dict(listeners=False, playing="Location")

    categories = ["none"]
    catmap = {}
    
    base = "http://8tracks.com/mixes/1?format=json&api_key=%s" # or X-Api-Key: header
    cid = ""








|

















|


<
<
<

|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29



30
31
32
33
34
35
36
37
38
# encoding: UTF-8
# api: streamtuner2
# title: 8tracks
# description: radio created by people, not algorithms
# version: 0.1
# type: channel
# category: collection
# config:
#   { name: eighttracks_apikey,  value: "",  type: text,  description: Custom API access key. }
# priority: optional
# url: http://8tracks.com/
# documentation: https://8tracks.com/developers
#
# Requires a pingback on playing, which is near impossible to implement
# without also controlling the player. Automatic/implied notifications
# could work, or checking via dbus/mpris even.
#

import re
import json
from config import *
from channels import *
import ahttp as http


# Surfmusik sharing site
class eighttracks (ChannelPlugin):

    # description



    has_search = False
    listformat = "pls"
    titles = dict(listeners=False, playing="Location")

    categories = ["none"]
    catmap = {}
    
    base = "http://8tracks.com/mixes/1?format=json&api_key=%s" # or X-Api-Key: header
    cid = ""
51
52
53
54
55
56
57
58
59
60

    # Patch API url together, send request, decode JSON and whathaveyou
    def api(self, *params):
        r = []
        return r


# Need to rename the class, else plugin loader won't find it.
globals()["8tracks"] = _8tracks
_8tracks = None







<
<
<
48
49
50
51
52
53
54




    # Patch API url together, send request, decode JSON and whathaveyou
    def api(self, *params):
        r = []
        return r