Archived
1
0
This commit is contained in:
Michael Gordeev
2018-12-09 17:15:16 +03:00
parent f16be876c6
commit aa3214cc60
10 changed files with 45 additions and 48 deletions
+4 -6
View File
@@ -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)