rename ConfusedPolarBear.Plugin.IntroSkipper -> IntroSkipper
This commit is contained in:
parent
5205965d0d
commit
84da3f0a29
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -69,9 +69,9 @@ jobs:
|
||||
|
||||
- name: Minify HTML
|
||||
run: |
|
||||
npx html-minifier-terser --collapse-boolean-attributes --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
|
||||
npx terser ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js -c -m
|
||||
npx terser ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js -c -m
|
||||
npx html-minifier-terser --collapse-boolean-attributes --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true -o IntroSkipper/Configuration/configPage.html IntroSkipper/Configuration/configPage.html
|
||||
npx terser IntroSkipper/Configuration/inject.js -o IntroSkipper/Configuration/inject.js -c -m
|
||||
npx terser IntroSkipper/Configuration/visualizer.js -o IntroSkipper/Configuration/visualizer.js -c -m
|
||||
|
||||
- name: Restore Beta dependencies
|
||||
if: ${{env.IS_BETA == 'true' }}
|
||||
@ -87,7 +87,7 @@ jobs:
|
||||
- name: Embed version info
|
||||
run: |
|
||||
GITHUB_SHA=${{ github.sha }}
|
||||
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" ConfusedPolarBear.Plugin.IntroSkipper/Helper/Commit.cs
|
||||
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" IntroSkipper/Helper/Commit.cs
|
||||
|
||||
- name: Retrieve commit identification
|
||||
run: |
|
||||
@ -101,22 +101,22 @@ jobs:
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
name: ConfusedPolarBear.Plugin.IntroSkipper-${{ env.GIT_HASH }}.dll
|
||||
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
||||
name: IntroSkipper-${{ env.GIT_HASH }}.dll
|
||||
path: IntroSkipper/bin/Debug/net8.0/IntroSkipper.dll
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4.3.6
|
||||
if: github.event_name == 'pull_request'
|
||||
with:
|
||||
name: ConfusedPolarBear.Plugin.IntroSkipper-${{ env.SANITIZED_BRANCH_NAME }}.dll
|
||||
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
||||
name: IntroSkipper-${{ env.SANITIZED_BRANCH_NAME }}.dll
|
||||
path: IntroSkipper/bin/Debug/net8.0/IntroSkipper.dll
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Create archive
|
||||
if: github.event_name != 'pull_request'
|
||||
run: zip -j "intro-skipper-${{ env.GIT_HASH }}.zip" ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
||||
run: zip -j "intro-skipper-${{ env.GIT_HASH }}.zip" IntroSkipper/bin/Debug/net8.0/IntroSkipper.dll
|
||||
|
||||
- name: Create/replace the preview release and upload artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -42,9 +42,9 @@ jobs:
|
||||
|
||||
- name: Minify HTML
|
||||
run: |
|
||||
npx html-minifier-terser --collapse-boolean-attributes --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
|
||||
npx terser ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js -c -m
|
||||
npx terser ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js -o ConfusedPolarBear.Plugin.IntroSkipper/Configuration/visualizer.js -c -m
|
||||
npx html-minifier-terser --collapse-boolean-attributes --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true -o IntroSkipper/Configuration/configPage.html IntroSkipper/Configuration/configPage.html
|
||||
npx terser IntroSkipper/Configuration/inject.js -o IntroSkipper/Configuration/inject.js -c -m
|
||||
npx terser IntroSkipper/Configuration/visualizer.js -o IntroSkipper/Configuration/visualizer.js -c -m
|
||||
|
||||
- name: Restore Beta dependencies
|
||||
if: ${{env.IS_BETA == 'true' }}
|
||||
@ -65,13 +65,13 @@ jobs:
|
||||
- name: Embed version info
|
||||
run: |
|
||||
GITHUB_SHA=${{ github.sha }}
|
||||
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" ConfusedPolarBear.Plugin.IntroSkipper/Helper/Commit.cs
|
||||
sed -i "s/string\.Empty/\"$GITHUB_SHA\"/g" IntroSkipper/Helper/Commit.cs
|
||||
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
|
||||
- name: Create archive
|
||||
run: zip -j "intro-skipper-v${{ env.NEW_FILE_VERSION }}.zip" ConfusedPolarBear.Plugin.IntroSkipper/bin/Release/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
||||
run: zip -j "intro-skipper-v${{ env.NEW_FILE_VERSION }}.zip" IntroSkipper/bin/Release/net8.0/IntroSkipper.dll
|
||||
|
||||
- name: Remove old release if exits
|
||||
if: ${{ github.repository == 'intro-skipper/intro-skipper-test' }}
|
||||
@ -105,6 +105,6 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add README.md manifest.json ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj .github/ISSUE_TEMPLATE/bug_report_form.yml
|
||||
git add README.md manifest.json IntroSkipper/IntroSkipper.csproj .github/ISSUE_TEMPLATE/bug_report_form.yml
|
||||
git commit -m "release v${{ env.NEW_FILE_VERSION }}"
|
||||
git push
|
||||
|
@ -21,7 +21,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ConfusedPolarBear.Plugin.IntroSkipper\ConfusedPolarBear.Plugin.IntroSkipper.csproj" />
|
||||
<ProjectReference Include="..\IntroSkipper\IntroSkipper.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -4,12 +4,12 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Analyzers;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
public class TestAudioFingerprinting
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Analyzers;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit;
|
||||
|
@ -1,10 +1,10 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Analyzers;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit;
|
@ -1,7 +1,7 @@
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Xunit;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
public class TestTimeRanges
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using Xunit;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
public class TestEdl
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Tests;
|
||||
namespace IntroSkipper.Tests;
|
||||
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Xunit;
|
||||
|
||||
public class TestFlags
|
0
ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/build.sh → IntroSkipper.Tests/e2e_tests/build.sh
Executable file → Normal file
0
ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/build.sh → IntroSkipper.Tests/e2e_tests/build.sh
Executable file → Normal file
@ -1,8 +1,8 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
#
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfusedPolarBear.Plugin.IntroSkipper", "ConfusedPolarBear.Plugin.IntroSkipper\ConfusedPolarBear.Plugin.IntroSkipper.csproj", "{D921B930-CF91-406F-ACBC-08914DCD0D34}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntroSkipper", "IntroSkipper\IntroSkipper.csproj", "{D921B930-CF91-406F-ACBC-08914DCD0D34}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfusedPolarBear.Plugin.IntroSkipper.Tests", "ConfusedPolarBear.Plugin.IntroSkipper.Tests\ConfusedPolarBear.Plugin.IntroSkipper.Tests.csproj", "{9E30DA42-983E-46E0-A3BF-A2BA56FE9718}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntroSkipper.Tests", "IntroSkipper.Tests\IntroSkipper.Tests.csproj", "{9E30DA42-983E-46E0-A3BF-A2BA56FE9718}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers
|
||||
namespace IntroSkipper.Analyzers
|
||||
{
|
||||
/// <summary>
|
||||
/// Analyzer Helper.
|
@ -2,11 +2,11 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
namespace IntroSkipper.Analyzers;
|
||||
|
||||
/// <summary>
|
||||
/// Media file analyzer used to detect end credits that consist of text overlaid on a black background.
|
@ -4,12 +4,12 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
namespace IntroSkipper.Analyzers;
|
||||
|
||||
/// <summary>
|
||||
/// Chapter name analyzer.
|
@ -4,11 +4,11 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Threading;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
namespace IntroSkipper.Analyzers;
|
||||
|
||||
/// <summary>
|
||||
/// Chromaprint audio analyzer.
|
@ -1,8 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
namespace IntroSkipper.Analyzers;
|
||||
|
||||
/// <summary>
|
||||
/// Media file analyzer interface.
|
@ -1,9 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
namespace IntroSkipper.Analyzers;
|
||||
|
||||
/// <summary>
|
||||
/// Chapter name analyzer.
|
@ -1,8 +1,8 @@
|
||||
using System.Diagnostics;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Model.Plugins;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
namespace IntroSkipper.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin configuration.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
namespace IntroSkipper.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// User interface configuration.
|
@ -1,15 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Mime;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Common.Api;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers;
|
||||
namespace IntroSkipper.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Skip intro controller.
|
@ -3,8 +3,8 @@ using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Net.Mime;
|
||||
using System.Text;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Helper;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Helper;
|
||||
using MediaBrowser.Common;
|
||||
using MediaBrowser.Common.Api;
|
||||
using MediaBrowser.Controller.Library;
|
||||
@ -12,7 +12,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers;
|
||||
namespace IntroSkipper.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Troubleshooting controller.
|
@ -3,13 +3,13 @@ using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Net.Mime;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Common.Api;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers;
|
||||
namespace IntroSkipper.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Audio fingerprint visualization controller. Allows browsing fingerprints on a per episode basis.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Type of media file analysis to perform.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// A frame of video that partially (or entirely) consists of black pixels.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Taken from https://kodi.wiki/view/Edit_decision_list#MPlayer_EDL.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the state of an episode regarding analysis and blacklist status.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Episode name and internal ID as returned by the visualization controller.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Exception raised when an error is encountered analyzing audio.
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an item to ignore.
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Result of fingerprinting and analyzing two episodes in a season.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Support bundle warning.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Episode queued for analysis.
|
@ -3,7 +3,7 @@ using System.Globalization;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Result of fingerprinting and analyzing two episodes in a season.
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Controllers
|
||||
namespace IntroSkipper.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains information about a show.
|
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
#pragma warning disable CA1036 // Override methods on comparable types
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Time range helpers.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data
|
||||
namespace IntroSkipper.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Result of fingerprinting and analyzing two episodes in a season.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
namespace IntroSkipper.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Warning manager.
|
@ -6,10 +6,10 @@ using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper;
|
||||
namespace IntroSkipper;
|
||||
|
||||
/// <summary>
|
||||
/// Wrapper for libchromaprint and the silencedetect filter.
|
@ -1,4 +1,4 @@
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Helper
|
||||
namespace IntroSkipper.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the commit used to build the plugin.
|
@ -4,9 +4,9 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Xml;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Helper
|
||||
namespace IntroSkipper.Helper
|
||||
{
|
||||
internal sealed class XmlSerializationHelper
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>ConfusedPolarBear.Plugin.IntroSkipper</RootNamespace>
|
||||
<RootNamespace>IntroSkipper</RootNamespace>
|
||||
<AssemblyVersion>1.0.1.1</AssemblyVersion>
|
||||
<FileVersion>1.0.1.1</FileVersion>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
25
IntroSkipper/IntroSkipper.sln
Normal file
25
IntroSkipper/IntroSkipper.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.002.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IntroSkipper", "IntroSkipper.csproj", "{BF8E8662-3409-439D-95BA-FC918FFBBDB4}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{BF8E8662-3409-439D-95BA-FC918FFBBDB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BF8E8662-3409-439D-95BA-FC918FFBBDB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BF8E8662-3409-439D-95BA-FC918FFBBDB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BF8E8662-3409-439D-95BA-FC918FFBBDB4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {8BD9D646-8C5E-41FA-8C7A-72749524B7D7}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Manager
|
||||
namespace IntroSkipper.Manager
|
||||
{
|
||||
/// <summary>
|
||||
/// Update EDL files associated with a list of episodes.
|
@ -3,12 +3,12 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Manager
|
||||
namespace IntroSkipper.Manager
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MediaSegmentUpdateManager" /> class.
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using IntroSkipper.Data;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Extensions;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
@ -11,7 +11,7 @@ using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Manager
|
||||
namespace IntroSkipper.Manager
|
||||
{
|
||||
/// <summary>
|
||||
/// Manages enqueuing library items for analysis.
|
@ -4,9 +4,9 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Helper;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Helper;
|
||||
using MediaBrowser.Common;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Common.Plugins;
|
||||
@ -20,7 +20,7 @@ using MediaBrowser.Model.Serialization;
|
||||
using MediaBrowser.Model.Updates;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper;
|
||||
namespace IntroSkipper;
|
||||
|
||||
/// <summary>
|
||||
/// Intro skipper plugin. Uses audio analysis to find common sequences of audio shared between episodes.
|
@ -1,11 +1,11 @@
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Providers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Services;
|
||||
using IntroSkipper.Manager;
|
||||
using IntroSkipper.Providers;
|
||||
using IntroSkipper.Services;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Plugins;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper
|
||||
namespace IntroSkipper
|
||||
{
|
||||
/// <summary>
|
||||
/// Register Intro Skipper services.
|
@ -10,7 +10,7 @@ using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Model;
|
||||
using MediaBrowser.Model.MediaSegments;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Providers
|
||||
namespace IntroSkipper.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// Introskipper media segment provider.
|
@ -4,13 +4,13 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Analyzers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using IntroSkipper.Analyzers;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Common code shared by all media item analyzer tasks.
|
@ -4,12 +4,12 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using IntroSkipper.Manager;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Analyze all television episodes for introduction sequences.
|
@ -2,14 +2,14 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Services;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using IntroSkipper.Services;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Analyze all television episodes for credits.
|
@ -2,14 +2,14 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Services;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using IntroSkipper.Services;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Analyze all television episodes for introduction sequences.
|
@ -2,14 +2,14 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Services;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using IntroSkipper.Services;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
/// <summary>
|
||||
/// Analyze all television episodes for introduction sequences.
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
namespace IntroSkipper.ScheduledTasks;
|
||||
|
||||
internal sealed class ScheduledTaskSemaphore : IDisposable
|
||||
{
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Timers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using IntroSkipper.Configuration;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Session;
|
||||
@ -15,7 +15,7 @@ using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Services
|
||||
namespace IntroSkipper.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Automatically skip past introduction sequences.
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Timers;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using IntroSkipper.Configuration;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Session;
|
||||
@ -15,7 +15,7 @@ using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Services
|
||||
namespace IntroSkipper.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Automatically skip past credit sequences.
|
@ -2,10 +2,10 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Data;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.Manager;
|
||||
using ConfusedPolarBear.Plugin.IntroSkipper.ScheduledTasks;
|
||||
using IntroSkipper.Configuration;
|
||||
using IntroSkipper.Data;
|
||||
using IntroSkipper.Manager;
|
||||
using IntroSkipper.ScheduledTasks;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Entities.TV;
|
||||
using MediaBrowser.Controller.Library;
|
||||
@ -15,7 +15,7 @@ using MediaBrowser.Model.Tasks;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace ConfusedPolarBear.Plugin.IntroSkipper.Services
|
||||
namespace IntroSkipper.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Server entrypoint.
|
@ -21,7 +21,7 @@ GOTO UserInput
|
||||
|
||||
:FoundFile
|
||||
echo "%NewestFile%"
|
||||
xcopy /y ConfusedPolarBear.Plugin.IntroSkipper.dll "%NewestFile%"
|
||||
xcopy /y IntroSkipper.dll "%NewestFile%"
|
||||
|
||||
:UserInput
|
||||
@pause
|
||||
|
@ -6,8 +6,8 @@ if [ "$(uname)" == "Darwin" ]; then
|
||||
echo "Intro Skipper plugin not found!"
|
||||
exit
|
||||
fi
|
||||
cp -f ConfusedPolarBear.Plugin.IntroSkipper*.dll \
|
||||
"$plugin/ConfusedPolarBear.Plugin.IntroSkipper.dll"
|
||||
cp -f IntroSkipper*.dll \
|
||||
"$plugin/IntroSkipper.dll"
|
||||
else
|
||||
echo "Jellyfin plugin directory not found!"
|
||||
fi
|
||||
@ -19,8 +19,8 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
echo "Intro Skipper plugin not found!"
|
||||
exit
|
||||
fi
|
||||
cp -f ConfusedPolarBear.Plugin.IntroSkipper*.dll \
|
||||
"$plugin/ConfusedPolarBear.Plugin.IntroSkipper.dll"
|
||||
cp -f IntroSkipper*.dll \
|
||||
"$plugin/IntroSkipper.dll"
|
||||
else
|
||||
echo "Jellyfin plugin directory not found!"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user