Skip to content

Commit

Permalink
Chore(metadata): add content rating age
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Dec 17, 2023
1 parent 4627b2f commit db453e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MetaTube.bundle/Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ def update(self, metadata, media, lang, force=False):
metadata.tagline = '{pid:s}'.format(pid=pid)

# Content Rating
metadata.content_rating = DEFAULT_RATING
metadata.content_rating = DEFAULT_CONTENT_RATING
metadata.content_rating_age = DEFAULT_CONTENT_RATING_AGE

# Producing Country
metadata.countries.clear()
Expand Down
5 changes: 3 additions & 2 deletions MetaTube.bundle/Contents/Code/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
# Chinese Subtitle
CHINESE_SUBTITLE = '中文字幕'

# Content Rating
DEFAULT_RATING = 'JP-18+'
# Content Rating/Country
DEFAULT_COUNTRY = 'Japan'
DEFAULT_CONTENT_RATING = 'JP-18+'
DEFAULT_CONTENT_RATING_AGE = 18

# Default Template
DEFAULT_TITLE_TEMPLATE = '{number} {title}'
Expand Down

0 comments on commit db453e7

Please sign in to comment.