Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Klemm committed Jan 9, 2017
2 parents 9db44bc + a24238e commit 4e826ce
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 75 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

# version format
version: 0.2.{build}-beta
version: 0.3.{build}-beta

# branches:
# whitelist
Expand Down
6 changes: 3 additions & 3 deletions src/YTMusicDownloader.sln
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
RESX_SaveFilesImmediatelyUponChange = True
RESX_SortFileContentOnSave = True
RESX_ResXSortingComparison = OrdinalIgnoreCase
RESX_AutoCreateNewLanguageFiles = False
RESX_ResXSortingComparison = OrdinalIgnoreCase
RESX_SortFileContentOnSave = True
RESX_SaveFilesImmediatelyUponChange = True
EndGlobalSection
EndGlobal
4 changes: 1 addition & 3 deletions src/YTMusicDownloader/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>

<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"
GeneratedClassNamespace="YTMusicDownloader.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="YTMusicDownloader.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="ParallelDownloads" Type="System.Int32" Scope="User">
Expand Down
55 changes: 0 additions & 55 deletions src/YTMusicDownloaderAPI/Controllers/PlaylistDataController.cs

This file was deleted.

4 changes: 0 additions & 4 deletions src/YTMusicDownloaderAPI/Properties/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ internal partial class Settings
public const string EmailAddress = "**REMOVED**";
public const string SmptUsername = "**REMOVED**";
public const string SmtpPassword = "**REMOVED**";
public const string GoogleApiKey = "**REMOVED**";
public const string DiscogsApiKey = "**REMOVED**";
public const string DiscogsApiSecret = "**REMOVED**";
public const string LastFmApiKey = "**REMOVED**";
}
}
4 changes: 1 addition & 3 deletions src/YTMusicDownloaderAPI/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>

<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"
GeneratedClassNamespace="YTMusicDownloaderAPI.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="YTMusicDownloaderAPI.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="MaxPlaylistRequestsPerHour" Type="System.Int32" Scope="Application">
Expand Down
1 change: 0 additions & 1 deletion src/YTMusicDownloaderAPI/YTMusicDownloaderAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="App_Start\WebApiConfig.cs" />
<Compile Include="Controllers\CrashReportController.cs" />
<Compile Include="Controllers\PlaylistDataController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
Expand Down
12 changes: 12 additions & 0 deletions src/YTMusicDownloaderLib/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/YTMusicDownloaderLib/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>

<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"
GeneratedClassNamespace="YTMusicDownloaderLib.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="YTMusicDownloaderLib.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="GitHubRepositoryOwner" Type="System.String" Scope="Application">
Expand All @@ -10,5 +8,8 @@
<Setting Name="GitHubRepositoryName" Type="System.String" Scope="User">
<Value Profile="(Default)">YTMusicDownloader</Value>
</Setting>
<Setting Name="GoogleApiKey" Type="System.String" Scope="User">
<Value Profile="(Default)">AIzaSyBdA-M63y7UxOSm-lnMU_Ss3EtqJqq1KN4</Value>
</Setting>
</Settings>
</SettingsFile>
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void GetPlaylistItems(string playlistId)
throw new ArgumentException(nameof(playlistId));

var playlistItems = new List<PlaylistItem>();
var client = new RestClient("http://ytdownloaderapi.azurewebsites.net");
var request = new RestRequest("api/PlaylistData", Method.GET);
var client = new RestClient("https://www.googleapis.com");
var request = new RestRequest("/youtube/v3/playlistItems", Method.GET);

var pageToken = "";
var totalResults = -1;
Expand All @@ -61,8 +61,11 @@ public void GetPlaylistItems(string playlistId)
while (pageToken != null)
{
request.Parameters.Clear();
request.AddParameter("key", Properties.Settings.Default.GoogleApiKey);
request.AddParameter("part", "snippet");
request.AddParameter("playlistId", playlistId);
request.AddParameter("pageToken", pageToken);
request.AddParameter("maxResults", 50);

var response = client.Execute(request);

Expand Down
3 changes: 3 additions & 0 deletions src/YTMusicDownloaderLib/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<setting name="GitHubRepositoryName" serializeAs="String">
<value>YTMusicDownloader</value>
</setting>
<setting name="GoogleApiKey" serializeAs="String">
<value>AIzaSyBdA-M63y7UxOSm-lnMU_Ss3EtqJqq1KN4</value>
</setting>
</YTMusicDownloaderLib.Properties.Settings>
</userSettings>
<applicationSettings>
Expand Down

0 comments on commit 4e826ce

Please sign in to comment.