#219: Fixed
This commit is contained in:
@@ -30,9 +30,7 @@ namespace FoxTube.Controls
|
||||
|
||||
public async void Initialize(string id, string playlist = null)
|
||||
{
|
||||
YouTubeService ytService = SecretsVault.NoAuthService;
|
||||
|
||||
VideosResource.ListRequest request = ytService.Videos.List("snippet,contentDetails,statistics,liveStreamingDetails");
|
||||
VideosResource.ListRequest request = SecretsVault.Service.Videos.List("snippet,contentDetails,statistics,liveStreamingDetails");
|
||||
request.Id = id;
|
||||
VideoListResponse response = await request.ExecuteAsync();
|
||||
|
||||
@@ -71,7 +69,7 @@ namespace FoxTube.Controls
|
||||
embed = false;
|
||||
}
|
||||
|
||||
var request1 = ytService.Channels.List("snippet");
|
||||
var request1 = SecretsVault.Service.Channels.List("snippet");
|
||||
request1.Id = item.Snippet.ChannelId;
|
||||
ChannelListResponse response1 = await request1.ExecuteAsync();
|
||||
|
||||
@@ -82,11 +80,11 @@ namespace FoxTube.Controls
|
||||
}
|
||||
catch { }
|
||||
|
||||
if(SecretsVault.UserHistory.Exists(x => x.Id == videoId))
|
||||
/*if(SecretsVault.UserHistory.Exists(x => x.Id == videoId))
|
||||
{
|
||||
watched.Visibility = Visibility.Visible;
|
||||
leftOn.Value = SecretsVault.UserHistory.Find(x => x.Id == videoId).LeftOn;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
public async void Button_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user