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

⌈⌋ ⎇ branch:  streamtuner2


Check-in [9bfbde8091]

Overview
Comment:Better probe for None and empty "" string in titles or urls
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9bfbde8091faabbeb92b93772a32e51b5c572535
User & Date: mario on 2014-05-15 20:07:58
Other Links: manifest | tags
Context
2014-05-19
19:26
add hooks{} support check-in: d34fb69dda user: mario tags: trunk
2014-05-15
20:07
Better probe for None and empty "" string in titles or urls check-in: 9bfbde8091 user: mario tags: trunk
20:04
Readd missing regex module. check-in: c6e5353c19 user: mario tags: trunk
Changes

Modified channels/_generic.py from [e7ef47afa8] to [6c89a69b5c].

190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
      
                if new_streams:

                    # check and modify entry;
                    # assert that title and url are present
                    modified = []
                    for row in new_streams:
                        if None in [row.get("title"), row.get("url")]:
                            next
                        try:
                            modified.append( self.postprocess(row) )
                        except Exception as e:
                            __print__(e, dbg.ERR, row)
                    new_streams = modified
      
                    # don't lose forgotten streams







|
|







190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
      
                if new_streams:

                    # check and modify entry;
                    # assert that title and url are present
                    modified = []
                    for row in new_streams:
                        if len(set(["", None]) & set([row.get("title"), row.get("url")])):
                            continue
                        try:
                            modified.append( self.postprocess(row) )
                        except Exception as e:
                            __print__(e, dbg.ERR, row)
                    new_streams = modified
      
                    # don't lose forgotten streams