Skip to content

Commit

Permalink
Add series start year to renaming options (#10183)
Browse files Browse the repository at this point in the history
* Add series start year to renaming options

* update legenda

* yarn dev

Co-authored-by: p0psicles <[email protected]>
  • Loading branch information
medariox and p0psicles authored Jan 2, 2022
1 parent b76e3e0 commit 2266228
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions medusa/tv/episode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1599,6 +1599,7 @@ def release_group(series, name):
'%CY': str(date.today().year),
'%CM': str(date.today().month),
'%CD': str(date.today().day),
'%SY': str(self.series.start_year),
'%0M': '%02d' % self.airdate.month,
'%0D': '%02d' % self.airdate.day,
'%RT': 'PROPER' if self.is_proper else '',
Expand Down
9 changes: 7 additions & 2 deletions themes-default/slim/src/components/helpers/name-pattern.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,21 @@
<td>720p_HDTV_x264</td>
</tr>
<tr class="even">
<td class="align-right"><b>Show premiere year:</b></td>
<td>%SY</td>
<td>{{ getDateFormat('yyyy') }}</td>
</tr>
<tr>
<td class="align-right"><i class="glyphicon glyphicon-info-sign" title="Multi-EP style is ignored" /> <b>Release Name:</b></td>
<td>%RN</td>
<td>Show.Name.S02E03.HDTV.x264-RLSGROUP</td>
</tr>
<tr>
<tr class="even">
<td class="align-right"><i class="glyphicon glyphicon-info-sign" title="UNKNOWN_RELEASE_GROUP is used in place of RLSGROUP if it could not be properly detected" /> <b>Release Group:</b></td>
<td>%RG</td>
<td>RLSGROUP</td>
</tr>
<tr class="even">
<tr>
<td class="align-right"><i class="glyphicon glyphicon-info-sign" title="If episode is proper/repack add 'proper' to name." /> <b>Release Type:</b></td>
<td>%RT</td>
<td>PROPER</td>
Expand Down
Loading

0 comments on commit 2266228

Please sign in to comment.