Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Version 0.0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfusedPolarBear committed May 22, 2022
1 parent c27087f commit 552a1fd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>ConfusedPolarBear.Plugin.IntroSkipper</RootNamespace>
<AssemblyVersion>0.0.0.1</AssemblyVersion>
<FileVersion>0.0.0.1</FileVersion>
<AssemblyVersion>0.0.0.2</AssemblyVersion>
<FileVersion>0.0.0.2</FileVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private void AnalyzeSeason(
break;
}

// FIXME: add retry logic
// TODO: add retry logic
var alreadyDone = Plugin.Instance!.Intros;
if (alreadyDone.ContainsKey(lhs.EpisodeId) && alreadyDone.ContainsKey(rhs.EpisodeId))
{
Expand Down Expand Up @@ -586,8 +586,11 @@ private void RunSecondPass(List<QueuedEpisode> episodes)

var oldDuration = GetIntroDuration(episode.EpisodeId);

// TODO: remove
var shortPath = episode.Path.Substring(episode.Path.Length - 40);
var shortPath = episode.Path;
if (shortPath.Length > 40)
{
shortPath = shortPath.Substring(episode.Path.Length - 40);
}

// If the episode's intro duration is close enough to the targeted bucket, leave it alone.
if (Math.Abs(lhsDuration - oldDuration) <= ReanalysisTolerance)
Expand Down Expand Up @@ -629,8 +632,7 @@ private void RunSecondPass(List<QueuedEpisode> episodes)
continue;
}

// TODO: change to debug
_logger.LogInformation(
_logger.LogDebug(
"Reanalysis succeeded for {Path} (was {Initial}, now is {New})",
shortPath,
oldDuration,
Expand Down
8 changes: 8 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"sourceUrl": "https://github.com/ConfusedPolarBear/intro-skipper/releases/download/v0.0.1/intro-skipper-v0.0.1.zip",
"checksum": "4b0e4ae45d09ecd9014a4986f3095ce4",
"timestamp": "2022-05-10T07:57:11Z"
},
{
"version": "0.0.0.2",
"changelog": "- decrease audio fingerprint comparison time\n- analyze two seasons simultaneously",
"targetAbi": "10.8.0.0",
"sourceUrl": "https://github.com/ConfusedPolarBear/intro-skipper/releases/download/v0.0.2/intro-skipper-v0.0.2.zip",
"checksum": "83c3e3618a6c37c2767e5bfea64ef515",
"timestamp": "2022-05-22T00:05:12Z"
}
]
}
Expand Down

0 comments on commit 552a1fd

Please sign in to comment.