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

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [3ee971501f]:

To Artifact [74725ffeda]:


46
47
48
49
50
51
52


53


54
55
56
57
58
59
60
46
47
48
49
50
51
52
53
54

55
56
57
58
59
60
61
62
63







+
+
-
+
+






class reddit (ChannelPlugin):

    # control attributes
    has_search = False
    listformat = "srv"
    audioformat = "video/youtube"
    titles = dict(playing="submitter", listeners="votes", bitrate=False)

    # favicon scaling (from reddit preview `img`)
    img_resize = 24  # scale down reddit preview `img` artwork
    img_resize = 32
    fixed_size = [32,26]
    
    # just subreddit names to extract from
    categories = [
        # static radio list
        "radioreddit 📟",

        # major subreddits
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
295
296
297
298
299
300
301

302
303
304
305
306
307
308







-






                if not format:
                    if conf.reddit_keep_all:
                        state = "gtk-page-setup"
                        format = "url/http"
                    else:
                        log.DATA_SKIP(format, row["url"])
                        continue
            #log.DATA(format, row["url"])

            # repack into streams list
            r.append(dict(
                title = row["title"],
                url = row["url"],
                genre = re.findall("\[(.+?)\]", row["title"] + "[-]")[0],
                playing = row["author"],