added validation to the appconfig (remove code duplication)

This commit is contained in:
2018-12-28 23:58:22 +01:00
parent d45829b60c
commit f37d8d49ea
2 changed files with 31 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ namespace Tv7Playlist
case AppConfig.SourceTypeEnum.M3U:
services.AddTransient<IPlaylistParser, M3UParser>();
break;
case AppConfig.SourceTypeEnum.XSPF:
case AppConfig.SourceTypeEnum.Xspf:
services.AddTransient<IPlaylistParser, XspfParser>();
break;
default: