mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Episode renaming implemented on the Series/Details page.
This commit is contained in:
parent
cbaa2f7ef4
commit
4d3ba62e5d
9 changed files with 90 additions and 285 deletions
35
NzbDrone.Core/Providers/Jobs/RenameEpisodeJob.cs
Normal file
35
NzbDrone.Core/Providers/Jobs/RenameEpisodeJob.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Model.Notification;
|
||||
|
||||
namespace NzbDrone.Core.Providers.Jobs
|
||||
{
|
||||
public class RenameEpisodeJob : IJob
|
||||
{
|
||||
private readonly RenameProvider _renameProvider;
|
||||
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public RenameEpisodeJob(RenameProvider renameProvider)
|
||||
{
|
||||
_renameProvider = renameProvider;
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "Rename Episode"; }
|
||||
}
|
||||
|
||||
public int DefaultInterval
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
public void Start(ProgressNotification notification, int targetId)
|
||||
{
|
||||
_renameProvider.RenameEpisodeFile(targetId, notification);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue