Skip to content

Commit fa131ff

Browse files
authored
Merge pull request #137 from bhrutledge/134-video-priority
Add Video.priority
2 parents 89cdf47 + bb3cb62 commit fa131ff

File tree

7 files changed

+145
-45
lines changed

7 files changed

+145
-45
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__pycache__/
2+
.pytest_cache/
23
*.py[cod]
34
venv/
45
htmlcov/

hth/jahhills.json

+74-37
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,8 @@
17881788
"preview_url": "https://img.youtube.com/vi/v0wsVdRvKP8/hqdefault.jpg",
17891789
"description": "",
17901790
"credits": "",
1791-
"release": 1
1791+
"release": 1,
1792+
"priority": null
17921793
}
17931794
},
17941795
{
@@ -1804,7 +1805,8 @@
18041805
"preview_url": "https://img.youtube.com/vi/nOfHnxgtuB0/hqdefault.jpg",
18051806
"description": "",
18061807
"credits": "",
1807-
"release": null
1808+
"release": null,
1809+
"priority": null
18081810
}
18091811
},
18101812
{
@@ -1820,7 +1822,8 @@
18201822
"preview_url": "https://img.youtube.com/vi/Tmh1zmIpZKI/hqdefault.jpg",
18211823
"description": "",
18221824
"credits": "",
1823-
"release": null
1825+
"release": null,
1826+
"priority": null
18241827
}
18251828
},
18261829
{
@@ -1836,7 +1839,8 @@
18361839
"preview_url": "https://img.youtube.com/vi/Sl3_u51Jw8k/hqdefault.jpg",
18371840
"description": "",
18381841
"credits": "",
1839-
"release": null
1842+
"release": null,
1843+
"priority": null
18401844
}
18411845
},
18421846
{
@@ -1852,7 +1856,8 @@
18521856
"preview_url": "https://img.youtube.com/vi/59cbFQnBLsg/hqdefault.jpg",
18531857
"description": "",
18541858
"credits": "",
1855-
"release": 3
1859+
"release": 3,
1860+
"priority": null
18561861
}
18571862
},
18581863
{
@@ -1868,7 +1873,8 @@
18681873
"preview_url": "https://i.vimeocdn.com/video/33474406_640.jpg",
18691874
"description": "",
18701875
"credits": "",
1871-
"release": null
1876+
"release": null,
1877+
"priority": null
18721878
}
18731879
},
18741880
{
@@ -1884,7 +1890,8 @@
18841890
"preview_url": "https://i.vimeocdn.com/video/26930319_640.jpg",
18851891
"description": "",
18861892
"credits": "",
1887-
"release": null
1893+
"release": null,
1894+
"priority": null
18881895
}
18891896
},
18901897
{
@@ -1900,7 +1907,8 @@
19001907
"preview_url": "https://img.youtube.com/vi/P_WLB3VsrIM/hqdefault.jpg",
19011908
"description": "",
19021909
"credits": "",
1903-
"release": 3
1910+
"release": 3,
1911+
"priority": null
19041912
}
19051913
},
19061914
{
@@ -1916,7 +1924,8 @@
19161924
"preview_url": "https://img.youtube.com/vi/tAMliN9QcP0/hqdefault.jpg",
19171925
"description": "",
19181926
"credits": "",
1919-
"release": 9
1927+
"release": 9,
1928+
"priority": null
19201929
}
19211930
},
19221931
{
@@ -1932,7 +1941,8 @@
19321941
"preview_url": "https://img.youtube.com/vi/jGPDc-R0wcE/hqdefault.jpg",
19331942
"description": "",
19341943
"credits": "",
1935-
"release": 3
1944+
"release": 3,
1945+
"priority": null
19361946
}
19371947
},
19381948
{
@@ -1948,7 +1958,8 @@
19481958
"preview_url": "https://img.youtube.com/vi/zLKaes54BPM/maxresdefault.jpg",
19491959
"description": "",
19501960
"credits": "",
1951-
"release": 7
1961+
"release": 7,
1962+
"priority": null
19521963
}
19531964
},
19541965
{
@@ -1964,7 +1975,8 @@
19641975
"preview_url": "https://img.youtube.com/vi/lPvL_n_z1S4/maxresdefault.jpg",
19651976
"description": "",
19661977
"credits": "",
1967-
"release": null
1978+
"release": null,
1979+
"priority": null
19681980
}
19691981
},
19701982
{
@@ -1980,7 +1992,8 @@
19801992
"preview_url": "https://i.vimeocdn.com/video/302578255_640.jpg",
19811993
"description": "",
19821994
"credits": "",
1983-
"release": 7
1995+
"release": 7,
1996+
"priority": null
19841997
}
19851998
},
19861999
{
@@ -1996,7 +2009,8 @@
19962009
"preview_url": "https://i.vimeocdn.com/video/304545540_640.jpg",
19972010
"description": "",
19982011
"credits": "",
1999-
"release": 7
2012+
"release": 7,
2013+
"priority": null
20002014
}
20012015
},
20022016
{
@@ -2012,7 +2026,8 @@
20122026
"preview_url": "https://img.youtube.com/vi/2VtZF_MNk7o/maxresdefault.jpg",
20132027
"description": "",
20142028
"credits": "",
2015-
"release": 7
2029+
"release": 7,
2030+
"priority": null
20162031
}
20172032
},
20182033
{
@@ -2028,7 +2043,8 @@
20282043
"preview_url": "https://img.youtube.com/vi/_MpoV3nN5ZM/maxresdefault.jpg",
20292044
"description": "",
20302045
"credits": "",
2031-
"release": null
2046+
"release": null,
2047+
"priority": null
20322048
}
20332049
},
20342050
{
@@ -2044,7 +2060,8 @@
20442060
"preview_url": "https://img.youtube.com/vi/QXgTDyatfvE/maxresdefault.jpg",
20452061
"description": "",
20462062
"credits": "",
2047-
"release": 9
2063+
"release": 9,
2064+
"priority": null
20482065
}
20492066
},
20502067
{
@@ -2060,7 +2077,8 @@
20602077
"preview_url": "https://img.youtube.com/vi/Y_bu8VG8R1U/maxresdefault.jpg",
20612078
"description": "",
20622079
"credits": "",
2063-
"release": null
2080+
"release": null,
2081+
"priority": null
20642082
}
20652083
},
20662084
{
@@ -2076,7 +2094,8 @@
20762094
"preview_url": "https://img.youtube.com/vi/kEe0RD1Mr7s/maxresdefault.jpg",
20772095
"description": "",
20782096
"credits": "",
2079-
"release": null
2097+
"release": null,
2098+
"priority": null
20802099
}
20812100
},
20822101
{
@@ -2092,7 +2111,8 @@
20922111
"preview_url": "https://img.youtube.com/vi/2GAxATJ74_A/maxresdefault.jpg",
20932112
"description": "",
20942113
"credits": "",
2095-
"release": null
2114+
"release": null,
2115+
"priority": null
20962116
}
20972117
},
20982118
{
@@ -2108,7 +2128,8 @@
21082128
"preview_url": "https://img.youtube.com/vi/8XK-vkOZh_c/maxresdefault.jpg",
21092129
"description": "",
21102130
"credits": "",
2111-
"release": 10
2131+
"release": 10,
2132+
"priority": null
21122133
}
21132134
},
21142135
{
@@ -2124,7 +2145,8 @@
21242145
"preview_url": "https://img.youtube.com/vi/zW2Msqaclls/maxresdefault.jpg",
21252146
"description": "",
21262147
"credits": "",
2127-
"release": 10
2148+
"release": 10,
2149+
"priority": null
21282150
}
21292151
},
21302152
{
@@ -2140,7 +2162,8 @@
21402162
"preview_url": "https://img.youtube.com/vi/SeMhvXc5W-I/maxresdefault.jpg",
21412163
"description": "",
21422164
"credits": "",
2143-
"release": 10
2165+
"release": 10,
2166+
"priority": null
21442167
}
21452168
},
21462169
{
@@ -2156,7 +2179,8 @@
21562179
"preview_url": "https://img.youtube.com/vi/Bu0q0v84Xds/maxresdefault.jpg",
21572180
"description": "",
21582181
"credits": "",
2159-
"release": 10
2182+
"release": 10,
2183+
"priority": null
21602184
}
21612185
},
21622186
{
@@ -2172,7 +2196,8 @@
21722196
"preview_url": "https://img.youtube.com/vi/YuY1EZXq2eQ/maxresdefault.jpg",
21732197
"description": "",
21742198
"credits": "",
2175-
"release": null
2199+
"release": null,
2200+
"priority": null
21762201
}
21772202
},
21782203
{
@@ -2188,7 +2213,8 @@
21882213
"preview_url": "https://img.youtube.com/vi/SKrQtNpixtI/maxresdefault.jpg",
21892214
"description": "",
21902215
"credits": "",
2191-
"release": 10
2216+
"release": 10,
2217+
"priority": null
21922218
}
21932219
},
21942220
{
@@ -2204,7 +2230,8 @@
22042230
"preview_url": "https://img.youtube.com/vi/TZU2mWTwTeY/sddefault.jpg",
22052231
"description": "",
22062232
"credits": "",
2207-
"release": null
2233+
"release": null,
2234+
"priority": null
22082235
}
22092236
},
22102237
{
@@ -2220,7 +2247,8 @@
22202247
"preview_url": "https://img.youtube.com/vi/SqwdsgOPMOM/maxresdefault.jpg",
22212248
"description": "",
22222249
"credits": "",
2223-
"release": null
2250+
"release": null,
2251+
"priority": null
22242252
}
22252253
},
22262254
{
@@ -2236,7 +2264,8 @@
22362264
"preview_url": "https://i.vimeocdn.com/video/517362144_640.jpg",
22372265
"description": "",
22382266
"credits": "<p><strong>Directed/Edited</strong> by Ryan Hamilton Walsh</p>\r\n\r\n<p><strong>Cast</strong></p>\r\n\r\n<p>Ryan Connelly as Bear Boy <br>\r\nBrian Rutledge <br>\r\nJoseph Marrett <br>\r\nNicholas Giandone Ward <br>\r\nRyan Hamilton Walsh <br>\r\nColleen Matthews <br>\r\nKelly Teer <br>\r\nPete Schluter <br>\r\nNick Stanisha <br>\r\nChristine Fernsebner Eslao <br>\r\nJeff Walsh <br>\r\nMike O\u2019Brien <br>\r\nJohn Benda <br>\r\nDean Ward <br>\r\nKathleen Giadone</p>\r\n\r\n<p><strong>Mask Design</strong> by <a href=\"http://wintercroft.com\">Wintercroft</a></p>\r\n\r\n<p><strong>Mask Assembly</strong></p>\r\n\r\n<p>Nicholas Giadone Ward <br>\r\nRyan Hamilton Walsh <br>\r\nBrian Rutledge <br>\r\nRyan Connelly</p>\r\n\r\n<p><strong>Special Thanks</strong></p>\r\n\r\n<p>Crystal Ren\u00e9 Burney <br>\r\nCharles Morton <br>\r\nThe Tavern at the End of the World</p>",
2239-
"release": 10
2267+
"release": 10,
2268+
"priority": null
22402269
}
22412270
},
22422271
{
@@ -2252,7 +2281,8 @@
22522281
"preview_url": "https://img.youtube.com/vi/3lkVl3hyBXE/maxresdefault.jpg",
22532282
"description": "<p>Some are calling this the best video of all time. I can't speak to that but I can say this video does contain actual footage from the recording studio where the real album title was revealed to the band. And it was...tense.</p>",
22542283
"credits": "",
2255-
"release": 12
2284+
"release": 12,
2285+
"priority": null
22562286
}
22572287
},
22582288
{
@@ -2268,7 +2298,8 @@
22682298
"preview_url": "https://img.youtube.com/vi/2I0FQFGqcCc/maxresdefault.jpg",
22692299
"description": "",
22702300
"credits": "",
2271-
"release": 12
2301+
"release": 12,
2302+
"priority": null
22722303
}
22732304
},
22742305
{
@@ -2284,7 +2315,8 @@
22842315
"preview_url": "https://img.youtube.com/vi/C7uDxqn7dtY/maxresdefault.jpg",
22852316
"description": "",
22862317
"credits": "<p>Candle Eradicators: Mark Walsh, Mona Walsh, Julia Papps, Billy Kanellopoulos, Maura Johnston, Brad Nelson, Hatcher Bentley, Jessica Grimsby, Erik Szyska, Kevin Hoskins, Boog Dumphy, Katie Connors, Danielle Blasczak, Clara & Connor, Jenna Sicuranza, Evan Sicuranza, Linda Sicuranza, Kevin Becerra, Ramona Rose, Mouhcine Karrouim, Marisa Young, Jeff Prohaska, Anthony Puopolo, Jim Kavanaugh, Francine Mroczek, Allyson Laredo, Katelyn Guerin, Michael Ruggerio, Trina Ruggerio, Matthew Scott, Ed Park, Leeore Schnairsohn, Alexandria Ellison, Jim Mahoney, Ryan Walsh, Joseph Marrett, Brian Rutledge, Ryan Connelly</p>",
2287-
"release": 12
2318+
"release": 12,
2319+
"priority": null
22882320
}
22892321
},
22902322
{
@@ -2300,7 +2332,8 @@
23002332
"preview_url": "https://img.youtube.com/vi/Amz8lS4uB7I/maxresdefault.jpg",
23012333
"description": "",
23022334
"credits": "",
2303-
"release": 15
2335+
"release": 15,
2336+
"priority": null
23042337
}
23052338
},
23062339
{
@@ -2316,7 +2349,8 @@
23162349
"preview_url": "https://img.youtube.com/vi/1JOs37FojZ0/maxresdefault.jpg",
23172350
"description": "",
23182351
"credits": "<p>Special thanks to Joe Yoga and Neal Block for filming.</p>",
2319-
"release": 15
2352+
"release": 15,
2353+
"priority": 1
23202354
}
23212355
},
23222356
{
@@ -2332,7 +2366,8 @@
23322366
"preview_url": "https://img.youtube.com/vi/CrT-bkNCXTI/maxresdefault.jpg",
23332367
"description": "<p>Much like the song, the video for \u201cRunning Hot With Fate\u201d is a collection of miniature short stories about a group of people. But whereas these stories were conveyed in the recording by way of the lyrics, here in the video, volumes are telegraphed via peoples\u2019 stares, subtle expressions, and the contours of their faces. 27 Boston musicians were cast in \u2018Fate\u2019 from a pool of artists whose careers collectively cover six decades of music.</p>\r\n\r\n<p>You can read more about the video, meet the Fates, and own a piece of Fate at <a href=\"https://www.runninghotwithfate.com/\">runninghotwithfate.com</a>.</p>",
23342368
"credits": "<p>Directed &amp; edited by Tyler Hollis Derryberry\r\n<br />Concept/Produced by: Tyler Hollis Derryberry &amp; Ryan H. Walsh</p>",
2335-
"release": 15
2369+
"release": 15,
2370+
"priority": 1
23362371
}
23372372
},
23382373
{
@@ -2348,7 +2383,8 @@
23482383
"preview_url": "https://img.youtube.com/vi/cXzCCUVUih8/maxresdefault.jpg",
23492384
"description": "",
23502385
"credits": "",
2351-
"release": null
2386+
"release": null,
2387+
"priority": null
23522388
}
23532389
},
23542390
{
@@ -2364,7 +2400,8 @@
23642400
"preview_url": "https://img.youtube.com/vi/qUDQwLrYuCY/maxresdefault.jpg",
23652401
"description": "",
23662402
"credits": "",
2367-
"release": null
2403+
"release": null,
2404+
"priority": null
23682405
}
23692406
},
23702407
{

hth/music/admin.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ class SongAdmin(admin.ModelAdmin):
2828
class VideoAdmin(admin.ModelAdmin):
2929
save_on_top = True
3030
fields = ('title', 'slug', 'source_url', 'embed_code', 'preview_url',
31-
'release', 'description', 'credits', 'publish', 'publish_on',)
31+
'release', 'description', 'credits', 'publish', 'publish_on',
32+
'priority',)
3233
prepopulated_fields = {'slug': ('title',)}
33-
list_display = ('title', 'source_url', 'release', 'publish', 'publish_on',)
34+
list_display = ('title', 'source_url', 'release', 'publish', 'publish_on',
35+
'priority',)
3436

3537

3638
admin.site.register(Video, VideoAdmin)

0 commit comments

Comments
 (0)