Rename to Jellyfin conventions

This commit is contained in:
Claus Vium 2019-02-20 20:51:40 +01:00
parent 348867dfd3
commit 14c166f8a2
35 changed files with 54 additions and 75 deletions

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "playback_reporting", "playback_reporting\playback_reporting.csproj", "{46521AAF-B2F0-4054-8514-F619CA3EB3E4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Jellyfin.Plugin.PlaybackReporting", "Jellyfin.Plugin.PlaybackReporting\Jellyfin.Plugin.PlaybackReporting.csproj", "{46521AAF-B2F0-4054-8514-F619CA3EB3E4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -14,11 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace playback_reporting.Api
namespace Jellyfin.Plugin.PlaybackReporting.Api
{
public class ReportDayUsage
{

View File

@ -14,21 +14,21 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using playback_reporting.Data;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using Jellyfin.Plugin.PlaybackReporting.Data;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Serialization;
using MediaBrowser.Model.Services;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Globalization;
using Microsoft.Extensions.Logging;
namespace playback_reporting.Api
namespace Jellyfin.Plugin.PlaybackReporting.Api
{
// http://localhost:8096/emby/user_usage_stats/user_activity

View File

@ -17,12 +17,12 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
using System;
using System.Collections.Generic;
using System.IO;
using Jellyfin.Plugin.PlaybackReporting.Data;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging;
using playback_reporting.Data;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
class BackupManager
{

View File

@ -14,15 +14,15 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using MediaBrowser.Controller;
using MediaBrowser.Model.IO;
using SQLitePCL.pretty;
using System;
using System.Collections.Generic;
using System.IO;
using MediaBrowser.Controller;
using MediaBrowser.Model.IO;
using Microsoft.Extensions.Logging;
using SQLitePCL.pretty;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public class ActivityRepository : BaseSqliteRepository, IActivityRepository
{

View File

@ -17,13 +17,13 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using SQLitePCL.pretty;
using System.Linq;
using System.Threading;
using Microsoft.Extensions.Logging;
using SQLitePCL;
using SQLitePCL.pretty;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public abstract class BaseSqliteRepository : IDisposable
{

View File

@ -16,10 +16,8 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
using System;
using System.Collections.Generic;
using playback_reporting.Api;
using MediaBrowser.Model.Querying;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public interface IActivityRepository
{

View File

@ -16,12 +16,9 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLitePCL.pretty;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public class ManagedConnection : IDisposable
{

View File

@ -15,10 +15,8 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public class PlaybackInfo
{

View File

@ -14,12 +14,12 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using MediaBrowser.Controller.Library;
using System;
using System.Collections.Generic;
using MediaBrowser.Controller.Library;
using Microsoft.Extensions.Logging;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
class PlaybackTracker
{

View File

@ -18,11 +18,10 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Serialization;
using SQLitePCL.pretty;
namespace playback_reporting.Data
namespace Jellyfin.Plugin.PlaybackReporting.Data
{
public static class SqliteExtensions
{

View File

@ -14,23 +14,23 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using playback_reporting.Data;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Jellyfin.Plugin.PlaybackReporting.Data;
using MediaBrowser.Controller;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Serialization;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Entities.Audio;
using Microsoft.Extensions.Logging;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
class EventMonitorEntryPoint : IServerEntryPoint
{

View File

@ -17,7 +17,7 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
public static class ConfigurationExtension
{

View File

@ -157,7 +157,7 @@ define(['libraryMenu'], function (libraryMenu) {
// init code here
view.addEventListener('viewshow', function (e) {
libraryMenu.setTabs('playback_reporting', 4, getTabs);
libraryMenu.setTabs('Jellyfin.Plugin.PlaybackReporting', 4, getTabs);
require([Dashboard.getConfigurationResourceUrl('Chart.bundle.min.js')], function (d3) {

View File

@ -90,7 +90,7 @@ define(['libraryMenu'], function (libraryMenu) {
//alert("Loaded Data: " + JSON.stringify(usage_data));
alert(responce_message[0]);
ApiClient.getNamedConfiguration('playback_reporting').then(function (config) {
ApiClient.getNamedConfiguration('Jellyfin.Plugin.PlaybackReporting').then(function (config) {
var backup_path_label = view.querySelector('#backup_path_label');
backup_path_label.innerHTML = config.BackupPath;
});
@ -167,7 +167,7 @@ define(['libraryMenu'], function (libraryMenu) {
ApiClient.getNamedConfiguration('playback_reporting').then(function (config) {
config.MaxBackupFiles = max_files;
console.log("New Config Settings : " + JSON.stringify(config));
ApiClient.updateNamedConfiguration('playback_reporting', config);
ApiClient.updateNamedConfiguration('Jellyfin.Plugin.PlaybackReporting', config);
});
}
@ -176,7 +176,7 @@ define(['libraryMenu'], function (libraryMenu) {
ApiClient.getNamedConfiguration('playback_reporting').then(function (config) {
config.MaxDataAge = max_age;
console.log("New Config Settings : " + JSON.stringify(config));
ApiClient.updateNamedConfiguration('playback_reporting', config);
ApiClient.updateNamedConfiguration('Jellyfin.Plugin.PlaybackReporting', config);
});
}

View File

@ -14,17 +14,14 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{

View File

@ -15,11 +15,8 @@ along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using MediaBrowser.Model.Plugins;
using System;
using System.Collections.Generic;
using System.Text;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
public class PluginConfiguration: BasePluginConfiguration
{

View File

@ -14,11 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
public class ReportPlaybackOptions
{

View File

@ -14,17 +14,18 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Threading;
using Jellyfin.Plugin.PlaybackReporting.Data;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Model.Activity;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Tasks;
using playback_reporting.Data;
using System;
using System.Collections.Generic;
using System.Threading;
using Microsoft.Extensions.Logging;
using IActivityRepository = Jellyfin.Plugin.PlaybackReporting.Data.IActivityRepository;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
class TaskCleanDb : IScheduledTask
{
@ -38,7 +39,7 @@ namespace playback_reporting
public string Description => "Runs the report history trim task";
public string Category => "Playback Reporting";
private playback_reporting.Data.IActivityRepository Repository;
private IActivityRepository Repository;
public TaskCleanDb(IActivityManager activity, ILoggerFactory logger, IServerConfigurationManager config, IFileSystem fileSystem)
{

View File

@ -14,16 +14,16 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see<http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Model.Activity;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Tasks;
using System;
using System.Collections.Generic;
using System.Threading;
using Microsoft.Extensions.Logging;
namespace playback_reporting
namespace Jellyfin.Plugin.PlaybackReporting
{
class TaskRunBackup : IScheduledTask
{

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB