Fixed comment advert
Test ads are now on
This commit is contained in:
@@ -42,7 +42,7 @@ namespace FoxTube
|
|||||||
};
|
};
|
||||||
public static YouTubeService Service => IsAuthorized ? new YouTubeService(Initializer) : NoAuthService;
|
public static YouTubeService Service => IsAuthorized ? new YouTubeService(Initializer) : NoAuthService;
|
||||||
public static HttpClient HttpClient { get; } = new HttpClient();
|
public static HttpClient HttpClient { get; } = new HttpClient();
|
||||||
private static bool TestAds => false; //Change this bool
|
private static bool TestAds => true; //Change this bool
|
||||||
public static string AppId => TestAds ? "d25517cb-12d4-4699-8bdc-52040c712cab" : "9ncqqxjtdlfh";
|
public static string AppId => TestAds ? "d25517cb-12d4-4699-8bdc-52040c712cab" : "9ncqqxjtdlfh";
|
||||||
public static string AdUnitId => TestAds ? "test" : "1100044398";
|
public static string AdUnitId => TestAds ? "test" : "1100044398";
|
||||||
public static bool AdsDisabled { get; private set; } = true;
|
public static bool AdsDisabled { get; private set; } = true;
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignWidth="400">
|
d:DesignWidth="400"
|
||||||
|
Visibility="Collapsed">
|
||||||
|
|
||||||
<Grid Margin="2">
|
<Grid Margin="2">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ namespace FoxTube.Controls.Adverts
|
|||||||
meta.Text += advert.Price;
|
meta.Text += advert.Price;
|
||||||
meta.Text += " " + advert.Rating;
|
meta.Text += " " + advert.Rating;
|
||||||
meta.Visibility = string.IsNullOrWhiteSpace(meta.Text) ? Visibility.Collapsed : Visibility.Visible;
|
meta.Visibility = string.IsNullOrWhiteSpace(meta.Text) ? Visibility.Collapsed : Visibility.Visible;
|
||||||
|
|
||||||
|
Visibility = Visibility.Visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ namespace FoxTube
|
|||||||
private void QualitySelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
private void QualitySelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||||
{
|
{
|
||||||
SettingsStorage.RememberedQuality = e.AddedItems[0] as string;
|
SettingsStorage.RememberedQuality = e.AddedItems[0] as string;
|
||||||
MediaStreamInfo item = MediaStreams.Muxed.Find(i => i.VideoQualityLabel == e.AddedItems[0] as string);
|
MediaStreamInfo item = MediaStreams.Muxed.Find(i => i.VideoQualityLabel.Contains(e.AddedItems[0] as string));
|
||||||
if (item == null)
|
if (item == null)
|
||||||
item = MediaStreams.Video.Find(i => i.VideoQualityLabel == e.AddedItems[0] as string);
|
item = MediaStreams.Video.Find(i => i.VideoQualityLabel == e.AddedItems[0] as string);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user