Skip to content

Commit

Permalink
Chore: update trailer title template (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Dec 15, 2023
1 parent 6fd4e5a commit bfab615
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,13 @@ def update_media(self, metadata, media, lang, force=False):
trailer = TrailerObject(
url='{plugin}://trailer/{b64url}'.format(
plugin=PLUGIN_NAME.lower(),
b64url=urlsafe_b64encode(trailer_url)
b64url=urlsafe_b64encode(trailer_url),
),
title=DEFAULT_TRAILER_TEMPLATE.format(
number=m.number,
title=m.title,
original_title=original_title,
),
title='Trailer: {number}'.format(number=m.number),
thumb=thumb,
)
metadata.extras.add(trailer)
Expand Down
1 change: 1 addition & 0 deletions Contents/Code/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

# Default Template
DEFAULT_TITLE_TEMPLATE = '{number} {title}'
DEFAULT_TRAILER_TEMPLATE = 'サンプル動画 {original_title}'

# Supported Languages
LANGUAGES = [
Expand Down

0 comments on commit bfab615

Please sign in to comment.