Check-in [8b3cd06ff7]
Overview
Comment: | Adapted Live365 channel plugin for /cgi-bin/play.pls?stationid=123457&direct=1 stream URLs instead of extraction, works again |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8b3cd06ff708ba014f3e677c8f2973da |
User & Date: | mario on 2014-07-31 17:22:46 |
Other Links: | manifest | tags |
Context
2014-08-01
| ||
01:34 | catmap{} cache handling now by _generic module check-in: cda3504633 user: mario tags: trunk | |
2014-07-31
| ||
17:22 | Adapted Live365 channel plugin for /cgi-bin/play.pls?stationid=123457&direct=1 stream URLs instead of extraction, works again check-in: 8b3cd06ff7 user: mario tags: trunk | |
03:23 | Fixed invalid encoding in (manually edited) releases.json check-in: e5effdd595 user: mario tags: trunk | |
Changes
Modified _package.epm from [81c1d8ed48] to [84031fd279].
1 | 1 2 3 4 5 6 7 8 9 | - + | %product streamtuner2 - internet radio browser |
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - + + + + + | f 755 root root /usr/bin/streamtuner2 ./st2.py f 644 root root /usr/share/applications/streamtuner2.desktop ./streamtuner2.desktop d 755 root root /usr/share/streamtuner2 - f 644 root root /usr/share/streamtuner2/streamtuner2.png ./streamtuner2.png f 644 root root /usr/share/pixmaps/streamtuner2.png ./logo.png f 644 root root /usr/share/streamtuner2/gtk2.xml ./gtk2.xml f 644 root root /usr/share/streamtuner2/gtk3.xml ./gtk3.xml |
︙ | |||
71 72 73 74 75 76 77 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | - - | f 644 root root /usr/share/streamtuner2/channels/youtube.png ./channels/youtube.png f 644 root root /usr/share/streamtuner2/channels/global_key.py ./channels/global_key.py f 644 root root /usr/share/streamtuner2/channels/links.py ./channels/links.py f 644 root root /usr/share/streamtuner2/channels/timer.py ./channels/timer.py #-- scripts #d 755 root root /usr/share/streamtuner2/scripts - #f 644 root root /usr/share/streamtuner2/scripts/radiotop40_de.py ./scripts/radiotop40_de.py |
︙ |
Modified ahttp.py from [31cf3bd93f] to [0fe1c60aea].
︙ | |||
52 53 54 55 56 57 58 | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + | #-- Retrieve data via HTTP # # Well, it says "get", but it actually does POST and AJAXish GET requests too. # |
︙ | |||
74 75 76 77 78 79 80 | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - + - - + + - - - - + + + + + + + + | r = session.post(url, params=params, headers=headers) else: r = session.get(url, params=params, headers=headers) __print__( dbg.HTTP, r.request.headers ); __print__( dbg.HTTP, r.headers ); |
︙ |
Modified channels/file.py from [a8e2e93dda] to [f92686b376].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | - + | # # api: streamtuner2 # title: File browser # description: Displays mp3/oggs or m3u/pls files from local media file directories. # type: channel # category: media # version: 0.0 # priority: optional |
︙ | |||
176 177 178 179 180 181 182 183 184 185 | 176 177 178 179 180 181 182 183 184 185 186 187 | + + | def update_categories(self): self.scan_dirs() # same as init def update_streams(self, cat, x=0): self.scan_dirs() print(self.streams) print(self.categories) return self.streams.get(os.path.basename(cat)) |
Modified channels/live365.py from [861e1f12f9] to [be1047f842].
1 2 3 4 5 6 7 8 9 | 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 42 43 44 45 46 47 48 49 | - - - + - - + + + + - + - - + - + - - + + | # api: streamtunter2 # title: Live365 # description: Around 5000 categorized internet radio streams, some paid ad-free ones. # type: channel # category: radio # version: 0.3 # priority: optional # |
︙ | |||
79 80 81 82 83 84 85 | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 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 | - - - + + + + + + - - + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + | # fixed for now def update_categories(self): pass # extract stream infos def update_streams(self, cat): |
Modified st2.py from [a922a58f51] to [3d89c6ea6f].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | #!/usr/bin/env python # encoding: UTF-8 # api: python # type: application # title: streamtuner2 # description: Directory browser for internet radio / audio streams # depends: pygtk | pygi, threading, pyquery, kronos, requests |
︙ | |||
92 93 94 95 96 97 98 | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | - + | import ahttp import action # needs workaround... (action.main=main) import channels from channels import * import favicon |
︙ |