mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fully async'd xml parsing process as well as added resolver and provider priorities
This commit is contained in:
parent
19a4dd83c2
commit
8f024e8199
@@ -32,5 +32,22 @@ namespace MediaBrowser.Controller.Providers
|
||||
}
|
||||
|
||||
public abstract Task Fetch(BaseEntity item, ItemResolveEventArgs args);
|
||||
|
||||
public abstract MetadataProviderPriority Priority { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines when a provider should execute, relative to others
|
||||
/// </summary>
|
||||
public enum MetadataProviderPriority
|
||||
{
|
||||
// Run this provider at the beginning
|
||||
First,
|
||||
|
||||
// Run this provider after all first priority providers
|
||||
Second,
|
||||
|
||||
// Run this provider last
|
||||
Last
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user