Skip to content

Commit e1f9378

Browse files
committed
Added view count to save expression
1 parent c7225a0 commit e1f9378

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Services/HostService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ public async Task<string> ConvertCustomPathExpressionToSavePath(TwitchClipModel
111111
.Replace("{mm", "{5:mm").Replace("{m", "{5:%m")
112112
.Replace("{ss", "{5:ss").Replace("{s", "{5:%s")
113113
.Replace("{tt", "{5:tt").Replace("{t", "{5:t")
114+
.Replace("{viewcount", "{6")
114115
;
115116

116-
path = string.Format(culture, replace, model.Id, model.BroadcasterName, model.BroadcasterId, model.GameId, model.Title, model.CreatedAt);
117+
path = string.Format(culture, replace, model.Id, model.BroadcasterName, model.BroadcasterId, model.GameId, model.Title, model.CreatedAt, model.ViewCount);
117118

118119
if (await GetOSPlatform() == OSPlatform.Windows)
119120
{

TwitchClipper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Authors>mortenmoulder</Authors>
1212
<PackageProjectUrl>https://github.com/mortenmoulder/TwitchClipper</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/mortenmoulder/TwitchClipper</RepositoryUrl>
14-
<Version>1.0.5</Version>
14+
<Version>1.0.6</Version>
1515
</PropertyGroup>
1616

1717
<ItemGroup>

0 commit comments

Comments
 (0)