-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add outline providers for Sonarr and RSS
- Loading branch information
Foxocube
committed
Jan 1, 2025
1 parent
73b43f7
commit 76e071f
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,7 @@ | |
public enum Provider | ||
{ | ||
Unknown = 0, | ||
YouTube = 1 | ||
} | ||
YouTube = 1, | ||
Sonarr = 3, | ||
RSS = 4, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h3>DownloadedVideoFrame</h3> | ||
|
||
@code { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |