Skip to content

Commit

Permalink
Fix #22 - Hitbox api uses media_id to represent the video id in their…
Browse files Browse the repository at this point in the history
… vod url
  • Loading branch information
laurencee committed Sep 24, 2016
1 parent 54d4e7f commit 3939717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("2.8.0.0")]
[assembly: AssemblyFileVersion("2.8.0.0")]
[assembly: AssemblyVersion("2.8.1.0")]
[assembly: AssemblyFileVersion("2.8.1.0")]
3 changes: 2 additions & 1 deletion Livestream.Monitor/Model/ApiClients/HitboxApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class HitboxApiClient : IApiClient
public const string API_NAME = "hitbox";
// this doesn't appear anywhere in the returned api values but it is where the static data comes from...
private const string StaticContentPrefixUrl = "http://edge.sf.hitbox.tv";
private const string VideoPrefix = "http://www.hitbox.tv/video/";

private readonly IHitboxReadonlyClient hitboxClient;
private readonly HashSet<ChannelIdentifier> moniteredChannels = new HashSet<ChannelIdentifier>();
Expand Down Expand Up @@ -103,7 +104,7 @@ public async Task<List<VodDetails>> GetVods(VodQuery vodQuery)
{
Length = length,
Game = x.CategoryName,
Url = x.MediaFile,
Url = VideoPrefix + x.MediaId,
Title = x.MediaTitle,
Description = x.MediaStatus,
RecordedAt = x.MediaDateAdded ?? DateTimeOffset.MinValue,
Expand Down

0 comments on commit 3939717

Please sign in to comment.