Ver código fonte

Fix issue with EncodedRecorder streams not showing up under "Active Recordings" (#14357)

Dan Watson 1 semana atrás
pai
commit
dddeea1f7b
2 arquivos alterados com 5 adições e 0 exclusões
  1. 1 0
      CONTRIBUTORS.md
  2. 4 0
      src/Jellyfin.LiveTv/IO/EncodedRecorder.cs

+ 1 - 0
CONTRIBUTORS.md

@@ -199,6 +199,7 @@
  - [allesmi](https://github.com/allesmi)
  - [ThunderClapLP](https://github.com/ThunderClapLP)
  - [Shoham Peller](https://github.com/spellr)
+ - [theshoeshiner](https://github.com/theshoeshiner)
 
 # Emby Contributors
 

+ 4 - 0
src/Jellyfin.LiveTv/IO/EncodedRecorder.cs

@@ -73,6 +73,10 @@ namespace Jellyfin.LiveTv.IO
         {
             _targetPath = targetFile;
             Directory.CreateDirectory(Path.GetDirectoryName(targetFile));
+            if (!File.Exists(targetFile))
+            {
+                FileHelper.CreateEmpty(targetFile);
+            }
 
             var processStartInfo = new ProcessStartInfo
             {