mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
Compare commits
2 Commits
Bond-009-p
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21c0a35edf | ||
|
|
285fc1b9f6 |
11
.github/workflows/pull-request-conflict.yml
vendored
11
.github/workflows/pull-request-conflict.yml
vendored
@@ -5,19 +5,18 @@ on:
|
||||
branches:
|
||||
- master
|
||||
pull_request_target:
|
||||
types: [synchronize]
|
||||
issue_comment:
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
main:
|
||||
label:
|
||||
name: Labeling
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
if: ${{ github.repository == 'jellyfin/jellyfin' }}
|
||||
if: ${{ github.repository == 'jellyfin/jellyfin' && github.event.issue.pull_request }}
|
||||
steps:
|
||||
- name: Apply label
|
||||
uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0
|
||||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target'}}
|
||||
with:
|
||||
dirtyLabel: 'merge conflict'
|
||||
commentOnDirty: 'This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.'
|
||||
|
||||
@@ -210,16 +210,19 @@ public class SeriesMetadataService : MetadataService<Series, SeriesInfo>
|
||||
return true;
|
||||
}
|
||||
|
||||
// Not yet processed
|
||||
if (episode.SeasonId.IsEmpty())
|
||||
// Episode has been processed and linked to a season, only needs a virtual season
|
||||
// if it isn't already linked to a known physical season by ID or path
|
||||
if (!episode.SeasonId.IsEmpty())
|
||||
{
|
||||
return false;
|
||||
return !physicalSeasonIds.Contains(episode.SeasonId)
|
||||
&& !physicalSeasonPaths.Contains(System.IO.Path.GetDirectoryName(episode.Path) ?? string.Empty);
|
||||
}
|
||||
|
||||
// Episode has been processed, only needs a virtual season if it isn't
|
||||
// already linked to a known physical season by ID or path
|
||||
return !physicalSeasonIds.Contains(episode.SeasonId)
|
||||
&& !physicalSeasonPaths.Contains(System.IO.Path.GetDirectoryName(episode.Path) ?? string.Empty);
|
||||
// Episode not yet linked, check if it's in a physical season folder
|
||||
// If yes then skip it, processing not finished
|
||||
// If no then include it, needs Season Unknown
|
||||
var episodeDirectory = System.IO.Path.GetDirectoryName(episode.Path) ?? string.Empty;
|
||||
return !physicalSeasonPaths.Contains(episodeDirectory);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user