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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [f42cec687d]

Overview
Comment:Enable glrp.csv download from repo.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f42cec687dc57d53e15e046eb5d665c13bc1a5d6
User & Date: mario on 2015-05-06 00:22:08
Other Links: manifest | tags
Context
2015-05-06
04:02
Add trivial di.fm/sky.fm radio list fetcher. check-in: 644d1b3532 user: mario tags: trunk
00:22
Enable glrp.csv download from repo. check-in: f42cec687d user: mario tags: trunk
00:21
Remove default ["empty",] category. check-in: d958ddb71e user: mario tags: trunk
Changes

Modified Makefile from [1eec7003c1] to [014fb4ee72].

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
	$(PACK) -t $@ $(OPTS) $(DEPS_A) -p "$(NAME)-VERSION.arch.txz" st2.py
pyz:
        #@BUG: relative package references leave a /tmp/doc/ folder
	$(PACK) -u packfile -s src -t zip --zip-shebang "/usr/bin/env python"	\
		-f -p "$(NAME)-$(VERSION).pyz" --prefix=./  .zip.py st2.py
src:
	cd .. && pax -wvJf streamtuner2/streamtuner2-$(VERSION).src.txz \
		streamtuner2/*.{py,png,svg,desktop} streamtuner2/channels/*.{py,png} \
		streamtuner2/{bundle/,contrib/,help/,gtk,NEWS,READ,PACK,PKG,CRED,Make,bin,.zip}*

# test .deb contents
check:
	dpkg-deb -c streamtuner2*deb
	dpkg-deb -I streamtuner2*deb
	rpm -qpil *rpm







|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
	$(PACK) -t $@ $(OPTS) $(DEPS_A) -p "$(NAME)-VERSION.arch.txz" st2.py
pyz:
        #@BUG: relative package references leave a /tmp/doc/ folder
	$(PACK) -u packfile -s src -t zip --zip-shebang "/usr/bin/env python"	\
		-f -p "$(NAME)-$(VERSION).pyz" --prefix=./  .zip.py st2.py
src:
	cd .. && pax -wvJf streamtuner2/streamtuner2-$(VERSION).src.txz \
		streamtuner2/*.{py,png,desktop} streamtuner2/channels/*.{py,png} \
		streamtuner2/{bundle/,contrib/,help/,gtk,NEWS,READ,PACK,PKG,CRED,Make,bin,.zip}*

# test .deb contents
check:
	dpkg-deb -c streamtuner2*deb
	dpkg-deb -I streamtuner2*deb
	rpm -qpil *rpm

Modified contrib/glrp.py from [cb31b35031] to [f21d80827f].

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    listformat = "srv"
    audioformat = "audio/mpeg"
    titles = dict(listeners=False, bitrate=False, playing="Location")


    # Imports the CSV once and populates streams
    def update_categories(self):
        #dal = ahttp.get("http://fossil.include-once.org/streamtuner2/cat/contrib/glrp.csv")
        dat = open("contrib/glrp.csv", "r").read()
        self.streams = {}
        if dat:
            ls = csv.reader(dat.split("\n"))
            for title, url, genre, location, fav in [x for x in ls if len(x)==5]:
                if not self.streams.get(genre):
                    self.streams[genre] = []
                self.streams[genre].append(dict(







|
|







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    listformat = "srv"
    audioformat = "audio/mpeg"
    titles = dict(listeners=False, bitrate=False, playing="Location")


    # Imports the CSV once and populates streams
    def update_categories(self):
        dat = ahttp.get("http://fossil.include-once.org/streamtuner2/cat/contrib/glrp.csv")
        #dat = open("contrib/glrp.csv", "r").read()
        self.streams = {}
        if dat:
            ls = csv.reader(dat.split("\n"))
            for title, url, genre, location, fav in [x for x in ls if len(x)==5]:
                if not self.streams.get(genre):
                    self.streams[genre] = []
                self.streams[genre].append(dict(