mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support title and description for videos
This commit is contained in:
parent
02b206078d
commit
371a2473bc
6 changed files with 26 additions and 5 deletions
|
|
@ -3,6 +3,10 @@ import norm/sqlite
|
|||
|
||||
import types, api/profile
|
||||
|
||||
template safeAddColumn(field: typedesc): untyped =
|
||||
try: field.addColumn
|
||||
except DbError: discard
|
||||
|
||||
dbFromTypes("cache.db", "", "", "", [Profile, Video])
|
||||
|
||||
withDb:
|
||||
|
|
@ -10,6 +14,8 @@ withDb:
|
|||
createTables()
|
||||
except DbError:
|
||||
discard
|
||||
Video.title.safeAddColumn
|
||||
Video.description.safeAddColumn
|
||||
|
||||
var profileCacheTime = initDuration(minutes=10)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue