Skip to content

Commit

Permalink
Updates to support new design changes from IMDB, private data fetchin…
Browse files Browse the repository at this point in the history
…g support (disabled by default)
  • Loading branch information
JnRMnT committed Feb 14, 2023
1 parent d520342 commit f271ff1
Show file tree
Hide file tree
Showing 782 changed files with 29,988 additions and 18,921 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = F:\Genel\Projeler\JMovies.IMDb
INPUT = C:\Kişisel\Genel\Projeler\JMovies.IMDb\

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
20 changes: 20 additions & 0 deletions JMovies.IMDb.Common/Extensions/BaseDataFetchSettingsExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using JMovies.IMDb.Common.Constants;
using JMovies.IMDb.Entities.Settings;

namespace JMovies.IMDb.Common.Extensions
{
/// <summary>
/// Provides extension methods for the BasicDataFetchSettings type of objects
/// </summary>
public static class BaseDataFetchSettingsExtensions
{
/// <summary>
/// Gets the active culture if one preferred or the default
/// </summary>
/// <returns>The active culture (preferred or default)</returns>
public static string GetActiveCulture(this BaseDataFetchSettings settings)
{
return !string.IsNullOrEmpty(settings.PreferredCulture) ? settings.PreferredCulture : IMDbConstants.DefaultScrapingCulture;
}
}
}
6 changes: 1 addition & 5 deletions JMovies.IMDb.Common/JMovies.IMDb.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>JnRMnT</Authors>
<Company>JnRMnT</Company>
<Version>1.7.0</Version>
<Version>1.8.0</Version>
<Description>JMovies IMDb Common Library - A .Net Standart class library that provides constant definitions and Extension methods for IMDb scraping.</Description>
<PackageTags>scraper,movies,movie,imdb,actor,scraping,screenscrapping,api,imdb-scraper</PackageTags>
<RepositoryType>git</RepositoryType>
Expand All @@ -21,10 +21,6 @@
<WarningsAsErrors />
</PropertyGroup>

<ItemGroup>
<Folder Include="Extensions\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="JM.Framework" Version="1.0.5" />
</ItemGroup>
Expand Down
11 changes: 11 additions & 0 deletions JMovies.IMDb.Common/JMovies.IMDb.Common.xml

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

3 changes: 2 additions & 1 deletion JMovies.IMDb.Entities/JMovies.IMDb.Entities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>JnRMnT</Company>
<Copyright>JnRMnT</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.7.0</Version>
<Version>1.8.0</Version>
<Description>JMovies IMDb Entities Library - A .Net Standart class library that provides class definitions for IMDb.</Description>
<RepositoryUrl>https://github.com/JnRMnT/JMovies.IMDb</RepositoryUrl>
<PackageTags>scraper,movies,movie,imdb,actor,scraping,screenscrapping,api,imdb-scraper</PackageTags>
Expand All @@ -21,6 +21,7 @@

<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Text.Json" Version="7.0.2" />
</ItemGroup>

</Project>
138 changes: 138 additions & 0 deletions JMovies.IMDb.Entities/JMovies.IMDb.Entities.xml

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

16 changes: 16 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/APIData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI
{
/// <summary>
/// Class Definition of a private API Response
/// </summary>
public class APIData
{
/// <summary>
/// Production Data property
/// </summary>
[JsonPropertyName("title")]
public ProductionData ProductionData { get; set; }
}
}
16 changes: 16 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/APIResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI
{
/// <summary>
/// Class Definition of a private API Response
/// </summary>
public class APIResponse
{
/// <summary>
/// Main Data property
/// </summary>
[JsonPropertyName("data")]
public APIData Data { get; set; }
}
}
16 changes: 16 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/DisplayableProperty.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI
{
/// <summary>
/// Class Definition of a private Displayable Property
/// </summary>
public class DisplayableProperty
{
/// <summary>
/// Value of a displayable property
/// </summary>
[JsonPropertyName("value")]
public DisplayablePropertyValue Value { get; set; }
}
}
16 changes: 16 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/DisplayablePropertyValue.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI
{
/// <summary>
/// Class Definition of a private Displayable Property Value
/// </summary>
public class DisplayablePropertyValue
{
/// <summary>
/// Plain Text Value of a displayable property
/// </summary>
[JsonPropertyName("plainText")]
public string PlainText { get; set; }
}
}
16 changes: 16 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/Production/AKAData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI.Production
{
/// <summary>
/// Class Definition of a private Production AKA Data
/// </summary>
public class AKAData
{
/// <summary>
/// Edges property
/// </summary>
[JsonPropertyName("edges")]
public AKAsEdge[] AKAEdges { get; set; }
}
}
22 changes: 22 additions & 0 deletions JMovies.IMDb.Entities/PrivateAPI/Production/AKANode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;

namespace JMovies.IMDb.Entities.PrivateAPI.Production
{
/// <summary>
/// Class Definition of a private Production AKA Node
/// </summary>
public class AKANode
{
/// <summary>
/// Country of the AKA
/// </summary>
[JsonPropertyName("country")]
public CountryInfo Country { get; set; }

/// <summary>
/// Displayable Property of the AKA
/// </summary>
[JsonPropertyName("displayableProperty")]
public DisplayableProperty DisplayableProperty { get; set; }
}
}
Loading

0 comments on commit f271ff1

Please sign in to comment.