Skip to content

Commit

Permalink
Add outline providers for Sonarr and RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 1, 2025
1 parent 73b43f7 commit 76e071f
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MediaFeeder/MediaFeeder/Data/Enums/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
public enum Provider
{
Unknown = 0,
YouTube = 1
}
YouTube = 1,
Sonarr = 3,
RSS = 4,
}
5 changes: 5 additions & 0 deletions MediaFeeder/MediaFeeder/Providers/DownloadedVideoFrame.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h3>DownloadedVideoFrame</h3>

@code {

}
35 changes: 35 additions & 0 deletions MediaFeeder/MediaFeeder/Providers/RSSProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using MediaFeeder.Data.db;
using MediaFeeder.Data.Enums;

namespace MediaFeeder.Providers;

public class RSSProvider : IProvider
{
public Task DownloadVideo(Video video)
{
throw new NotImplementedException();
}

public Task SynchroniseSubscription(Subscription subscription)
{
throw new NotImplementedException();
}

public Task<bool> ProcessUrl(string url, Subscription subscription)
{
throw new NotImplementedException();
}

public Task<bool> IsUrlValid(string url)
{
throw new NotImplementedException();
}

public Provider Provider => Provider.RSS;

public Type VideoFrameView => typeof(DownloadedVideoFrame);

public string ProviderIdentifier => "Youtube";

public string MimeType { get; } = "Video/YouTube";
}
35 changes: 35 additions & 0 deletions MediaFeeder/MediaFeeder/Providers/SonarrProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using MediaFeeder.Data.db;
using MediaFeeder.Data.Enums;

namespace MediaFeeder.Providers;

public class SonarrProvider : IProvider
{
public Task DownloadVideo(Video video)
{
throw new NotImplementedException();
}

public Task SynchroniseSubscription(Subscription subscription)
{
throw new NotImplementedException();
}

public Task<bool> ProcessUrl(string url, Subscription subscription)
{
throw new NotImplementedException();
}

public Task<bool> IsUrlValid(string url)
{
throw new NotImplementedException();
}

public Provider Provider => Provider.Sonarr;

public Type VideoFrameView => typeof(DownloadedVideoFrame);

public string ProviderIdentifier => "Youtube";

public string MimeType { get; } = "Video/YouTube";
}

0 comments on commit 76e071f

Please sign in to comment.