Skip to content

Commit

Permalink
fixed: CommandLine scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCooper committed Jul 29, 2016
1 parent fcd1b1e commit 36fb978
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions EmberAPI/clsAPICommandLine.vb
Expand Up @@ -312,6 +312,15 @@ Public Class CommandLine
For i As Integer = iStartPos + 1 To Args.Count - 1
Select Case Args(i).ToLower
Case "all"
ScrapeModifiers.AllSeasonsBanner = True
ScrapeModifiers.AllSeasonsFanart = True
ScrapeModifiers.AllSeasonsLandscape = True
ScrapeModifiers.AllSeasonsPoster = True
ScrapeModifiers.EpisodeActorThumbs = True
ScrapeModifiers.EpisodeFanart = True
ScrapeModifiers.EpisodeMeta = True
ScrapeModifiers.EpisodeNFO = True
ScrapeModifiers.EpisodePoster = True
ScrapeModifiers.MainActorthumbs = True
ScrapeModifiers.MainBanner = True
ScrapeModifiers.MainCharacterArt = True
Expand All @@ -328,6 +337,35 @@ Public Class CommandLine
ScrapeModifiers.MainSubtitles = True
ScrapeModifiers.MainTheme = True
ScrapeModifiers.MainTrailer = True
ScrapeModifiers.SeasonBanner = True
ScrapeModifiers.SeasonFanart = True
ScrapeModifiers.SeasonLandscape = True
ScrapeModifiers.SeasonNFO = True
ScrapeModifiers.SeasonPoster = True
ScrapeModifiers.withEpisodes = True
ScrapeModifiers.withSeasons = True
Case "episodeall"
ScrapeModifiers.EpisodeActorThumbs = True
ScrapeModifiers.EpisodeFanart = True
ScrapeModifiers.EpisodeMeta = True
ScrapeModifiers.EpisodeNFO = True
ScrapeModifiers.EpisodePoster = True
ScrapeModifiers.withEpisodes = True
Case "episodeactorthumbs"
ScrapeModifiers.EpisodeActorThumbs = True
ScrapeModifiers.withEpisodes = True
Case "episodefanart"
ScrapeModifiers.EpisodeFanart = True
ScrapeModifiers.withEpisodes = True
Case "episodemeta"
ScrapeModifiers.EpisodeMeta = True
ScrapeModifiers.withEpisodes = True
Case "episodenfo"
ScrapeModifiers.EpisodeNFO = True
ScrapeModifiers.withEpisodes = True
Case "episodeposter"
ScrapeModifiers.EpisodePoster = True
ScrapeModifiers.withEpisodes = True
Case "actorthumbs"
ScrapeModifiers.MainActorthumbs = True
Case "banner"
Expand Down Expand Up @@ -360,6 +398,28 @@ Public Class CommandLine
ScrapeModifiers.MainTheme = True
Case "trailer"
ScrapeModifiers.MainTrailer = True
Case "seasonall"
ScrapeModifiers.SeasonBanner = True
ScrapeModifiers.SeasonFanart = True
ScrapeModifiers.SeasonLandscape = True
ScrapeModifiers.SeasonNFO = True
ScrapeModifiers.SeasonPoster = True
ScrapeModifiers.withSeasons = True
Case "seasonbanner"
ScrapeModifiers.SeasonBanner = True
ScrapeModifiers.withSeasons = True
Case "seasonfanart"
ScrapeModifiers.SeasonFanart = True
ScrapeModifiers.withSeasons = True
Case "seasonlandscape"
ScrapeModifiers.SeasonLandscape = True
ScrapeModifiers.withSeasons = True
Case "seasonnfo"
ScrapeModifiers.SeasonNFO = True
ScrapeModifiers.withSeasons = True
Case "seasonposter"
ScrapeModifiers.SeasonPoster = True
ScrapeModifiers.withSeasons = True
Case Else
Return i - 1
End Select
Expand Down
1 change: 1 addition & 0 deletions EmberAPI/clsAPICommon.vb
Expand Up @@ -1581,6 +1581,7 @@ Public Class Functions
FilteredModifiers.SeasonBanner = Options.SeasonBanner AndAlso Options2.SeasonBanner
FilteredModifiers.SeasonFanart = Options.SeasonFanart AndAlso Options2.SeasonFanart
FilteredModifiers.SeasonLandscape = Options.SeasonLandscape AndAlso Options2.SeasonLandscape
FilteredModifiers.SeasonNFO = Options.SeasonNFO AndAlso Options2.SeasonNFO
FilteredModifiers.SeasonPoster = Options.SeasonPoster AndAlso Options2.SeasonPoster
FilteredModifiers.withEpisodes = Options.withEpisodes AndAlso Options2.withEpisodes
FilteredModifiers.withSeasons = Options.withSeasons AndAlso Options2.withSeasons
Expand Down

0 comments on commit 36fb978

Please sign in to comment.