mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update recording folder generation
This commit is contained in:
parent
36ae31d3a7
commit
04302136f3
@ -102,8 +102,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|||||||
_timerProvider.RestartTimers();
|
_timerProvider.RestartTimers();
|
||||||
|
|
||||||
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
|
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
|
||||||
|
|
||||||
CreateRecordingFolders();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnRecordingFoldersChanged()
|
private void OnRecordingFoldersChanged()
|
||||||
@ -111,7 +109,19 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|||||||
CreateRecordingFolders();
|
CreateRecordingFolders();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateRecordingFolders()
|
internal void CreateRecordingFolders()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
CreateRecordingFoldersInternal();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.ErrorException("Error creating recording folders", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void CreateRecordingFoldersInternal()
|
||||||
{
|
{
|
||||||
var recordingFolders = GetRecordingFolders();
|
var recordingFolders = GetRecordingFolders();
|
||||||
|
|
||||||
|
@ -1126,6 +1126,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|||||||
|
|
||||||
private async Task RefreshChannelsInternal(IProgress<double> progress, CancellationToken cancellationToken)
|
private async Task RefreshChannelsInternal(IProgress<double> progress, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
EmbyTV.EmbyTV.Current.CreateRecordingFolders();
|
||||||
|
|
||||||
var numComplete = 0;
|
var numComplete = 0;
|
||||||
double progressPerService = _services.Count == 0
|
double progressPerService = _services.Count == 0
|
||||||
? 0
|
? 0
|
||||||
|
@ -215,9 +215,6 @@
|
|||||||
<Content Include="dashboard-ui\components\metadataeditor\metadataeditor.template.html">
|
<Content Include="dashboard-ui\components\metadataeditor\metadataeditor.template.html">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\components\playlisteditor\playlisteditor.js">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="dashboard-ui\devices\ie\ie.css">
|
<Content Include="dashboard-ui\devices\ie\ie.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
@ -935,9 +932,6 @@
|
|||||||
<Content Include="dashboard-ui\scripts\playlistedit.js">
|
<Content Include="dashboard-ui\scripts\playlistedit.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="dashboard-ui\scripts\playlistmanager.js">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<Content Include="dashboard-ui\scripts\playlists.js">
|
<Content Include="dashboard-ui\scripts\playlists.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user