-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Limbo.Umbraco.Video dependency
Besides the dependency. this commit also contains a number of related changes, as well as a breaking change in the way the video data is saved in Umbraco, requiring existing videos to be inserted. Due to the way Umbraco/JSON.net handles date like string values (eg. string values containing an ISO 8601 date), we need to keep a serialized version the video data received from the YouTube API in order to prevent corrupt timestamps. See this issue for further information: umbraco/Umbraco-CMS#3075
- Loading branch information
Showing
16 changed files
with
287 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...Umbraco.YouTube/Models/YouTubeSettings.cs → ...ouTube/Models/Settings/YouTubeSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...bo.Umbraco.YouTube/Models/YouTubeEmbed.cs → ...aco.YouTube/Models/Videos/YouTubeEmbed.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Limbo.Umbraco.YouTube/Models/Videos/YouTubeThumbnail.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Limbo.Umbraco.Video.Models.Videos; | ||
using Skybrud.Social.Google.YouTube.Models.Videos; | ||
|
||
namespace Limbo.Umbraco.YouTube.Models.Videos { | ||
|
||
/// <summary> | ||
/// Class representing a YouTube thumbnail. | ||
/// </summary> | ||
public class YouTubeThumbnail : VideoThumbnail { | ||
|
||
/// <summary> | ||
/// Initializes a new instance based on the specified <paramref name="thumbnail"/>. | ||
/// </summary> | ||
/// <param name="thumbnail">The video thumbnail from the YouTube API.</param> | ||
public YouTubeThumbnail(YouTubeVideoThumbnail thumbnail) { | ||
Width = thumbnail.Width; | ||
Height = thumbnail.Height; | ||
Url = thumbnail.Url; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.