lib.itmens/catalog/movie/models.py

11 lines
347 B
Python
Raw Normal View History

from catalog.common import *
class Movie(Item):
2022-12-11 23:20:28 +00:00
category = ItemCategory.Movie
2022-12-12 16:46:37 +00:00
url_path = 'movie'
imdb = PrimaryLookupIdDescriptor(IdType.IMDB)
tmdb_movie = PrimaryLookupIdDescriptor(IdType.TMDB_Movie)
douban_movie = PrimaryLookupIdDescriptor(IdType.DoubanMovie)
duration = jsondata.IntegerField(blank=True, default=None)