Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ USER $UID
STOPSIGNAL SIGINT

# Use dumb-init as PID 1 to handle signals properly
ENTRYPOINT [ "dumb-init", "--", "/app/LivestreamRecorderService" ]
# Start bgutil-pot server in background and LivestreamRecorderService in foreground
ENTRYPOINT [ "dumb-init", "--", "sh", "-c", "/usr/bin/bgutil-pot & exec /app/LivestreamRecorderService" ]

ARG VERSION
ARG RELEASE
Expand Down
3 changes: 2 additions & 1 deletion Helper/YoutubeDLHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public static async Task<RunResult<YtdlpVideoData>> RunVideoDataFetch_Alt(this Y
Exec = "echo outfile: {}",
DumpSingleJson = true,
FlatPlaylist = flat,
WriteComments = fetchComments
WriteComments = fetchComments,
Verbose = true
};

if (overrideOptions != null)
Expand Down
4 changes: 4 additions & 0 deletions ScopedServices/PlatformService/YoutubeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ public override async Task UpdateVideoDataAsync(Video video, CancellationToken c
break;
// Copyright Notice
case "needs_auth":
// It seems that we now always get "needs_auth" for upcoming videos.
if (videoData.LiveStatus == "is_upcoming")
goto case "public";

// Not archived
if (video.Status < VideoStatus.Archived)
{
Expand Down