Skip to content

Commit 0b092ae

Browse files
committed
update youtubedl, increment minor
1 parent 629ba63 commit 0b092ae

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MainActivity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private void DoDownload() {
5353
manager.CreateNotificationChannel(new NotificationChannel("youtubedl", "YoutubeDL", NotificationImportance.Low));
5454
}
5555

56-
var videoId = new VideoId(youtubeUrl);
56+
var videoId = VideoId.Parse(youtubeUrl);
5757

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

7979
makeNotif(video.Title, "Downloading");
8080

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

8484
if (audioStream != null) {

Properties/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<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">
2+
<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">
33
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" />
44
<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>
55
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

YoutubeDL.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
</AndroidResource>
9797
</ItemGroup>
9898
<ItemGroup>
99-
<PackageReference Include="Xamarin.Essentials" Version="1.6.0" />
99+
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
100100
<PackageReference Include="YoutubeExplode">
101-
<Version>6.0.0-alpha2</Version>
101+
<Version>6.0.1</Version>
102102
</PackageReference>
103103
</ItemGroup>
104104
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />

0 commit comments

Comments
 (0)