Check-in [3e0cfc29b3]
Overview
Comment: | Wadsworth constant for youtube.com/ links |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3e0cfc29b37fcdb3ce5f02be80681647 |
User & Date: | mario on 2014-06-17 01:30:19 |
Other Links: | manifest | tags |
Context
2014-06-30
| ||
17:39 | Copy() cache search rows (else channel entries got modified) check-in: a3fd4f7154 user: mario tags: trunk | |
2014-06-17
| ||
01:30 | Wadsworth constant for youtube.com/ links check-in: 3e0cfc29b3 user: mario tags: trunk | |
2014-06-16
| ||
15:06 | Keep last searched channel for search dialog (but avoid bookmarks) check-in: a7ee09dc9a user: mario tags: trunk | |
Changes
Modified channels/youtube.py from [f52ff49900] to [bb7a58a931].
︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | + + + + + + + | "name": "youtube_region", "type": "select", "select": "=No Region|AR=Argentina|AU=Australia|AT=Austria|BE=Belgium|BR=Brazil|CA=Canada|CL=Chile|CO=Colombia|CZ=Czech Republic|EG=Egypt|FR=France|DE=Germany|GB=Great Britain|HK=Hong Kong|HU=Hungary|IN=India|IE=Ireland|IL=Israel|IT=Italy|JP=Japan|JO=Jordan|MY=Malaysia|MX=Mexico|MA=Morocco|NL=Netherlands|NZ=New Zealand|PE=Peru|PH=Philippines|PL=Poland|RU=Russia|SA=Saudi Arabia|SG=Singapore|ZA=South Africa|KR=South Korea|ES=Spain|SE=Sweden|CH=Switzerland|TW=Taiwan|AE=United Arab Emirates|US=United States", "value": "UK", "description": "Filter by region id.", "category": "auth", }, { "name": "youtube_wadsworth", "type": "boolean", "value": 0, "description": "Apply Wadsworth constant.", "category": "filter", }, ] # from GET https://www.googleapis.com/youtube/v3/videoCategories?part=id%2Csnippet& videocat_id = { "Film & Animation": 1, "Autos & Vehicles": 2, "Music": 10, |
︙ | |||
298 299 300 301 302 303 304 | 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 | - + | id = id["videoId"] # for /playlistItems elif "resourceId" in row["snippet"]: id = row["snippet"]["resourceId"]["videoId"] data.update(dict( url = "http://youtube.com/v/" + id, |
︙ |