Skip to content

Commit

Permalink
Ignore YT Premium formats
Browse files Browse the repository at this point in the history
  • Loading branch information
onionware-github authored Jan 8, 2024
1 parent 57b80b1 commit f111589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OnionMedia/OnionMedia.Core/Classes/DownloaderMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public static async Task DownloadStreamAsync(StreamItemModel stream, bool getMP4
throw new ArgumentNullException(nameof(stream));

OptionSet ytOptions = new() { RestrictFilenames = true };
ytOptions.AddCustomOption("--extractor-args", "youtube:player_client=android,web");

//Creates a temp directory if it does not already exist.
Directory.CreateDirectory(pathProvider.DownloaderTempdir);
Expand Down

0 comments on commit f111589

Please sign in to comment.