Skip to content

Commit

Permalink
update youtubedl, increment minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxite committed May 21, 2021
1 parent 629ba63 commit 0b092ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void DoDownload() {
manager.CreateNotificationChannel(new NotificationChannel("youtubedl", "YoutubeDL", NotificationImportance.Low));
}

var videoId = new VideoId(youtubeUrl);
var videoId = VideoId.Parse(youtubeUrl);

NotificationCompat.Builder notif = new NotificationCompat.Builder(ApplicationContext, "youtubedl")
.SetProgress(0, 100, true)
Expand All @@ -78,7 +78,7 @@ void makeNotif(string title, string text) {

makeNotif(video.Title, "Downloading");

var audioStream = (await client.Videos.Streams.GetManifestAsync(videoId)).GetAudioOnly().Where(info => info.Container == Container.Mp4).WithHighestBitrate();
var audioStream = (await client.Videos.Streams.GetManifestAsync(videoId)).GetAudioOnlyStreams().Where(info => info.Container == Container.Mp4).GetWithHighestBitrate();
notif.SetContentTitle(video.Title);

if (audioStream != null) {
Expand Down
2 changes: 1 addition & 1 deletion Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="12" android:versionName="0.1.11" package="nl.dirkkok.android.youtubedl" android:installLocation="auto">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="13" android:versionName="0.1.12" package="nl.dirkkok.android.youtubedl" android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" />
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="YoutubeDL" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="true" android:theme="@style/AppTheme"></application>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Expand Down
4 changes: 2 additions & 2 deletions YoutubeDL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
</AndroidResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="YoutubeExplode">
<Version>6.0.0-alpha2</Version>
<Version>6.0.1</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
Expand Down

0 comments on commit 0b092ae

Please sign in to comment.