Check-in [8996e21a01]
Overview
Comment: | Moved back to old `mostPolular` method. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8996e21a013baf84ce57099daaa225f0 |
User & Date: | mario on 2015-04-04 01:46:38 |
Other Links: | manifest | tags |
Context
2015-04-04
| ||
01:48 | Catch HTTP errors for reload_categories(). Provide a descriptive .placeholder[] and .empty_stub[] stream list for channels reloading. check-in: 9d6c4e81f8 user: mario tags: trunk | |
01:46 | Moved back to old `mostPolular` method. check-in: 8996e21a01 user: mario tags: trunk | |
01:46 | Removed duplicate category entries for internet_radio plugin. check-in: 3d794f312d user: mario tags: trunk | |
Changes
Modified channels/youtube.py from [bd63aca166] to [2d2850cfea].
︙ | ︙ | |||
174 175 176 177 178 179 180 | # plain search request for videos if search is not None: for row in self.api("search", type="video", regionCode=conf.youtube_region, q=search): entries.append( self.wrap3(row, {"genre": ""}) ) # Most Popular elif cat == "mostPopular": | | | | | | 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | # plain search request for videos if search is not None: for row in self.api("search", type="video", regionCode=conf.youtube_region, q=search): entries.append( self.wrap3(row, {"genre": ""}) ) # Most Popular elif cat == "mostPopular": for row in self.api("feeds/api/standardfeeds/%s/most_popular"%conf.youtube_region, ver=2): entries.append(self.wrap2(row)) #for row in self.api("videos", chart="mostPopular", regionCode=conf.youtube_region): # entries.append( self.wrap3(row, {"genre": "mostPopular"}) ) # Categories elif cat in self.videocat_id: for row in self.api("search", chart="mostPopular", videoCategoryId=self.videocat_id[cat], order="date", type="video"): entries.append( self.wrap3(row, {"genre": cat}) ) # Topics |
︙ | ︙ | |||
210 211 212 213 214 215 216 | self.update_streams_partially_done(entries) self.parent.status(i / 15.0) # empty entries else: | | | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | self.update_streams_partially_done(entries) self.parent.status(i / 15.0) # empty entries else: return self.placeholder # done return entries # Search for channel name: |
︙ | ︙ |