Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Rename Emby.AutoOrganize to AutoOrganize #69

Merged
merged 5 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Emby.AutoOrganize.sln → AutoOrganize.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.AutoOrganize", "Emby.AutoOrganize\Emby.AutoOrganize.csproj", "{5C291301-A2F4-4BB7-AC94-BA83AD2457EE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoOrganize", "AutoOrganize\AutoOrganize.csproj", "{5C291301-A2F4-4BB7-AC94-BA83AD2457EE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System.Collections.Generic;
using System.Net.Mime;
using System.Threading.Tasks;
using Emby.AutoOrganize.Core;
using Emby.AutoOrganize.Model;
using AutoOrganize.Core;
using AutoOrganize.Model;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Querying;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Emby.AutoOrganize.Api
namespace AutoOrganize.Api
{
/// <summary>
/// The file organization controller.
Expand Down Expand Up @@ -206,7 +206,7 @@ public ActionResult PerformOrganization([FromRoute] string id)
/// </summary>
/// <param name="startIndex">Optional. The record index to start at. All items with a lower index will be dropped from the results.</param>
/// <param name="limit">Optional. The maximum number of records to return.</param>
/// <response code="20�0">Smart watch entries returned.</response>
/// <response code="200">Smart watch entries returned.</response>
/// <returns>A <see cref="QueryResult{SmartWatchResult}"/>.</returns>
[HttpGet("SmartMatches")]
[ProducesResponseType(StatusCodes.Status200OK)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Collections.Generic;
using Emby.AutoOrganize.Configuration;
using AutoOrganize.Configuration;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;

namespace Emby.AutoOrganize
namespace AutoOrganize
{
/// <summary>
/// The auto-organize plugin.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using MediaBrowser.Model.Plugins;

namespace Emby.AutoOrganize.Configuration
namespace AutoOrganize.Configuration
{
/// <summary>
/// Configuration for <see cref="Emby.AutoOrganize.AutoOrganizePlugin"/>.
/// Configuration for <see cref="AutoOrganize.AutoOrganizePlugin"/>.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Common.Configuration;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// A configuration factory that registers the configuration entry required for the <see cref="AutoOrganizePlugin"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Threading;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Common.Configuration;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Static class containing extension methods helpful for working with configuration for this plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using Emby.Naming.Common;
using Emby.Naming.TV;
using MediaBrowser.Controller.Dto;
Expand All @@ -20,7 +20,7 @@
using Microsoft.Extensions.Logging;
using EpisodeInfo = MediaBrowser.Controller.Providers.EpisodeInfo;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Service to use for organizing episode media files.
Expand Down Expand Up @@ -103,7 +103,7 @@ private NamingOptions GetNamingOptionsInternal()
var resolver = new EpisodeResolver(namingOptions);

var episodeInfo = resolver.Resolve(path, false) ??
new Naming.TV.EpisodeInfo(string.Empty);
new Emby.Naming.TV.EpisodeInfo(string.Empty);

var seriesName = episodeInfo.SeriesName;
int? seriesYear = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Data;
using Emby.AutoOrganize.Model;
using AutoOrganize.Data;
using AutoOrganize.Model;
using MediaBrowser.Common.Extensions;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Library;
Expand All @@ -15,7 +15,7 @@
using MediaBrowser.Model.Tasks;
using Microsoft.Extensions.Logging;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <inheritdoc/>
public class FileOrganizationService : IFileOrganizationService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Model.Querying;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// A service that can be used to auto-organize media files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using Emby.Naming.Common;
using Emby.Naming.Video;
using MediaBrowser.Controller.Dto;
Expand All @@ -16,7 +16,7 @@
using MediaBrowser.Model.Providers;
using Microsoft.Extensions.Logging;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Service used for organizing movie media files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Service used to organize all files in the movie watch folders.
Expand Down Expand Up @@ -71,7 +71,7 @@ private bool IsValidWatchLocation(string path, List<string> libraryFolderPaths)
{
if (IsPathAlreadyInMediaLibrary(path, libraryFolderPaths))
{
_logger.LogInformation("Folder {0} is not eligible for auto-organize because it is also part of an Emby library", path);
_logger.LogInformation("Folder {0} is not eligible for auto-organize because it is also part of an Jellyfin library", path);
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Extensions;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Static helper class containing methods to work with names.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// An generic exception that occurs during file organization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using MediaBrowser.Model.Tasks;
using Microsoft.Extensions.Logging;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// A scheduled task that organizes media files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging;

namespace Emby.AutoOrganize.Core
namespace AutoOrganize.Core
{
/// <summary>
/// Service used to organize all files in the TV watch folders.
Expand Down Expand Up @@ -71,7 +71,7 @@ private bool IsValidWatchLocation(string path, List<string> libraryFolderPaths)
{
if (IsPathAlreadyInMediaLibrary(path, libraryFolderPaths))
{
_logger.LogInformation("Folder {0} is not eligible for auto-organize because it is also part of an Emby library", path);
_logger.LogInformation("Folder {0} is not eligible for auto-organize because it is also part of an Jellyfin library", path);
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using SQLitePCL;
using SQLitePCL.pretty;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
public abstract class BaseSqliteRepository : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Model.Querying;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
/// <summary>
/// Repository for managing persistence of <see cref="FileOrganizationResult"/> and <see cref="SmartMatchResult"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Generic;
using SQLitePCL.pretty;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
/// <summary>
/// Wraps a <see cref="SQLiteDatabaseConnection"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System;
using System.Threading;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
public static class ReaderWriterLockSlimExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using MediaBrowser.Model.Serialization;
using SQLitePCL.pretty;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
/// <summary>
/// Static class containing extension methods useful for working with a SQLite database.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Emby.AutoOrganize.Model;
using AutoOrganize.Model;
using MediaBrowser.Common.Json;
using MediaBrowser.Controller;
using MediaBrowser.Model.Querying;
using Microsoft.Extensions.Logging;
using SQLitePCL.pretty;

namespace Emby.AutoOrganize.Data
namespace AutoOrganize.Data
{
/// <summary>
/// SQLite repository for managing persistence of <see cref="FileOrganizationResult"/> and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// Configuration options for the <see cref="AutoOrganizePlugin"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// A request to organize a single media file representing one or more TV episodes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// The result of a file organization operation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// A query to get a list of <see cref="FileOrganizationResult"/> entries from the persistence store.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// Contains the supported file organization types.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// The result status of sorting a single item.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// Options to use for organizing movie media files.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// A request to organize a single movie media file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
[Obsolete("This has been replaced by SmartMatchResult")]
public class SmartMatchInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// Used to customize matching of media files using a set of match strings.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Emby.AutoOrganize.Model
namespace AutoOrganize.Model
{
/// <summary>
/// Options to use for organizing TV media files.
Expand Down
Loading