Skip to content

Commit

Permalink
Add ability to select xem seasons for season scene exceptions (#10438)
Browse files Browse the repository at this point in the history
* Add ability to select xem seasons for season scene exceptions

* update changelog
  • Loading branch information
p0psicles authored Mar 27, 2022
1 parent c3cb589 commit d28d5b8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

#### Improvements
- UI now behaves as a single page app ([10408](https://github.com/pymedusa/Medusa/pull/10408))
- Add ability to select Xem mapped seasons for season scene exceptions ([10438](https://github.com/pymedusa/Medusa/pull/10438))

#### Fixes
- Fix postprocessing loop when not using Failed Download Handling ([10435](https://github.com/pymedusa/Medusa/pull/10435))

## 0.5.25 (08-03-2022)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,28 @@ export default {
return [];
}
return [
...[{ value: -1, description: 'Show Exception' }],
const seasons = [];
seasons.push({ value: -1, description: 'Show Exception' });
seasons.push(
...show.seasonCount.filter(season => season.season !== 0).map(season => {
return ({ value: season.season, description: `Season ${season.season}` });
})
];
);
if (show.config.scene && show.xemNumbering && show.xemNumbering.length > 0) {
for (const xemNum of show.xemNumbering) {
if (xemNum.destination.season === 0) {
continue;
}
if (!seasons.find(s => s.value === xemNum.destination.season)) {
seasons.push({ value: xemNum.destination.season, description: `Season ${xemNum.destination.season} (xem)` });
}
}
}
return seasons.sort((first, second) => first.value - second.value);
},
unique() {
const { items, newItem } = this;
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/medusa-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/light/assets/js/medusa-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d28d5b8

Please sign in to comment.