Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library: add more metadata fields for models #837

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add commetns
  • Loading branch information
cosven committed Jun 2, 2024
commit 0090f56cf724726e099c850dd5dcdb5b7631d4ff
2 changes: 1 addition & 1 deletion feeluown/library/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class VideoModel(BriefVideoModel, BaseNormalModel):
duration: int
cover: str
play_count: int = -1 # -1 means unknown
released: str = '' # format: 2000-12-27.
released: str = '' # publish date. format: 2000-12-27

def model_post_init(self, _):
super().model_post_init(_)
Expand Down
2 changes: 2 additions & 0 deletions feeluown/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def init_config(self, config: Config):
# instead of app.fuo_xxx.X=Y.
if self.name.startswith('fuo_'):
names.append(self.name[4:])
elif self.name.startswith('feeluown_'):
names.append(self.name[9:])

# Define a subconfig(namespace) for plugin so that plugin can
# define its own configuration fields.
Expand Down
Loading